On 2011-10-25 20:25 +0200, Sven Joachim wrote:

> Package: dpkg-dev
> Version: 1.16.1.1
> Severity: normal
>
> I tried to build ncurses 5.9-2 in a squeeze chroot with only the
> necessary build dependencies (debhelper, dpkg-dev and libdpkg-perl)
> upgraded to the wheezy version.  The result was not quite satisfactory,
> because dpkg-shlibdeps did not find libtinfo.so.5:
>
> ,----
> | dh_makeshlibs -plibtinfo5 -V "libtinfo5 (>= 5.7+20100313)" -- -c4
> | dh_makeshlibs -plibncurses5 -V "libncurses5 (>= 5.7+20100313)" -- -c4
> | dh_makeshlibs -plibncursesw5 -V "libncursesw5 (>= 5.7+20100313)" -- -c4
> | dh_makeshlibs -plib64tinfo5 -V "lib64tinfo5 (>= 5.7+20100313)" -- -c4
> | dh_makeshlibs -plib64ncurses5 -V "lib64ncurses5 (>= 5.7+20100313)" -- -c4
> | dh_shlibdeps -s
> | dpkg-shlibdeps: error: couldn't find library libtinfo.so.5 needed by
> | debian/libncurses5/usr/lib/i386-linux-gnu/libpanel.so.5.9 (ELF
> | format: 'elf32-i386'; RPATH: '').
> | dpkg-shlibdeps: error: couldn't find library libtinfo.so.5 needed by
> | debian/libncurses5/usr/lib/i386-linux-gnu/libmenu.so.5.9 (ELF
> | format: 'elf32-i386'; RPATH: '').
> | dpkg-shlibdeps: error: couldn't find library libtinfo.so.5 needed by
> | debian/libncurses5/lib/i386-linux-gnu/libncurses.so.5.9 (ELF format:
> | elf32-i386'; RPATH: '').
> | dpkg-shlibdeps: error: couldn't find library libtinfo.so.5 needed by
> | debian/libncurses5/usr/lib/i386-linux-gnu/libform.so.5.9 (ELF
> | format: 'elf32-i386'; RPATH: '').
> | dpkg-shlibdeps: error: Cannot continue due to the errors listed above.
> | Note: libraries are not searched in other binary packages that do not have 
> any shlibs or symbols file.
> `----

The error happens because there is no libtinfo.so.5 in squeeze.  For
library packages where a copy of the library already exists on the
system, dpkg-shlibdeps would use that one instead AFAICS, which seems to
be a worse outcome since it can lead to incorrect dependencies.

> The reason seems to be that {/usr,}/lib/i386-linux-gnu is not in the
> dynamic linker's search path in squeeze.  Perhaps dpkg-dev should depend
> on multiarch-support, which pulls in a libc6 version with the right
> contents of /etc/ld.so.conf.d/i486-linux-gnu.conf ?

That would at least be sufficient, since copying a sid version of
/etc/ld.so.conf.d/i486-linux-gnu.conf to the chroot was enough to make
ncurses build, and the dependencies of the produced binary packages
appear to be correct.

Cheers,
       Sven



-- 
To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to