From 99dd957967a0fbfb160ad375693835fb6bbea951 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Tue, 21 Apr 2015 22:21:54 +0000 Subject: Prevent /tools from being hard coded into eudev binaries. Update to man-pages-3.8.3. Suppress duplicate installation of attr man pages. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10895 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/attr.xml | 5 +++++ chapter06/eudev.xml | 27 ++++++++++++++++----------- 2 files changed, 21 insertions(+), 11 deletions(-) (limited to 'chapter06') diff --git a/chapter06/attr.xml b/chapter06/attr.xml index d565b143c..22f487b72 100644 --- a/chapter06/attr.xml +++ b/chapter06/attr.xml @@ -46,6 +46,11 @@ sed -i -e 's|/@pkg_name@|&-@pkg_version@|' include/builddefs.in + Prevent installation of manual pages that were already installed by + the package: + +sed -i -e "/SUBDIRS/s|man2||" man/Makefile + Prepare Attr for compilation: ./configure --prefix=/usr \ diff --git a/chapter06/eudev.xml b/chapter06/eudev.xml index 18e3bdff6..3c33e483b 100644 --- a/chapter06/eudev.xml +++ b/chapter06/eudev.xml @@ -44,11 +44,18 @@ sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl + Next, add a workaround to prevent the /tools directory from being + hard coded into Eudev binary files library locations: + +cat > config.cache << "EOF" +HAVE_BLKID=1 +BLKID_LIBS="-lblkid" +BLKID_CFLAGS="-I/tools/include" +EOF + Prepare Eudev for compilation: -BLKID_CFLAGS=-I/tools/include \ -BLKID_LIBS='-L/tools/lib -lblkid' \ -./configure --prefix=/usr \ +./configure --prefix=/usr \ --bindir=/sbin \ --sbindir=/sbin \ --libdir=/usr/lib \ @@ -57,17 +64,15 @@ BLKID_LIBS='-L/tools/lib -lblkid' \ --with-rootprefix= \ --with-rootlibdir=/lib \ --enable-split-usr \ - --enable-libkmod \ - --enable-rule_generator \ - --enable-keymap \ --disable-introspection \ --disable-gudev \ --disable-static \ + --config-cache \ --disable-gtk-doc-html Compile the package: -make +LIBRARY_PATH=/tools/lib make Create some directories now that are needed for tests, but will also be used as a part of installation: @@ -77,11 +82,11 @@ mkdir -pv /etc/udev/rules.d To test the results, issue: -make check +make LD_LIBRARY_PATH=/tools/lib check Install the package: -make install +make LD_LIBRARY_PATH=/tools/lib install Now, install the man pages: @@ -89,7 +94,7 @@ mkdir -pv /etc/udev/rules.d make install-man7 install-man8 popd - Finally, install some custom rules and support files useful in an LFS + Install some custom rules and support files useful in an LFS environment: tar -xvf ../&udev-lfs-version;.tar.bz2 @@ -116,7 +121,7 @@ make -f &udev-lfs-version;/Makefile.lfs install into a binary database /etc/udev/hwdb.bin. Create the initial database: -udevadm hwdb --update +LD_LIBRARY_PATH=/tools/lib udevadm hwdb --update This command needs to be run each time the hardware information is updated. -- cgit v1.2.3-54-g00ecf