Package: dpkg-dev
Version: 1.13.16
Severity: important
File: /usr/bin/dpkg-shlibdeps
Tags: patch

Hi,

somewhere between sarge and sid dpkg-shlibdeps stopped using ldd to
find the paths for all used libraries. Instead it uses a hardcoded
list of library path to search for libs.

Unfortunately this list does not contain /emul/ia32-linux subdirs on
amd64 and that makes any 32bit binary fail in dpkg-shlibdeps.

The patch below is a quick fix that add the extra dirs but the problem
goes deeper. The next thing that might fail is all X libraries.

The libc6 (ldconfig) now has a new mechanism for system library
dirs. ldconfig will follow every link in /lib/ldconfig/ and add that
to the default system library path when caching libraries. The
dpkg-shlibdeps only considers its own list and /etc/ld.so.conf but not
those links. Subsequently it misses out on the new dirs.

MfG
        Goswin

--- old/dpkg-shlibdeps    2006-03-11 14:36:16.000000000 +0000
+++ new/dpkg-shlibdeps    2006-03-12 02:45:03.743621360 +0000
@@ -104,7 +104,7 @@
     }
 }
 
-my @librarypaths = qw( /lib /usr/lib /lib64 /usr/lib64 );
+my @librarypaths = qw( /lib /usr/lib /lib64 /usr/lib64 /emul/ia32-linux/lib 
/emul/ia32-linux/usr/lib);
 my %librarypaths = map { $_ => 'default' } @librarypaths;
 
 if ($ENV{LD_LIBRARY_PATH}) {


-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.16-rc4-xen
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages dpkg-dev depends on:
ii  binutils                   2.15-6        The GNU assembler, linker and bina
ii  cpio                       2.5-1.3       GNU cpio -- a program to manage ar
ii  make                       3.80-9        The GNU version of the "make" util
ii  patch                      2.5.9-2       Apply a diff file to an original
ii  perl [perl5]               5.8.4-8sarge3 Larry Wall's Practical Extraction 
ii  perl-modules               5.8.4-8sarge3 Core Perl modules

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to