From 997faf950ed3e3fbb05d599ef739c9fe0aa7121d Mon Sep 17 00:00:00 2001 From: joey Date: Tue, 3 Oct 2000 19:35:32 +0000 Subject: [PATCH] r376: * Rats, the previous change makes duplicate lines be created in the shlibs file, and lintian conplains. Added some hackery that should prevent that. Closes: #73052 --- debian/changelog | 8 ++++++++ dh_makeshlibs | 9 ++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 6ae0b66..3342181 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +debhelper (2.1.14) unstable; urgency=low + + * Rats, the previous change makes duplicate lines be created in the + shlibs file, and lintian conplains. Added some hackery that should + prevent that. Closes: #73052 + + -- Joey Hess Tue, 3 Oct 2000 12:32:22 -0700 + debhelper (2.1.13) unstable; urgency=low * Typo, Closes: #72932 diff --git a/dh_makeshlibs b/dh_makeshlibs index bfded28..66781c7 100755 --- a/dh_makeshlibs +++ b/dh_makeshlibs @@ -8,6 +8,8 @@ init(); foreach $PACKAGE (@{$dh{DOPACKAGES}}) { $TMP=tmpdir($PACKAGE); + my %seen; + doit("rm", "-f", "$TMP/DEBIAN/shlibs"); open (FIND, "find $TMP -xtype f -name '*.so.*' |"); @@ -34,7 +36,12 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { } if (defined($library) && defined($major) && defined($deps) && $library ne '' && $major ne '' && $deps ne '') { - complex_doit("echo '$library $major $deps' >>$TMP/DEBIAN/shlibs"); + # Prevent duplicate lines from entering the file. + my $line="$library $major $deps"; + if (! $seen{$line}) { + $seen{$line}=1; + complex_doit("echo '$line' >>$TMP/DEBIAN/shlibs"); + } } } close FIND; -- 2.39.2