From f70b664df1faabe31c1e5b545ef679eff15ac868 Mon Sep 17 00:00:00 2001 From: Matthew Burgess Date: Sun, 22 Jan 2012 09:01:57 +0000 Subject: Upgrade to Udev-178 and add its dependency of Kmod-4. Fixes #2998 and #3001. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9711 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/chapter06.xml | 5 +++-- chapter06/udev.xml | 53 ++++++++++++++++++------------------------------- chapter06/xz.xml | 2 +- 3 files changed, 23 insertions(+), 37 deletions(-) (limited to 'chapter06') diff --git a/chapter06/chapter06.xml b/chapter06/chapter06.xml index b17c3695a..b1a71197a 100644 --- a/chapter06/chapter06.xml +++ b/chapter06/chapter06.xml @@ -58,12 +58,13 @@ + + - - + diff --git a/chapter06/udev.xml b/chapter06/udev.xml index 06417c6c1..d17e0ef73 100644 --- a/chapter06/udev.xml +++ b/chapter06/udev.xml @@ -32,32 +32,19 @@ &udev-ch6-sbu; - &udev-ch6-du; plus &udev-testfiles-du; for testfiles + &udev-ch6-du; - Installation of Udev - Optionally remove an unneeded warning message that shows up in this - version of udev at boot time. - -sed -i -e '/deprecated/d' udev/udevadm-trigger.c - - The udev-config tarball contains LFS-specific files used to configure Udev. Unpack it into the Udev source directory: tar -xvf ../&udev-config;.tar.bz2 - The udev-testfiles tarball contains files needed to test udev. The - file expands to an apparent size of about 37MB but the actual disk usage - is less than 7MB. - -tar -xvf ../udev-&udev-version;-testfiles.tar.bz2 --strip-components=1 - Create some devices and directories that Udev cannot handle due to them being required very early in the boot process, or by Udev itself: @@ -67,41 +54,39 @@ mknod -m0666 /lib/udev/devices/null c 1 3 Prepare the package for compilation: -./configure --prefix=/usr \ - --sysconfdir=/etc --sbindir=/sbin \ - --with-rootlibdir=/lib --libexecdir=/lib/udev \ - --disable-hwdb --disable-introspection \ - --disable-keymap --disable-gudev +BLKID_CFLAGS="-I/usr/include/blkid" BLKID_LIBS="-L/lib -lblkid" \ + KMOD_CFLAGS="-I/usr/include" KMOD_LIBS="-L/lib -lkmod" ./configure \ + --prefix=/usr --bindir=/sbin --sysconfdir=/etc --libexecdir=/lib \ + --enable-rule_generator --disable-introspection --disable-keymap \ + --disable-gudev --with-usb-ids-path=no --with-pci-ids-path=no \ + --with-systemdsystemunitdir=no The meaning of the new configure options + - --with-rootlibdir=/lib + --libexecdir=/lib - This controls where the libudev library is installed. The - library needs to be in /lib - because it's used by Udev at boot time, before /usr might be available, and the default - --rootlibdir is /usr/lib. + This controls where Udev-internal rules and helper programs + are installed. - - --libexecdir=/lib/udev + --enable-rule_generator - This controls where Udev-internal rules and helper programs - are installed. + This allows persistent rules to be generated for network and + optical media devices - --disable-* + --disable-* and --with-* These options prevent Udev from installing helper programs and other extras which require more external libraries. These libraries diff --git a/chapter06/xz.xml b/chapter06/xz.xml index cc4db7581..48baad9e3 100644 --- a/chapter06/xz.xml +++ b/chapter06/xz.xml @@ -46,7 +46,7 @@ Prepare Xz for compilation with: -./configure --prefix=/usr --docdir=/usr/share/doc/xz-&xz-version; +./configure --prefix=/usr --libdir=/lib --docdir=/usr/share/doc/xz-&xz-version; Compile the package: -- cgit v1.2.3-54-g00ecf