Hi. There is some simple solution to make ldd.bash.in work with dash, 
and other shells.
Change this line:
BEGIN
if set -o pipefail 2> /dev/null; then
END
to these two lines:
BEGIN
if set -o | grep pipefail 1> /dev/null 2> /dev/null; then
    set -o pipefail 2> /dev/null
END
and that's all. With this fix it works correctly and this sed thing if 
LFS book isn't needed. You could ask why this solution is better than fix?
It is, because it enables you not to use bash for ldd. I donno if glibc 
works without bash, but i saw that this was the only thing which needed 
changing in glibc. So i suppose now you can use dash instead of bash for 
default shell, if you want. LFS should be flexible right?
So little patch for glibc would be better than this sed script.
Mateusz Grotek
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to