]> git.donarmstrong.com Git - debhelper.git/commitdiff
Revert "dh_makeshlibs: Make -X also exclude libraries from the symbols file. Closes...
authorJoey Hess <joey@gnu.kitenet.net>
Wed, 9 Dec 2009 20:08:59 +0000 (15:08 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Wed, 9 Dec 2009 20:08:59 +0000 (15:08 -0500)
This reverts commit a6d3e307da558f6bf455a0d21e1cb9ec1b4fef03.

Necessary because it caused a behavior change and broke some package
builds.

debian/changelog
dh_makeshlibs

index 40ce528b3961d2d09cc094cdb850db1d06ca4d1b..8c3cdbdd5f9daa805b5d1c2334a3a968ceb040b7 100644 (file)
@@ -19,8 +19,6 @@ debhelper (7.4.8) unstable; urgency=low
     be enabled by using the --max-parallel option. This was necessary because
     some buildds build with -j2 by default. (See #532805)
   * dh: Document --no-act. Closes: #557505
-  * dh_makeshlibs: Make -X also exclude libraries from the symbols file.
-    Closes: #557603 (Peter Samuelson)
 
  -- Joey Hess <joeyh@debian.org>  Mon, 23 Nov 2009 13:57:10 -0500
 
index 4e4a8e21439067444a1fef64b71f2dd1dce8305e..03a54f95420d3d990f39ef14c962863730608f18 100755 (executable)
@@ -139,14 +139,13 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
        # because only if we can get a library name and a major number from
        # objdump is anything actually added.
        my $exclude='';
-       my (@udeb_lines, @lib_files);
+       my @udeb_lines;
        if (defined($dh{EXCLUDE_FIND}) && $dh{EXCLUDE_FIND} ne '') {
                $exclude="! \\( $dh{EXCLUDE_FIND} \\) ";
        }
        open (FIND, "find $tmp -type f \\( -name '*.so' -or -name '*.so.*' \\) $exclude |");
        while (<FIND>) {
                my ($library, $major);
-               push @lib_files, $_;
                my $objdump=`objdump -p $_`;
                if ($objdump=~m/\s+SONAME\s+(.+)\.so\.(.+)/) {
                        # proper soname format
@@ -228,8 +227,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                # is not 100% compatible with debhelper. (For example,
                # this supports --ignore being used.)
                doit("dpkg-gensymbols", "-p$package", "-I$symbols",
-                       "-P$tmp", (map { "-e$_" } @lib_files),
-                       @{$dh{U_PARAMS}});
+                       "-P$tmp", @{$dh{U_PARAMS}});
                if (-s "$tmp/DEBIAN/symbols" == 0) {
                        doit("rm", "-f", "$tmp/DEBIAN/symbols");
                }