[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#527272: dh_strip: please strip also *.cmxs files



Package: debhelper
Version: 7.2.9
Severity: normal
Tags: patch

As said in the subject, patch attached.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages debhelper depends on:
ii  binutils                      2.19.1-1   The GNU assembler, linker and bina
ii  dpkg-dev                      1.14.26    Debian package development tools
ii  file                          5.00-1     Determines file type using "magic"
ii  html2text                     1.3.2a-13  advanced HTML to text converter
ii  man-db                        2.5.5-1    on-line manual pager
ii  perl                          5.10.0-19  Larry Wall's Practical Extraction 
ii  po-debconf                    1.0.16     tool for managing templates file t

debhelper recommends no packages.

Versions of packages debhelper suggests:
ii  dh-make                       0.48       tool that converts source archives

-- no debconf information
commit e22f3535990664f5a0246d23764684307b30b112
Author: Stephane Glondu <steph@glondu.net>
Date:   Wed May 6 15:23:29 2009 +0200

    Strip also OCaml shared libraries

diff --git a/dh_strip b/dh_strip
index 2c667bb..cfa2665 100755
--- 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.*/) {

Reply to: