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

Bug#532701: dh_shlibdeps: please run dpkg-shlibdeps on OCaml's *.cmxs files, too



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

Hello,

Attached is (yet another) patch concerning support of OCaml's *.cmxs
files, in dh_shlibdeps this time.

Cheers,

-- 
Stéphane

-- 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/dash

Versions of packages debhelper depends on:
ii  binutils                      2.19.1-1   The GNU assembler, linker and bina
ii  dpkg-dev                      1.15.2     Debian package development tools
ii  file                          5.03-1     Determines file type using "magic"
ii  html2text                     1.3.2a-14  advanced HTML to text converter
ii  man-db                        2.5.5-2    on-line manual pager
ii  perl                          5.10.0-22  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 484efea29ae0b15d900978066d76072aa5915de6
Author: Stephane Glondu <steph@glondu.net>
Date:   Wed Jun 10 21:50:40 2009 +0200

    dh_shlibdeps: run dpkg-shlibdeps on OCaml's *.cmxs files

diff --git a/dh_shlibdeps b/dh_shlibdeps
index 7b974eb..3ab8981 100755
--- a/dh_shlibdeps
+++ b/dh_shlibdeps
@@ -121,7 +121,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 	if (defined($dh{EXCLUDE_FIND}) && $dh{EXCLUDE_FIND} ne '') {
 		$find_options="! \\( $dh{EXCLUDE_FIND} \\)";
 	}
-	foreach my $file (split(/\n/,`find $tmp -type f \\( -perm +111 -or -name "*.so*" \\) $find_options -print`)) {
+	foreach my $file (split(/\n/,`find $tmp -type f \\( -perm +111 -or -name "*.so*" -or -name "*.cmxs" \\) $find_options -print`)) {
 		# Prune directories that contain separated debug symbols.
 		next if $file=~m!^\Q$tmp\E/usr/lib/debug/(lib|lib64|usr|bin|sbin|opt|dev|emul)/!;
 		# TODO this is slow, optimize. Ie, file can run once on

Reply to: