[debhelper-devel] [debhelper] 01/01: Revert "dh_makeshlibs [compat 10]: Pass -X to ldconfig"

Niels Thykier nthykier at moszumanska.debian.org
Tue Aug 18 15:07:39 UTC 2015


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

nthykier pushed a commit to branch master
in repository debhelper.

commit 8ac4161f19c07b6a74a47658b6601722ff6d5c6e
Author: Niels Thykier <niels at thykier.net>
Date:   Tue Aug 18 17:06:39 2015 +0200

    Revert "dh_makeshlibs [compat 10]: Pass -X to ldconfig"
    
    This reverts commit 3543394784238e0f0c75988bb7a647fab0d8c26c.
    
    The glibc maintainers said this change would not make sense to deploy
    in debhelper.  Instead, the change (if any) should be done on the
    glibc side.
---
 autoscripts/postinst-makeshlibs-c10 | 3 ---
 autoscripts/postrm-makeshlibs-c10   | 3 ---
 debhelper.pod                       | 7 -------
 debian/changelog                    | 3 +++
 dh_makeshlibs                       | 9 ++-------
 5 files changed, 5 insertions(+), 20 deletions(-)

diff --git a/autoscripts/postinst-makeshlibs-c10 b/autoscripts/postinst-makeshlibs-c10
deleted file mode 100644
index bab4455..0000000
--- a/autoscripts/postinst-makeshlibs-c10
+++ /dev/null
@@ -1,3 +0,0 @@
-if [ "$1" = "configure" ]; then
-	ldconfig -X
-fi
diff --git a/autoscripts/postrm-makeshlibs-c10 b/autoscripts/postrm-makeshlibs-c10
deleted file mode 100644
index c81079d..0000000
--- a/autoscripts/postrm-makeshlibs-c10
+++ /dev/null
@@ -1,3 +0,0 @@
-if [ "$1" = "remove" ]; then
-	ldconfig -X
-fi
diff --git a/debhelper.pod b/debhelper.pod
index 1e28e60..480e293 100644
--- a/debhelper.pod
+++ b/debhelper.pod
@@ -554,13 +554,6 @@ debhelper.
 
 =item -
 
-B<dh_makeshlibs> now invokes I<ldconfig -X> instead of just
-I<ldconfig> in its generated maintainer scripts snippets.  The new
-call will only update the ld cache (instead of also updating
-symlinks).
-
-=item -
-
 B<dh_installdeb> no longer installs a maintainer-provided
 debian/I<package>.shlibs file.  This is now done by B<dh_makeshlibs>
 instead.
diff --git a/debian/changelog b/debian/changelog
index 64470af..5feb906 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,6 +17,9 @@ debhelper (9.20150811+unreleased) UNRELEASED; urgency=medium
     files even if the package has no sysvinit script or
     explicit debian/<package>.service file.
     (Closes: #795519)
+  * dh_makeshlibs: Revert passing -X to ldconfig in compat 10
+    after talking with the glibc maintainer.  The is not the
+    right place to make this change.
 
   [ Paul Tagliamonte ]
   * dh_gencontrol: Put debug debs back in the "debug" section.
diff --git a/dh_makeshlibs b/dh_makeshlibs
index 079ac12..a0b3253 100755
--- a/dh_makeshlibs
+++ b/dh_makeshlibs
@@ -232,13 +232,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 
 	# New as of dh_v3.
 	if (! compat(2) && ! $dh{NOSCRIPTS} && $need_ldconfig) {
-		if (compat(9)) {
-			autoscript($package,"postinst","postinst-makeshlibs");
-			autoscript($package,"postrm","postrm-makeshlibs");
-		} else {
-			autoscript($package,"postinst","postinst-makeshlibs-c10");
-			autoscript($package,"postrm","postrm-makeshlibs-c10");
-		}
+		autoscript($package,"postinst","postinst-makeshlibs");
+		autoscript($package,"postrm","postrm-makeshlibs");
 	}
 
 	if ($shlibs_file) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git




More information about the debhelper-devel mailing list