summaryrefslogtreecommitdiff
path: root/dh_makeshlibs
diff options
context:
space:
mode:
authorjoey <joey>2000-11-27 03:56:52 +0000
committerjoey <joey>2000-11-27 03:56:52 +0000
commitdffd90e48bd1c4bb45cf42b6394478a7d2590b5a (patch)
treec8fa58d435b7fe86b0dd45846e0fed84e7101161 /dh_makeshlibs
parent63f01a93ebb8f4d8be40d10f7075e8a69567911d (diff)
downloaddebhelper-dffd90e48bd1c4bb45cf42b6394478a7d2590b5a.tar.gz
r392: * DH_COMPAT=3 now enables the following new features which I can't just
turn on by default for fear of breaking backwards compatability: - dh_makeshlibs makes the postinst/postrm call ldconfig. Closes: #77154 Patch from Masato Taruishi <taru@debian.org> (modified). If you use this, be sure dh_makeshlibs runs before dh_installdeb; many old rules files have the ordering backwards. - dh_installdeb now causes all files in /etc to be registered as conffiles. - debian/README is now supported: it is treated exactly like debian/README.Debian. Either file is installed as README.Debian in non-native packages, and now as just README in native packages. Closes: #34628 * This is really only the start of the changes for v3, so use with caution.. * dh_du has finally been removed. It has been deprecated for ages, and a grep of the archive shows that nothing is using it except biss-awt and scsh. I filed bugs on both almost exactly a year ago. Those bugs should now be raised to severity important.. * --number option (to dh_installemacsen) is removed. It has been deprecated for a while and nothing uses it. Use --priority instead.
Diffstat (limited to 'dh_makeshlibs')
-rwxr-xr-xdh_makeshlibs9
1 files changed, 9 insertions, 0 deletions
diff --git a/dh_makeshlibs b/dh_makeshlibs
index 6b3ff411..1b50ea11 100755
--- a/dh_makeshlibs
+++ b/dh_makeshlibs
@@ -9,12 +9,14 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
$TMP=tmpdir($PACKAGE);
my %seen;
+ my $need_ldconfig = 0;
doit("rm", "-f", "$TMP/DEBIAN/shlibs");
open (FIND, "find $TMP -xtype f -name '*.so*' |");
while (<FIND>) {
chomp;
+ $need_ldconfig=1;
# The second evil regexp is for db3, whose author should
# be shot.
if (m#.*/(.*)\.so\.(\d*)\.?# || m#.*/(.*)-(\S+)\.so$#) {
@@ -51,6 +53,13 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
}
close FIND;
+ # New as of dh_v3.
+ if (! Debian::Debhelper::Dh_Lib::compat(2) &&
+ ! $dh{NOSCRIPTS} && $need_ldconfig) {
+ autoscript($PACKAGE,"postinst","postinst-makeshlibs");
+ autoscript($PACKAGE,"postrm","postrm-makeshlibs");
+ }
+
if (-e "$TMP/DEBIAN/shlibs") {
doit("chmod",644,"$TMP/DEBIAN/shlibs");
doit("chown","0.0","$TMP/DEBIAN/shlibs");