Package: libgdbm3
Version: 1.8.3-13.1
Tags: patch
User: [email protected]
Usertags: rebootstrap

Hi,

I noticed that libgdbm3 still invokes ldconfig from postinst and postrm.
This breaks can break installation in foreign chroots and is discouraged
in the move to declarative maintainer scripts (see
https://lists.debian.org/debian-devel/2015/08/msg00412.html).

I am attaching a patch that converts those scripts to a trigger
invocation.

I note that this patch weren't necessary if gdbm were using
dh_makeshlibs like almost any other package.

Helmut
diff --minimal -Nru gdbm-1.8.3/debian/changelog gdbm-1.8.3/debian/changelog
--- gdbm-1.8.3/debian/changelog 2014-11-16 18:18:50.000000000 +0100
+++ gdbm-1.8.3/debian/changelog 2016-05-18 17:57:47.000000000 +0200
@@ -1,3 +1,10 @@
+gdbm (1.8.3-13.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Convert to ldconfig triggers. Closes: #-1
+
+ -- Helmut Grohne <[email protected]>  Wed, 18 May 2016 17:57:30 +0200
+
 gdbm (1.8.3-13.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff --minimal -Nru gdbm-1.8.3/debian/postinst gdbm-1.8.3/debian/postinst
--- gdbm-1.8.3/debian/postinst  2008-08-27 08:35:55.000000000 +0200
+++ gdbm-1.8.3/debian/postinst  1970-01-01 01:00:00.000000000 +0100
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-set -e
-
-if [ "$1" = "configure" ]; then
-   ldconfig
-fi
diff --minimal -Nru gdbm-1.8.3/debian/postrm gdbm-1.8.3/debian/postrm
--- gdbm-1.8.3/debian/postrm    2008-08-27 08:35:55.000000000 +0200
+++ gdbm-1.8.3/debian/postrm    1970-01-01 01:00:00.000000000 +0100
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-set -e
-
-if [ "$1" = "remove" ]; then
-   ldconfig
-fi
diff --minimal -Nru gdbm-1.8.3/debian/rules gdbm-1.8.3/debian/rules
--- gdbm-1.8.3/debian/rules     2014-11-16 18:13:27.000000000 +0100
+++ gdbm-1.8.3/debian/rules     2016-05-18 17:59:47.000000000 +0200
@@ -89,7 +89,7 @@
 
        $(install_dir) debian/tmp/DEBIAN
        $(install_file) debian/shlibs debian/tmp/DEBIAN/
-       $(install_script) debian/postinst debian/postrm debian/tmp/DEBIAN/
+       $(install_file) debian/triggers debian/tmp/DEBIAN/
 
        dh_installchangelogs -Pdebian/tmp -plibgdbm3
        $(compress) debian/tmp/usr/share/doc/libgdbm3/*
diff --minimal -Nru gdbm-1.8.3/debian/triggers gdbm-1.8.3/debian/triggers
--- gdbm-1.8.3/debian/triggers  1970-01-01 01:00:00.000000000 +0100
+++ gdbm-1.8.3/debian/triggers  2016-05-18 17:57:20.000000000 +0200
@@ -0,0 +1 @@
+activate-noawait ldconfig

Reply via email to