Bug#178002: mklibs: Fail to handle .so files
Here is a recipe for provoking the mklibs bug. This must be done on a
Sid installation to find all dependencies (I use a chroot
environment):
cvs -d :ext:cvs.debian.org:/cvs/debian-boot co debian-installer
cd debian-installer/tools/cdebconf/
[patch it to include the slang frontend into the udeb]
debuild
cp ../cdebconf-udeb_*.udeb ../../build/localdebs
cd ../../build
make TYPE=cdrom144 tree
Then run this to see the loop problem:
mklibs -v -v --ldlib \
ld-linux.so.2 -d ./tmp/cdrom144/tree/lib \
tmp/cdrom144/tree/usr/lib/cdebconf/frontend/slang.so
I expect to find libslang.so.1-UTF8 in tmp/cdrom144/tree/lib/, but it
is missing. Running ldd on the slang.so file gives this output:
# ldd tmp/cdrom144/tree/usr/lib/cdebconf/frontend/slang.so
libslang.so.1-UTF8 => /lib/libslang.so.1-UTF8 (0x40007000)
libc.so.6 => /lib/libc.so.6 (0x40069000)
libm.so.6 => /lib/libm.so.6 (0x40179000)
libdl.so.2 => /lib/libdl.so.2 (0x4019a000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
#
Index: debian/rules
===================================================================
RCS file: /cvs/debian-boot/debian-installer/tools/cdebconf/debian/rules,v
retrieving revision 1.26
diff -u -3 -p -u -r1.26 rules
--- debian/rules 4 Dec 2002 23:34:25 -0000 1.26
+++ debian/rules 24 Jan 2003 17:28:03 -0000
@@ -54,7 +55,7 @@ build-udeb-stamp:
(cd $(udebbuild); CFLAGS="$(CFLAGS) $(SIZEOPTFLAG) -fomit-frame-pointer"
\
$(topdir)/configure --prefix=/usr --sysconfdir=/etc \
--without-rpath --with-db="rfc822db" \
- --with-frontend="text" $(DEBUG_CONFIGURE_OPT) \
+ --with-frontend="text slang" $(DEBUG_CONFIGURE_OPT) \
--with-conffile=$(CONFFILE))
(cd $(udebbuild); $(MAKE) clean; $(MAKE))
touch $@
Reply to: