Chris Staub wrote:
laurent wrote:
Chris Staub wrote:
The host distro is fine. You probably forgot the sed command in chap. 5 util-linux instructions. Using scripts is not a problem - what is a problem is when you don't put all the correct commands in the scripts, and that must be what you did.
Sorry Chris, but I make the sed command! In bash sripts or by hand directly but nothing change!
AAARRRRRRRGGGGGGHHHHHHHHHHHH!!!!!!!!!!

No you did not, or what you typed was incorrect. Please attach the script you used.
ok, in this script i test at the end if mount was linked with the good interpreter...
#!/bin/bash
LFS=/mnt/lfs
installdir=/usr/local/src/LFS
package="util-linux-2.12q"
packagetar=$package".tar"
packagetarbz2=$packagetar".bz2"
echo $packagetarbz2
if [ $HOME != '/home/lfs' ]
then
    echo "Attention vous n'êtes pas lfs!" 
    exit
fi
cp -v $installdir/packages/$packagetarbz2 $LFS/sources
cd $LFS/sources
bzip2 -dv $packagetarbz2
tar xvf $packagetar
rm -rf $packagetar

cd $LFS/sources/$package

# sed here!
sed -i 's@/usr/include@/tools/[EMAIL PROTECTED]' configure

./configure
if [ $? != 0 ]
then
    echo "Configure échoué!" 
    exit
fi
echo "make"
make -C lib &>$installdir/log
if [ $? != 0 ]
then
    echo "Make échoué!" 
    exit
fi
echo "make install"
make -C mount mount umount &>$installdir/log
make -C text-utils more &>$installdir/log
if [ $? != 0 ]
then
    echo "Make install échoué!" 
    exit
fi
cp -v mount/{,u}mount text-utils/more /tools/bin
rm -rf $LFS/sources/$package

echo "Test"
cd $installdir
readelf -l /mnt/lfs/tools/bin/mount | grep interpreter > test
grep -c 'Requesting program interpreter: /tools/lib/ld-linux.so.2' test
if [ $? != 0 ]
then
        echo "Test échoué!"
        rm -rfv test
    exit
fi
echo "Test ok!"
rm -rfv test
exit
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to