[gap-io] 01/01: Imported Debian patch 4.2-1

Jerome Benoit calculus-guest at moszumanska.debian.org
Sat Jan 11 05:45:32 UTC 2014


This is an automated email from the git hooks/post-receive script.

calculus-guest pushed a commit to branch master
in repository gap-io.

commit f6fc9f72c1ca01efc42d9447805065c27348fe25
Author: Jerome Benoit <calculus at rezozer.net>
Date:   Sat Jan 11 05:24:38 2014 +0000

    Imported Debian patch 4.2-1
---
 debian/changelog                                  | 23 ++++++
 debian/check.g                                    |  4 ++
 debian/clean                                      |  1 +
 debian/compat                                     |  1 +
 debian/control                                    | 25 +++++++
 debian/copyright                                  | 31 ++++++++
 debian/gap-io.dir                                 |  5 ++
 debian/gap-io.doc-base                            | 17 +++++
 debian/gap-io.docs                                |  3 +
 debian/gap-io.install                             |  6 ++
 debian/gap-io.links                               |  3 +
 debian/gap-io.lintian-overrides                   |  1 +
 debian/io.map                                     |  8 +++
 debian/makedoc.g                                  | 13 ++++
 debian/patches/debianization.patch                | 76 ++++++++++++++++++++
 debian/patches/series                             |  2 +
 debian/patches/upstream-autotools-machinery.patch | 88 +++++++++++++++++++++++
 debian/rules                                      | 24 +++++++
 debian/source/format                              |  1 +
 debian/source/lintian-overrides                   |  1 +
 debian/source/options                             |  2 +
 debian/watch                                      |  3 +
 22 files changed, 338 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..88a60f4
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,23 @@
+gap-io (4.2-1) unstable; urgency=low
+
+  * Initial release (Closes: #734418).
+  * Debianization:
+    - debian/copyright in DEP-5 format;
+    - debian/control:
+      - debhelper build-dep to >= 9;
+      - Standards Version 3.9.5;
+      - Vcs-* headers.
+    - debian/source, format 3.0 (quilt);
+    - debian/patches/ patches in DEP-3 format;
+    - debian/watch file;
+    - debian/rules:
+      - autoreconf-iguration;
+      - full and minal dh integration;
+      - get-orig-source uscan based target which downloads the currently
+        packaged upstream tarball;
+      - default target which basically queries package status with uscan
+        -- output in DEHS format;
+      - remark: the regeneration of the documention provides in fact a
+        self-test suite substitute.
+
+ -- Jerome Benoit <calculus at rezozer.net>  Sat, 11 Jan 2014 05:24:38 +0000
diff --git a/debian/check.g b/debian/check.g
new file mode 100644
index 0000000..beca6d4
--- /dev/null
+++ b/debian/check.g
@@ -0,0 +1,4 @@
+#ExtendRootDirectories(["./debian/gap-io/usr/lib/gap/","./debian/gap-io/usr/share/gap/"]);
+SetPackagePath("io","./debian/gap-io/usr/share/gap/pkg/io");
+LoadPackage("io");
+DisplayPackageLoadingLog(PACKAGE_DEBUG);
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..f3c7a7c
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+Makefile
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..0901ca7
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,25 @@
+Source: gap-io
+Section: math
+Priority: optional
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Jerome Benoit <calculus at rezozer.net>
+Build-Depends:
+ debhelper (>= 9), autotools-dev, libtool, dh-autoreconf, autoconf-archive,
+ gap (>=4r5), gap-dev (>=4r5), gap-gapdoc, libgmp-dev,
+ texlive-latex-extra, texlive-fonts-recommended
+Standards-Version: 3.9.5
+Homepage: http://www.gap-system.org/Packages/io.html
+Vcs-Git: git://anonscm.debian.org/debian-science/packages/gap-io.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/gap-io.git
+
+Package: gap-io
+Provides: gap-pkg-io
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}, gap (>=4r5)
+Description: low level C library IO bindings for GAP
+ GAP is a system for computational discrete algebra with particular
+ emphasis on computational group theory, but which has already proved
+ useful also in other areas.
+ .
+ This GAP package brings to GAP access to standard UNIX I/O
+ fonctions in the C-library.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..50b0ac2
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0
+Upstream-Name: io package for GAP
+Upstream-Contact: Max Neunhoeffer <neunhoef at mcs.st-and.ac.uk>
+Source: http://www.gap-system.org/Packages/io.html
+
+Files: *
+Copyright:
+ 2006-2012 Max Neunhoeffer <neunhoef at mcs.st-and.ac.uk>
+License: GPL-3+
+
+Files: debian/*
+Copyright:
+ 2014 Jerome Benoit <calculus at rezozer.net>
+License: GPL-3+
+
+License: GPL-3+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this package. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
diff --git a/debian/gap-io.dir b/debian/gap-io.dir
new file mode 100644
index 0000000..e36303f
--- /dev/null
+++ b/debian/gap-io.dir
@@ -0,0 +1,5 @@
+usr/share/gap/pkg/io
+usr/share/gap/pkg/io/gap
+usr/share/gap/pkg/io/tst
+usr/share/gap/pkg/io/doc
+usr/share/gap/pkg/io/example
diff --git a/debian/gap-io.doc-base b/debian/gap-io.doc-base
new file mode 100644
index 0000000..4b16ca5
--- /dev/null
+++ b/debian/gap-io.doc-base
@@ -0,0 +1,17 @@
+Document: gap-io
+Title: Bindings for low level C library I/O routines
+Author: Max Neunhöffer
+Abstract:
+ The purpose of this package is to allow efficient and flexible
+ Input/Output operations from GAP. This is achieved by providing
+ bindings to the low-level I/O functions in the C-library.
+ On top of this an implementation of buffered I/O in the GAP language
+ is provided. Further, a framework for serialisation of arbitrary GAP
+ objects is implemented. Finally, an implementation of the client side
+ of the HTTP protocol is included in the package. This package allows
+ to use file based I/O, access to links and file systems, pipes, sockets,
+ and the UDP and TCP/IP protocols.
+Section: Science/Mathematics
+
+Format: pdf
+Files: /usr/share/doc/gap-io/doc/manual.pdf
diff --git a/debian/gap-io.docs b/debian/gap-io.docs
new file mode 100644
index 0000000..75a1a8e
--- /dev/null
+++ b/debian/gap-io.docs
@@ -0,0 +1,3 @@
+HISTORY
+README
+TODO
diff --git a/debian/gap-io.install b/debian/gap-io.install
new file mode 100644
index 0000000..085653a
--- /dev/null
+++ b/debian/gap-io.install
@@ -0,0 +1,6 @@
+usr/lib/gap/pkg/io/bin/*/io.so
+PackageInfo.g init.g makedoc.g read.g VERSION usr/share/gap/pkg/io
+gap/* usr/share/gap/pkg/io/gap
+tst/* usr/share/gap/pkg/io/tst
+doc/*.txt doc/*.html doc/manual.six doc/manual.pdf usr/share/gap/pkg/io/doc
+example/* usr/share/gap/pkg/io/example
diff --git a/debian/gap-io.links b/debian/gap-io.links
new file mode 100644
index 0000000..0f61a18
--- /dev/null
+++ b/debian/gap-io.links
@@ -0,0 +1,3 @@
+usr/lib/gap/pkg/io/bin usr/share/gap/pkg/io/bin
+usr/share/gap/pkg/io/doc usr/share/doc/gap-io/doc
+usr/share/gap/pkg/io/example usr/share/doc/gap-io/example
diff --git a/debian/gap-io.lintian-overrides b/debian/gap-io.lintian-overrides
new file mode 100644
index 0000000..a86fbc3
--- /dev/null
+++ b/debian/gap-io.lintian-overrides
@@ -0,0 +1 @@
+gap-io binary: hardening-no-fortify-functions
diff --git a/debian/io.map b/debian/io.map
new file mode 100644
index 0000000..86f7390
--- /dev/null
+++ b/debian/io.map
@@ -0,0 +1,8 @@
+GAP_PKG_IO {
+	global:
+		IO_SIGCHLDHandler;
+		FuncIO_*;
+		Init__io;
+		Init__Dynamic;
+	local: *;
+};
diff --git a/debian/makedoc.g b/debian/makedoc.g
new file mode 100644
index 0000000..712467d
--- /dev/null
+++ b/debian/makedoc.g
@@ -0,0 +1,13 @@
+# debian/makedoc.g -- GAP script
+SetPackagePath("io",".");
+if LoadPackage("io") <> true then
+	Error("GAP package IO not foud\n");
+fi;
+#DisplayPackageLoadingLog(PACKAGE_DEBUG);
+LoadPackage("GAPDoc");
+MakeGAPDocDoc("doc", "io", [], "IO", "../../..");
+GAPDocManualLab("IO");
+#quit;
+Print("quitting ...\n");
+QUIT;
+## eos
diff --git a/debian/patches/debianization.patch b/debian/patches/debianization.patch
new file mode 100644
index 0000000..30a20ce
--- /dev/null
+++ b/debian/patches/debianization.patch
@@ -0,0 +1,76 @@
+Description: debianization
+	Meant to maintain a minimal debian/rules, to fix warnings,
+	to address Debian specific stuff in general.
+Author: Jerome Benoit <calculus at rezozer.net>
+Last-Update: 2014-01-08
+
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -2,7 +2,7 @@
+ 
+ SUBDIRS =
+ 
+-GAP=$(GAPROOT)/bin/gap.sh
++GAP=/usr/bin/gap
+ 
+ BINARCHDIR = bin/$(GAPARCH)
+ GAPINSTALLLIB = $(abs_top_srcdir)/$(BINARCHDIR)/io.so
+@@ -12,7 +12,7 @@
+ io_la_SOURCES = src/io.c
+ io_la_CPPFLAGS = $(GAP_CPPFLAGS) -DCONFIG_H
+ # Note that the latter is only for GAP 4.4.12
+-io_la_LDFLAGS = -module -avoid-version
++io_la_LDFLAGS = -module -avoid-version -Wl,--version-script,debian/io.map
+ if SYS_IS_CYGWIN
+ io_la_LDFLAGS += -no-undefined -version-info 0:0:0 -Wl,$(GAPROOT)/bin/$(GAPARCH)/gap.dll
+ endif
+@@ -30,13 +30,14 @@
+ ##	@echo "SUCCESS!"
+ 
+ distclean-local:
+-	rm -rf bin/*
++	rm -rf bin
+ 	(cd doc ; ./clean)
+ 
+ doc: doc/manual.six
+ 
+ doc/manual.six: doc/main.xml doc/io.xml VERSION
+-	$(GAP) makedoc.g
++	$(MKDIR_P) bin && cd bin && $(LN_S) ../.libs @GAPARCH@
++	$(GAP) -A debian/makedoc.g
+ 
+ archive: doc
+ 	(cd .. ; tar czvf io-`cat io/VERSION`.tar.gz --exclude ".svn" --exclude bin --exclude test --exclude ".git" --exclude ".libs" --exclude lib --exclude io.la --exclude io_la-io.lo --exclude .deps --exclude autom4te.cache --exclude .gitignore --exclude config.log --exclude stamp-h1 --exclude pkgconfig.h --exclude libtool --exclude config.status io)
+--- a/configure.ac
++++ b/configure.ac
+@@ -7,9 +7,7 @@
+ AC_CONFIG_AUX_DIR([cnf])
+ AM_INIT_AUTOMAKE([foreign])
+ AM_MAINTAINER_MODE
+-LT_INIT([disable-static dlopen win32-dll])
+-
+-AC_PREFIX_DEFAULT([${PWD}])
++LT_INIT
+ 
+ AC_PROG_CC
+ 
+--- a/m4/ac_find_gap.m4
++++ b/m4/ac_find_gap.m4
+@@ -99,7 +99,7 @@
+     echo "********************************************************************"
+     echo ""
+     
+-    AC_MSG_ERROR([Unable to find plausible GAParch information.])
++    AC_MSG_WARN([SKIP: Unable to find plausible GAParch information.])
+   fi  
+   
+   
+@@ -117,6 +117,8 @@
+   AC_MSG_CHECKING([for GAP config.h])
+   if test -r $GAPROOT/src/$GAPARCH/config.h; then
+     AC_MSG_RESULT([$GAPROOT/src/$GAPARCH/config.h])
++  elif test -r $GAPROOT/src/config.h; then
++    AC_MSG_RESULT([$GAPROOT/src/config.h])
+   else
+     AC_MSG_RESULT([Not found])
+     bad=1
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..459529d
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+upstream-autotools-machinery.patch
+debianization.patch
diff --git a/debian/patches/upstream-autotools-machinery.patch b/debian/patches/upstream-autotools-machinery.patch
new file mode 100644
index 0000000..60f50be
--- /dev/null
+++ b/debian/patches/upstream-autotools-machinery.patch
@@ -0,0 +1,88 @@
+Description: Autotools chain reajustment
+ Slightly reajust the upstream autotools chain.
+Origin: debian
+Author: Jerome Benoit <calculus at rezozer.net>
+Last-Update: 2014-01-08
+
+--- a/m4/ac_find_gap.m4
++++ b/m4/ac_find_gap.m4
+@@ -115,8 +115,8 @@
+     bad=1
+   fi
+   AC_MSG_CHECKING([for GAP config.h])
+-  if test -r $GAPROOT/bin/$GAPARCH/config.h; then
+-    AC_MSG_RESULT([$GAPROOT/bin/$GAPARCH/config.h])
++  if test -r $GAPROOT/src/$GAPARCH/config.h; then
++    AC_MSG_RESULT([$GAPROOT/src/$GAPARCH/config.h])
+   else
+     AC_MSG_RESULT([Not found])
+     bad=1
+@@ -135,7 +135,7 @@
+     echo "  in particular the files"
+     echo "      <gaproot>/sysinfo.gap"
+     echo "      <gaproot>/src/<includes>"
+-    echo "  and <gaproot>/bin/<architecture>/bin/config.h." 
++    echo "  and <gaproot>/src/$GAPARCH/config.h."
+     echo "  Please make sure that your GAP root directory structure"
+     echo "  conforms to this layout, or give the correct GAP root using"
+     echo "  --with-gaproot=<path>"
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,6 +1,8 @@
+ ACLOCAL_AMFLAGS = -I m4
+ 
+-SUBDIRS = 
++SUBDIRS =
++
++GAP=$(GAPROOT)/bin/gap.sh
+ 
+ BINARCHDIR = bin/$(GAPARCH)
+ GAPINSTALLLIB = $(abs_top_srcdir)/$(BINARCHDIR)/io.so
+@@ -14,24 +16,27 @@
+ if SYS_IS_CYGWIN
+ io_la_LDFLAGS += -no-undefined -version-info 0:0:0 -Wl,$(GAPROOT)/bin/$(GAPARCH)/gap.dll
+ endif
++libdir = @GAPROOT@/pkg/io/bin/@GAPARCH@
+ 
+-all-local: io.la install-libLTLIBRARIES
+-	$(mkdir_p) $(top_srcdir)/$(BINARCHDIR)
+-if SYS_IS_CYGWIN
+-	cp $(libdir)/io.dll $(GAPINSTALLLIB)
+-else
+-	cp $(libdir)/io.so $(GAPINSTALLLIB)
+-endif
+-	@echo "SUCCESS!"
++all-local: doc
++
++##all-local: io.la install-libLTLIBRARIES
++##	$(mkdir_p) $(top_srcdir)/$(BINARCHDIR)
++##if SYS_IS_CYGWIN
++##	cp $(libdir)/io.dll $(GAPINSTALLLIB)
++##else
++##	cp $(libdir)/io.so $(GAPINSTALLLIB)
++##endif
++##	@echo "SUCCESS!"
+ 
+ distclean-local:
+ 	rm -rf bin/*
+ 	(cd doc ; ./clean)
+ 
+-doc:	doc/manual.six
++doc: doc/manual.six
+ 
+ doc/manual.six: doc/main.xml doc/io.xml VERSION
+-	($(GAPROOT)/bin/gap.sh makedoc.g)
++	$(GAP) makedoc.g
+ 
+ archive: doc
+ 	(cd .. ; tar czvf io-`cat io/VERSION`.tar.gz --exclude ".svn" --exclude bin --exclude test --exclude ".git" --exclude ".libs" --exclude lib --exclude io.la --exclude io_la-io.lo --exclude .deps --exclude autom4te.cache --exclude .gitignore --exclude config.log --exclude stamp-h1 --exclude pkgconfig.h --exclude libtool --exclude config.status io)
+--- a/configure.ac
++++ b/configure.ac
+@@ -1,6 +1,6 @@
+ AC_PREREQ(2.68)
+ LT_PREREQ([2.4.2])
+-AC_INIT([IOPKG], 4.0, neunhoef at mcs.st-and.ac.uk)
++AC_INIT([IOPKG], 4.2, neunhoef at mcs.st-and.ac.uk)
+ AC_CONFIG_SRCDIR([src/io.c])
+ AC_CONFIG_HEADER([src/pkgconfig.h:cnf/pkgconfig.h.in])
+ AC_CONFIG_MACRO_DIR([m4])
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..64ba768
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,24 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+default:
+	@uscan --no-conf --dehs --report || true
+
+%:
+	dh $@ --with autoreconf
+
+override_dh_auto_clean:
+	dh_auto_clean -- --keep-going --ignore-errors || true
+
+override_dh_auto_configure:
+	dh_auto_configure -- --with-gaproot=/usr/lib/gap
+
+override_dh_auto_install:
+	dh_auto_install --destdir debian/tmp/
+
+override_dh_installchangelogs:
+	dh_installchangelogs --keep CHANGES
+
+get-orig-source:
+	uscan --no-conf --download-current-version --verbose
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..8b06cb1
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1 @@
+debian-watch-may-check-gpg-signature
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..22a4de9
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1,2 @@
+compression = xz
+compression-level = 9
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..84d3bf1
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=dversionmangle=s/\+ds// \
+http://www-groups.mcs.st-and.ac.uk/~neunhoef/Computer/Software/Gap/io.html io/io-([\d\.]+)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/gap-io.git



More information about the debian-science-commits mailing list