]> git.donarmstrong.com Git - debhelper.git/commitdiff
dh_strip: Also strip OCaml shared libraries. (Stephane Glondu) Closes: #527272
authorJoey Hess <joey@gnu.kitenet.net>
Mon, 18 May 2009 19:42:51 +0000 (15:42 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Mon, 18 May 2009 19:42:51 +0000 (15:42 -0400)
debian/changelog
dh_strip

index 19f3df6ed6a09d5a60543508fe7f16dadc187750..adc29a2d7693b664e779f3fb920c8cb378420f30 100644 (file)
@@ -1,3 +1,10 @@
+debhelper (7.2.15) UNRELEASED; urgency=low
+
+  * dh_strip: Also strip OCaml shared libraries. (Stephane Glondu)
+    Closes: #527272
+
+ -- Joey Hess <joeyh@debian.org>  Mon, 18 May 2009 15:42:04 -0400
+
 debhelper (7.2.14) unstable; urgency=low
 
   * dh: Avoid writing log after override_dh_clean is run. Closes: #529228
index 2c667bb74bbc9a93e6cfd03ea5ddc597b3254405..cfa26653341fc6900527b47640d96bf1867f7a93 100755 (executable)
--- a/dh_strip
+++ b/dh_strip
@@ -115,7 +115,8 @@ sub testfile {
        return if $fn=~m/debug\/.*\.so/;
 
        # Does its filename look like a shared library?
-       if (m/.*\.so.*?/) {
+       # (*.cmxs are OCaml native code shared libraries)
+       if (m/.*\.(so.*?|cmxs$)/) {
                # Ok, do the expensive test.
                my $type=get_file_type($_);
                if ($type=~m/.*ELF.*shared.*/) {