Hi,

gdbm only uses aclocal from the automake package, so the upgrade is
pretty straightforward.

Attached is a patch that does that, and fixes a few lintian warnings
along the way.

Barry: would you mind having a look?  I'm not sure which of 'automake'
or 'automake1.11' is better.


gdbm (1.8.3-6.1) unstable; urgency=low

  * Non-maintainer upload.
  * Replace obsoleted automake1.4 with automake; gdbm does not use
    'automake' itself but uses 'aclocal' which is provided by that package
  * Fix patch-system-but-no-source-readme: add README.source refering to
    /usr/share/doc/dpatch/README.source.gz
  * Fix debian-rules-ignores-make-clean-error: test for Makefile presence
  * Fix package-contains-empty-directory: drop empty usr/share/info/ from
    libgdbm-dev
  * Fix no-md5sums-control-file: manually generate md5sums control file
    using code from dh_md5sums
  * Fix install-info-used-in-maintainer-script: remove postinst.dev and
    prerm.dev, and depends on 'dpkg (>= 1.15.4) | install-info'
  * Fix no-symbols-control-file: import base symbols file from
    http://qa.debian.org/cgi-bin/mole/seedsymbols/?pkgname=libgdbm3 to
    'debian/symbols' and drop Debian version number. Keep private _gdbm
    symbols pending discussion with upstream about declaring them
    'static', but tag them 'optional'.

 -- Sylvain Beucler <b...@beuc.net>  Sat, 03 Oct 2009 00:06:37 +0200

-- 
Sylvain
diff -Nru ../debian.orig/changelog debian/changelog
--- ../debian.orig/changelog	2009-10-03 00:40:54.000000000 +0200
+++ debian/changelog	2009-10-03 00:58:20.000000000 +0200
@@ -1,3 +1,25 @@
+gdbm (1.8.3-6.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Replace obsoleted automake1.4 with automake; gdbm does not use
+    'automake' itself but uses 'aclocal' which is provided by that package
+  * Fix patch-system-but-no-source-readme: add README.source refering to
+    /usr/share/doc/dpatch/README.source.gz
+  * Fix debian-rules-ignores-make-clean-error: test for Makefile presence
+  * Fix package-contains-empty-directory: drop empty usr/share/info/ from
+    libgdbm-dev
+  * Fix no-md5sums-control-file: manually generate md5sums control file
+    using code from dh_md5sums
+  * Fix install-info-used-in-maintainer-script: remove postinst.dev and
+    prerm.dev, and depends on 'dpkg (>= 1.15.4) | install-info'
+  * Fix no-symbols-control-file: import base symbols file from
+    http://qa.debian.org/cgi-bin/mole/seedsymbols/?pkgname=libgdbm3 to
+    'debian/symbols' and drop Debian version number. Keep private _gdbm
+    symbols pending discussion with upstream about declaring them
+    'static', but tag them 'optional'.
+
+ -- Sylvain Beucler <b...@beuc.net>  Sat, 03 Oct 2009 00:06:37 +0200
+
 gdbm (1.8.3-6) unstable; urgency=low
 
   * Remove gdbm.3.gz gdbm.info from libgdbm-dev. Closes: 536356
diff -Nru ../debian.orig/control debian/control
--- ../debian.orig/control	2009-10-03 00:40:54.000000000 +0200
+++ debian/control	2009-10-03 00:58:35.000000000 +0200
@@ -2,13 +2,13 @@
 Section: libs
 Priority: important
 Maintainer: Anibal Monsalve Salazar <ani...@debian.org>
-Build-Depends: texinfo, dpatch, libtool, automake1.4, autoconf, autotools-dev
+Build-Depends: texinfo, dpatch, libtool, automake, autoconf, autotools-dev
 Standards-Version: 3.8.2
 Homepage: http://www.gnu.org/software/gdbm/gdbm.html
 
 Package: libgdbm3
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}, dpkg (>= 1.15.4) | install-info
 Description: GNU dbm database routines (runtime version)
  GNU dbm ('gdbm') is a library of database functions that use extendible
  hashing and works similarly to the standard UNIX 'dbm' functions.
diff -Nru ../debian.orig/postinst.dev debian/postinst.dev
--- ../debian.orig/postinst.dev	2009-10-03 00:40:54.000000000 +0200
+++ debian/postinst.dev	1970-01-01 01:00:00.000000000 +0100
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-set -e
-
-case "$1" in
-       configure|abort-upgrade|abort-remove|abort-deconfigure)
-	       install-info --quiet --section "Development" "Development" \
-			    --description="The GNU Database Routines." \
-			    /usr/share/info/gdbm.info.gz
-               ;;
-esac
-
diff -Nru ../debian.orig/prerm.dev debian/prerm.dev
--- ../debian.orig/prerm.dev	2009-10-03 00:40:54.000000000 +0200
+++ debian/prerm.dev	1970-01-01 01:00:00.000000000 +0100
@@ -1,15 +0,0 @@
-#! /bin/sh
-
-set -e
-
-case "$1" in
-       remove|upgrade|remove-in-favour|deconfigure-in-favour)
-               #
-               #       Remove the info documentation
-               #
-	       install-info --quiet --remove /usr/info/gdbm.info.gz
-               ;;
-       failed-upgrade)
-               ;;
-esac
-
diff -Nru ../debian.orig/README.source debian/README.source
--- ../debian.orig/README.source	1970-01-01 01:00:00.000000000 +0100
+++ debian/README.source	2009-10-02 23:16:16.000000000 +0200
@@ -0,0 +1,4 @@
+This package manages a few patches using dpatch.
+
+Please check /usr/share/doc/dpatch/README.source.gz for further
+information on how this works.
diff -Nru ../debian.orig/rules debian/rules
--- ../debian.orig/rules	2009-10-03 00:40:54.000000000 +0200
+++ debian/rules	2009-10-03 01:09:03.000000000 +0200
@@ -26,7 +26,7 @@
 clean: unpatch
 	$(checkdir)
 	rm -f build config.log config.cache
-	-$(MAKE) -i distclean || $(MAKE) -f Makefile.in distclean
+	[ ! -f Makefile ] || $(MAKE) distclean
 	rm -f config.sub config.guess
 	rm -f $$(find . -name "*~")
 	rm -rf debian/tmp debian/files* debian/substvars* debian/patched
@@ -80,6 +80,9 @@
 
 	dpkg-shlibdeps debian/tmp/usr/lib/libgdbm.so.3.0.0
 	dpkg-gencontrol -isp -plibgdbm3
+	# md5sums control file
+	cd debian/tmp/; find . -type f ! -regex '.*/DEBIAN/.*' -printf '%P\0' | xargs -r0 md5sum > DEBIAN/md5sums
+	dpkg-gensymbols -plibgdbm3
 	chown -R root.root debian/tmp/
 	chmod -R go=rX debian/tmp/
 	dpkg --build debian/tmp/ ..
@@ -118,10 +121,9 @@
 	    done
 
 	rm -f debian/tmp/usr/share/info/gdbm.info
+	rmdir debian/tmp/usr/share/info/
 
 	$(install_dir) debian/tmp/DEBIAN/
-	$(install_script) debian/postinst.dev debian/tmp/DEBIAN/postinst
-	$(install_script) debian/prerm.dev debian/tmp/DEBIAN/prerm
 
 	$(install_dir) debian/tmp/usr/share/doc/libgdbm-dev/
 	$(install_file) debian/changelog \
@@ -133,6 +135,8 @@
 			debian/tmp/usr/share/doc/libgdbm-dev/copyright
 
 	dpkg-gencontrol -isp -plibgdbm-dev
+	# md5sums control file
+	cd debian/tmp/; find . -type f ! -regex '.*/DEBIAN/.*' -printf '%P\0' | xargs -r0 md5sum > DEBIAN/md5sums
 	chown -R root.root debian/tmp/
 	chmod -R go=rX debian/tmp/
 	dpkg --build debian/tmp/ ..
diff -Nru ../debian.orig/symbols debian/symbols
--- ../debian.orig/symbols	1970-01-01 01:00:00.000000000 +0100
+++ debian/symbols	2009-10-03 00:17:44.000000000 +0200
@@ -0,0 +1,51 @@
+libgdbm.so.3 libgdbm3 #MINVER#
+ _gdbm_al...@base 1.8.3 optional
+ _gdbm_end_upd...@base 1.8.3 optional
+ _gdbm_fa...@base 1.8.3 optional
+ _gdbm_fetch_...@base 1.8.3 optional
+ _gdbm_f...@base 1.8.3 optional
+ _gdbm_find...@base 1.8.3 optional
+ _gdbm_f...@base 1.8.3 optional
+ _gdbm_get_buc...@base 1.8.3 optional
+ _gdbm_h...@base 1.8.3 optional
+ _gdbm_init_ca...@base 1.8.3 optional
+ _gdbm_mem...@base 1.8.3 optional
+ _gdbm_new_buc...@base 1.8.3 optional
+ _gdbm_put_av_e...@base 1.8.3 optional
+ _gdbm_read_en...@base 1.8.3 optional
+ _gdbm_split_buc...@base 1.8.3 optional
+ _gdbm_write_buc...@base 1.8.3 optional
+ gdbm_cl...@base 1.8.3
+ gdbm_del...@base 1.8.3
+ gdbm_errl...@base 1.8.3
+ gdbm_er...@base 1.8.3
+ gdbm_exi...@base 1.8.3
+ gdbm_fd...@base 1.8.3
+ gdbm_fe...@base 1.8.3
+ gdbm_first...@base 1.8.3
+ gdbm_next...@base 1.8.3
+ gdbm_o...@base 1.8.3
+ gdbm_reorgan...@base 1.8.3
+ gdbm_set...@base 1.8.3
+ gdbm_st...@base 1.8.3
+ gdbm_strer...@base 1.8.3
+ gdbm_s...@base 1.8.3
+ gdbm_vers...@base 1.8.3
+libgdbm_compat.so.3 libgdbm3 #MINVER#
+ dbm_cl...@base 1.8.3
+ dbm_del...@base 1.8.3
+ dbm_dir...@base 1.8.3
+ dbm_fe...@base 1.8.3
+ dbm_first...@base 1.8.3
+ dbm_next...@base 1.8.3
+ dbm_o...@base 1.8.3
+ dbm_pag...@base 1.8.3
+ dbm_rdo...@base 1.8.3
+ dbm_st...@base 1.8.3
+ dbmcl...@base 1.8.3
+ dbmi...@base 1.8.3
+ del...@base 1.8.3
+ fe...@base 1.8.3
+ first...@base 1.8.3
+ next...@base 1.8.3
+ st...@base 1.8.3

Reply via email to