Bug#165417: libc6: ldd depends on file for files with exec bit off
At Sat, 19 Oct 2002 08:42:52 +1000,
<herbert@gondor.apana.org.au> wrote:
> The ldd script fails on non-executable files (such as most libraries)
> if the file package is not installed.
This is caused by debian/patches/ldd.dpatch, which uses 'file' command.
See below diff:
- eval $add_env '"$file"' || result=1
+ if [ ! -x "$file" ] && eval file -L "$file" 2>/dev/null \
+ | sed 10q | egrep "$file_magic_regex" > /dev/null; then
+ eval $add_env ${RTLD} '"$file"' || result=1
+ else
+ eval $add_env '"$file"' || result=1
+ fi
I think to resolve this bug is 2 way:
(a) Libc6 has 'Suggests: file' field.
(b) Just drop or modify ldd.dpatch not to degrade ldd speed.
debian/changelog says:
glibc (2.2.3-1) unstable; urgency=low
* ldd.dpatch: New and improved fix for the "no execute permissions"
buglet. Now, ldd will not call the "file" command for every file. This
should speed up dpkg-shlibdeps a lot.
Take (a) is easy way, but (b) is not realistic action?
-- gotom
Reply to: