[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Minor but annoying bug in ld.so.conf/ld.so.conf.d parsing in libtool.m4
From: |
Orion Poplawski |
Subject: |
Minor but annoying bug in ld.so.conf/ld.so.conf.d parsing in libtool.m4 |
Date: |
Mon, 27 Mar 2006 16:07:49 -0700 |
User-agent: |
Thunderbird 1.5 (X11/20060313) |
The following code in libtool.m4:
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2));
skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf |
$SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr
'\n' ' '`
outputs:
cat: ld.so.conf.d/*.conf: No such file or directory
when /etc/ld.so.conf contains:
include ld.so.conf.d/*.conf
and /etc/ld.so.conf.d/ is empty. So you get:
checking dynamic linker characteristics... cat: ld.so.conf.d/*.conf: No
such file or directory
GNU/Linux ld.so
which is kind of annoying though ultimately harmless.
Unfortunately, this:
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; if [ -f %s ];
then cat %s; fi", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0;
}' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^=
]* / /g;/^$/d' | tr '\n' ' '`
doesn't work either for more than one entry in /etc/ld.so.conf.d/. Run
through a for loop first?
for x in %s
do
if [ -f $x ]
then
cat $x
fi
done
I've done that a lot in scripts to avoid this problem.
--
Orion Poplawski
System Administrator 303-415-9701 x222
Colorado Research Associates/NWRA FAX: 303-415-9702
3380 Mitchell Lane, Boulder CO 80301 http://www.co-ra.com
- Minor but annoying bug in ld.so.conf/ld.so.conf.d parsing in libtool.m4,
Orion Poplawski <=