Hello Andree and everyone,
> A difference to the old behaviour is in both cases that only
>libraries in tls are returned (if this is what ldd reports) and not the
>non-tls counterparts. I believe that this is acceptable, though
I tried this patch on an "old" sarge and with a recent install, and this seems
to be a problem (libc6 can't be found anymore - so the mindi CD is broken).
So, I changed it in order to get the same libraries returned as with the old
behaviour.
It works perfectly for me (tested with an old and a new libc6)
The patch is attached.
Thierry
--
Thierry Lathuille
Annemasse, France
--- mindi.orig 2005-04-10 01:41:55.000000000 +0200
+++ mindi 2005-10-05 00:41:24.000000000 +0200
@@ -2256,18 +2256,14 @@
main_fname=$1
read incoming
while [ "$incoming" != "" ] ; do
- incoming=`echo "$incoming" | tr -s ' ' '\t'`
- i=`echo "$incoming" | cut -f2`
- if [ "$i" = "=>" ] ; then
-# was cut -f1,3
- for fname in `echo "$incoming" | cut -f1,3` ; do
- fname=`LocateFile $fname`
- for f in $fname ; do
- [ -e "$f" ] && echo $f
- done
- done
- fi
- read incoming
+ incoming=`echo "$incoming" | sed 's/(.*)//'|tr -d ' \t'|sed '/=>$/ d'|sed 's/=>/ /'`
+ for fname in `echo "$incoming"` ; do
+ fname=`LocateFile $fname`
+ for f in $fname ; do
+ [ -e "$f" ] && echo $f
+ done
+ done
+ read incoming
done
}