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

Bug#367892: Missing /lib/ldconfig links needed by dpkg-shlibdeps



reassign 367892 dpkg
thanks

Goswin Brederlow wrote:
Package: libc6-i386
Version: 2.3.6-7
Severity: important

Hi,

when building a 32bit program on amd64 I get the following problem:

mrvn@storage:~/mbr/mbr-1.1.5$ dpkg-shlibdeps -O debian/tmp/sbin/install-mbr dpkg-shlibdeps: warning: could not find any packages for libc.so.6
dpkg-shlibdeps: warning: unable to find dependency information for shared library libc (soname 6, path libc.so.6, dependency field Depends)

The reason for this is that dpkg-shlibdeps only knows the old standard
dirs (lib + lib64) and then follows /lib/ldconfig/* links for any
other system dirs. The 32bit libc6 is in /emul/ia32-linux/lib (/lib32/
link) and will not be found.

ldd and ldconfig do look in these directories (I mean /lib32 and /usr/lib32, but they follow the symlinks), even without the symlink in /lib/ldconfig, so if dpkg-shlibdeps does not look in this directory, I think the bug is in this tool.

Installing (the not needed) ia32-libs, which contains

lrwxrwxrwx 1 root root 20 May 18 15:45 /lib/ldconfig/emul_ia32-linux_lib -> /emul/ia32-linux/lib

Again, ldconfig was only intend for multiarch, please don't use this directory for other things. Moreover it is not needed here.

, results in the correct dpkg-shlibs behaviour:

mrvn@storage:~/mbr/mbr-1.1.5$ dpkg-shlibdeps -O debian/tmp/sbin/install-mbr shlibs:Depends=libc6-i386 (>= 2.3.5-1)



May I suggest to add /lib/ldconfig/lib32 -> /lib32 and
/lib/ldconfig/usr_lib32 -> /usr/lib32 to the libc6-i386 package so
packages will get the correct Depends again.


As explained above, this only a workaround, not a fix. The fix has to be done in dpkg-shlibdeps, that's why I am reassigning this package to dpkg.

--
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian GNU/Linux developer | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net



Reply to: