]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_makeshlibs
maintscript files
[debhelper.git] / dh_makeshlibs
index 4e4a8e21439067444a1fef64b71f2dd1dce8305e..acec308ee6f17e333ea6e4df5d2418e2a7b337e4 100755 (executable)
@@ -19,7 +19,7 @@ dh_makeshlibs is a debhelper program that automatically scans for shared
 libraries, and generates a shlibs file for the libraries it finds.
 
 It also adds a call to ldconfig in the postinst and postrm scripts (in
-V3 mode and above only) to any packages in which it finds shared libraries.
+v3 mode and above only) to any packages in which it finds shared libraries.
 
 =head1 FILES
 
@@ -132,8 +132,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
        doit("rm", "-f", "$tmp/DEBIAN/shlibs");
 
        # So, we look for files or links to existing files with names that
-       # match "*.so*". Matching *.so.* is not good enough because of
-       # broken crap like db3. And we only look at real files not
+       # match "*.so.*". And we only look at real files not
        # symlinks, so we don't accidentually add shlibs data to -dev
        # packages. This may have a few false positives, which is ok,
        # because only if we can get a library name and a major number from
@@ -223,12 +222,17 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
        # dpkg-gensymbols files
        my $symbols=pkgfile($package, "symbols");
        if (-e $symbols) {
+               my @liblist;
+               if (! compat(7)) {
+                       @liblist=map { "-e$_" } @lib_files;
+               }
                # -I is used rather than using dpkg-gensymbols
                # own search for symbols files, since that search
                # 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),
+                       "-P$tmp",
+                       @liblist,
                        @{$dh{U_PARAMS}});
                if (-s "$tmp/DEBIAN/symbols" == 0) {
                        doit("rm", "-f", "$tmp/DEBIAN/symbols");