Le 28/12/2011 13:27, Matt Burgess a écrit :
> On Wed, 2011-12-28 at 13:09 +0100, Pierre Labastie wrote:
>
>> So, `version-check.sh' outputs (among other things...):
>> version-check.sh: line 22: /lib/libc.so.6: No such file or directory
>>
>> Actually, current jhalfs does not find it either.
> Current jhalfs does find it on at least Fedora, but by current I mean
> 'current trunk', not 'current released version' (see
> http://wiki.linuxfromscratch.org/alfs/changeset/3537/jhalfs )
>
> I guess that snippet needs to be added to LFS trunk's version-check.sh
> script.
>
I meant `current trunk' too. The change in version 3537 is not enough.
Here is what I have done (not checked on any other system than Debian,
but I do not see a reason why it would not work):
#  if [ -f /lib/libc.so.6 ]; then
#    libcLoc=/lib;
#  elif [ -f /lib64/libc.so.6 ]; then
#    libcLoc=/lib64;
#  fi;
#  libcVer="`/${libcLoc}/libc.so.6 | head -n1`"
  libcExec="`find /lib /lib64 -name libc.so.6 -print`"
  libcVer="`/${libcExec} | head -n1`"


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

Reply via email to