]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_strip
r1689: * dh_installmodules: Look for .ko files too. Closes: #248624
[debhelper.git] / dh_strip
index 93d59b36043b5668add4a828928d492ef5a1bce5..65c4f9f82a062195085c920ffe19dab65d9a9c41 100755 (executable)
--- a/dh_strip
+++ b/dh_strip
@@ -58,12 +58,18 @@ automatically load up the debugging symbols from it when debugging libfoo.
 
 This option may be repeated to list more than one package.
 
+Note that if you use this option, your package should build-depend on
+binutils (>= 2.14.90.0.7).
+
 =item B<-k>, B<--keep-debug>
 
 Debug symbols will be retained, but split into an independant
 file in usr/lib/debug/ in the package build directory. --dbg-package
 is easier to use than this option, but this option is more flexible.
 
+Note that if you use this option, your package should build-depend on
+binutils (>= 2.12.90.0.9).
+
 =back
 
 =head1 NOTES
@@ -101,7 +107,7 @@ sub get_file_type {
 my (@shared_libs, @executables, @static_libs);
 sub testfile {
        return if -l $_ or -d $_; # Skip directories and symlinks always.
-
+       
        # See if we were asked to exclude this file.
        # Note that we have to test on the full filename, including directory.
        my $fn="$File::Find::dir/$_";
@@ -135,8 +141,13 @@ sub testfile {
        
        # Is it a static library, and not a debug library?
        if (m/lib.*\.a$/ && ! m/.*_g\.a$/) {
-               push @static_libs, $fn;
-               return;
+               # Is it a binary file, or something else (maybe a liner
+               # script on Hurd, for example? I don't use file, because
+               # file returns a varity of things on static libraries.
+               if (-B $_) {
+                       push @static_libs, $fn;
+                       return;
+               }
        }
 }