Dan Nicholson wrote:
> I noticed that ldd is
> a bash script and will fail silently for non-bash /bin/sh.

And I briefly thought "well, could we patch ldd to make it POSIX?"

Then I saw the script itself.  Never mind.  ;-)

> So, I'm proposing that we force
> /bin/bash as the shebang for ldd. Two possible ways are:
> 
> 1. Prior to configure and changing dirs - sed -i 's|@BASH@|/bin/bash|'
> elf/ldd.in
> 2. Just override the var during make - make BASH=/bin/bash
> 
> What do you guys think?

I like 1.  I'm not sure what else in the glibc autofoo may depend on the
value that configure comes up with for $BASH; hopefully there isn't
anything, but I don't think it's safe to depend on that.  The first is
much more specific; it only targets the ldd script instead of everything
that uses $BASH.

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to