On Wed, Mar 30, 2005 at 12:23:30PM +0900, GOTO Masanori wrote:
> I expect you to explain why mkinitrd breaks with new ldd.
gcbirzan@meteor:~$ ldd /bin/bash | sed 's/.*=>[[:blank:]]*\([^[:blank:]]*\).*/\1/'
(0xffffe000)
/lib/libncurses.so.5
/lib/tls/libdl.so.2
/lib/tls/libc.so.6
/lib/ld-linux.so.2 (0xb7fea000)
That's what mkinitrd uses to get the libs a binary depends on. The fixed
version would be
sed -n 's/.*\(=>\)\?[[:blank:]]\+\(\/[^[:blank:]]*\).*/\2/p'
(No, I don't know what this break on and, no, I've not yet submitted a
bugreport against mkinitrd.)
Anyway, bottom line is it doesn't put /lib/ld-linux.so.2 in the initrd,
which makes it useless.
> > Fixing mkinitrd would be relatively easy, I guess, since I fixed mine,
> > but there may be other scripts which depend on this behaviour.
>
> But this argument does not become the exact reason to modify ldd. I
> think tools should be followed because the behavior of ldd is not
> standardized.
Yes, but changing one tool is better than changing N, where N is greater
than one. :-)
--
George Cristian Bîrzan gcbirzan (at) wolfheart (dot) ro
The first requisite for immortality is death.
-- Stanislaw Lem
Attachment:
signature.asc
Description: Digital signature