From 053b2060bbedf5187f62affe9ed61961940e46fa Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Tue, 21 Jan 2014 18:49:14 +0000 Subject: Moved util-linux final build to be after udev. Fixed up e2fsprogs and udev to use the Chapter 5 build of util-linux. Changed umount instructions in Chapter 9 to be compatible with changes in mounting /run as a tmpfs. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10448 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/chapter06.xml | 2 +- chapter06/e2fsprogs.xml | 23 ++++++++++++++--------- chapter06/systemd.xml | 15 ++++++++++++++- 3 files changed, 29 insertions(+), 11 deletions(-) (limited to 'chapter06') diff --git a/chapter06/chapter06.xml b/chapter06/chapter06.xml index b984f1a11..842b30a91 100644 --- a/chapter06/chapter06.xml +++ b/chapter06/chapter06.xml @@ -33,7 +33,6 @@ - @@ -73,6 +72,7 @@ + diff --git a/chapter06/e2fsprogs.xml b/chapter06/e2fsprogs.xml index 6efb07619..bf4332ba9 100644 --- a/chapter06/e2fsprogs.xml +++ b/chapter06/e2fsprogs.xml @@ -52,7 +52,11 @@ cd build Prepare E2fsprogs for compilation: -../configure --prefix=/usr \ +export PKG_CONFIG_PATH=/tools/lib/pkgconfig + +LIBS=-L/tools/lib \ +CFLAGS=-I/tools/include \ +../configure --prefix=/usr \ --with-root-prefix="" \ --enable-elf-shlibs \ --disable-libblkid \ @@ -61,16 +65,16 @@ cd build --disable-fsck - The meaning of the configure options: - + --with-root-prefix="" @@ -127,9 +131,10 @@ cd build make install - Install the static libraries and headers: + Install the static libraries and headers and do some clean up: -make install-libs +make install-libs +unset PKG_CONFIG_PATH Make the installed static libraries writable so debugging symbols can be removed later: diff --git a/chapter06/systemd.xml b/chapter06/systemd.xml index ca1fa4b43..3af23cc38 100644 --- a/chapter06/systemd.xml +++ b/chapter06/systemd.xml @@ -53,7 +53,14 @@ tar -xvf ../&udev-lfs;.tar.bz2 - Compile the package: + Create two symbolic links to header files and set an + environment variable to properly use . + +ln -svf /tools/include/blkid /usr/include +ln -svf /tools/include/uuid /usr/include +export LD_LIBRARY_PATH=/tools/lib + + Install the package: make -f &udev-lfs;/Makefile.lfs @@ -80,6 +87,12 @@ following script to work. bash &udev-lfs;/init-net-rules.sh + + Do some cleanup: + +rm -fv /usr/include/{uuid,blkid} +unset LD_LIBRARY_PATH + -- cgit v1.2.3-54-g00ecf