On Fri, Jun 27, 2014 at 08:23:11PM +0200, Helmut Grohne wrote:
> I intend to NMU gdbm to fix bugs #752465 and #752830. Please find the
> proposed changes attached. Note that even after applying this patch,
> gdbm is not binNMU-able, because it does not use dh_installchangelogs
> which would split of binary-only entries to architecture-specific
> changelogs.

Sven Joachim kindly pointed out that my patch needs to add Breaks and
Replaces headers. Patch updated.

Helmut
diff -Nru gdbm-1.8.3/debian/changelog gdbm-1.8.3/debian/changelog
--- gdbm-1.8.3/debian/changelog 2013-06-02 01:43:11.000000000 +0200
+++ gdbm-1.8.3/debian/changelog 2014-06-27 20:02:27.000000000 +0200
@@ -1,3 +1,11 @@
+gdbm (1.8.3-12.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload. Closes: #752465
+  * Move documentation from libgdbm3 to libgdbm-dev to comply with policy 8.2.
+    Closes: #752830
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 27 Jun 2014 19:59:37 +0200
+
 gdbm (1.8.3-12) unstable; urgency=low
 
   * Fix texinfo errors
diff -Nru gdbm-1.8.3/debian/control gdbm-1.8.3/debian/control
--- gdbm-1.8.3/debian/control   2013-06-02 00:43:04.000000000 +0200
+++ gdbm-1.8.3/debian/control   2014-06-27 20:35:03.000000000 +0200
@@ -24,7 +24,8 @@
 Architecture: any
 Depends: libc6-dev | libc-dev, libgdbm3 (= ${binary:Version})
 Conflicts: libgdbm1-dev, libgdbmg1-dev
-Replaces: libgdbmg1-dev
+Breaks: libgdbm3 (<< 1.8.3-12.1)
+Replaces: libgdbmg1-dev, libgdbm3 (<< 1.8.3-12.1)
 Section: libdevel
 Priority: optional
 Description: GNU dbm database routines (development files)
diff -Nru gdbm-1.8.3/debian/rules gdbm-1.8.3/debian/rules
--- gdbm-1.8.3/debian/rules     2013-06-02 00:53:48.000000000 +0200
+++ gdbm-1.8.3/debian/rules     2014-06-27 19:59:31.000000000 +0200
@@ -76,8 +76,11 @@
        $(STRIP) --strip-unneeded debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.so*
        chmod 644 debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.so*
 
-       $(compress) debian/tmp/usr/share/info/*
-       $(compress) debian/tmp/usr/share/man/man3/*
+       rm -f debian/tmp/usr/share/info/gdbm.info
+       rmdir debian/tmp/usr/share/info/
+       rm -f debian/tmp/usr/share/man/man3/gdbm.3
+       rmdir debian/tmp/usr/share/man/man3
+       rmdir debian/tmp/usr/share/man
 
        $(install_dir) debian/tmp/DEBIAN
        $(install_file) debian/shlibs debian/tmp/DEBIAN/
@@ -117,7 +120,9 @@
        # libc6 owns ndbm.h, but some apps want gdbm's
        mv debian/tmp/usr/include/ndbm.h debian/tmp/usr/include/gdbm-ndbm.h
 
-       rm -f debian/tmp/usr/share/man/man3/gdbm.3
+       $(compress) debian/tmp/usr/share/info/*
+       $(compress) debian/tmp/usr/share/man/man3/*
+
        cd debian/tmp/usr/share/man/man3 ; \
            for i in dbm gdbm_error gdbm_errno gdbm_open \
                    gdbm_close gdbm_store gdbm_fetch gdbm_delete \
@@ -132,9 +137,6 @@
                ln -s gdbm.3.gz $$i.3.gz ; \
            done
 
-       rm -f debian/tmp/usr/share/info/gdbm.info
-       rmdir debian/tmp/usr/share/info/
-
        $(install_dir) debian/tmp/DEBIAN/
 
        $(install_dir) debian/tmp/usr/share/doc/libgdbm-dev/

Reply via email to