On Wed, Dec 19, 2001 at 12:15:43AM -0700, Erik Andersen wrote:
> On Tue Dec 18, 2001 at 05:38:59PM -0800, Matt Kraai wrote:
> > Howdy,
> >
> > I'd like to make mklibs.py create the minimum number of directory
> > entries for the libraries it reduces. Unfortunately, my
> > understanding of shared libraries is almost non-existent, so I'd
> > appreciate a little help. Is it necessary and sufficient to
> > create a file named `lib<name>.so.<version>' for each library?
>
[snip Erik's explanation and script]
Hmm, thanks for the exposition. So all that needs to be done,
then, is to install and use the libraries via their symlink-names
rather than their real names? Could someone please test the
following patch?
Matt
Index: rootdisk.sh
===================================================================
RCS file: /cvs/debian-boot/boot-floppies/rootdisk.sh,v
retrieving revision 1.300
diff -u -p -r1.300 rootdisk.sh
--- rootdisk.sh 2001/12/08 20:11:44 1.300
+++ rootdisk.sh 2001/12/19 15:56:48
@@ -767,7 +767,6 @@ if [ "$arch" != "hppa" -a "$arch" != "ia
fi
info "doing library reduction with $mklibs"
$mklibs $vflag -L $E/lib:$E/usr/lib:/lib:/usr/lib --dest-dir $R/lib $EXECUTABLES
- /usr/sbin/chroot $R /sbin/ldconfig $vflag
else
info "skipping library reduction on this platform"
fi
Index: scripts/rootdisk/mklibs.py
===================================================================
RCS file: /cvs/debian-boot/boot-floppies/scripts/rootdisk/mklibs.py,v
retrieving revision 1.5
diff -u -p -r1.5 mklibs.py
--- scripts/rootdisk/mklibs.py 2001/11/14 16:13:56 1.5
+++ scripts/rootdisk/mklibs.py 2001/12/19 15:56:48
@@ -166,7 +166,7 @@ def resolve_link(file):
def find_lib(lib):
for path in lib_path:
if os.access(path + "/" + lib, os.F_OK):
- return resolve_link(path + "/" + lib)
+ return path + "/" + lib
return ""
@@ -272,7 +272,7 @@ while 1:
# FIXME: on i386 this is undefined but not marked UND
# I don't know how to detect those symbols but this seems
- # to be the only one and including in on alpha as well
+ # to be the only one and including it on alpha as well
# doesn't hurt. I guess all archs can live with this.
needed_symbols.add("sys_siglist")
Attachment:
pgpzh39mRJVIv.pgp
Description: PGP signature