Patch for dpkg-shlibdeps
I have a patch that appears to resolve most of the issues with the shlibs
portion of dpkg; folks are welcome to use this, if it works. I would also
like a review of it for sanity/etc; the changes here make it unuseable on
any glibc based system, for the moment, however.
--- dpkg-shlibdeps.distrib Mon Jan 7 16:28:11 2002
+++ dpkg-shlibdeps Mon Jan 21 20:57:08 2002
@@ -98,10 +98,11 @@
# disposal.
my %so2path = ();
defined($c= open(P,"-|")) || syserr("cannot fork for ldd");
- if (!$c) { exec("ldd","--",$exec[$i]); syserr("cannot exec ldd"); }
+ if (!$c) { exec("ldd",$exec[$i]); syserr("cannot exec ldd"); }
while (<P>) {
- if (m,^\s+(\S+)\s+=>\s+(\S+)\s+\(0x.+\)?$,) {
- $so2path{$1} = $2;
+ if (m,^\s+\S+\s+=>\s+(\S+)\s+$,) {
+ @_ = split('/',$1);
+ $so2path{pop(@_)} = $1;
}
}
close(P); $? && subprocerr("ldd on \`$exec[$i]'");
--
***************************************************************************
Joel Baker System Administrator - lightbearer.com
lucifer@lightbearer.com http://users.lightbearer.com/lucifer/
Reply to: