- Timestamp:
- 01/22/2012 09:01:57 AM (13 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 03adb25
- Parents:
- e9ba8aa8
- Location:
- chapter06
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/chapter06.xml
re9ba8aa8 rf70b664 59 59 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="iproute2.xml"/> 60 60 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="kbd.xml"/> 61 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xz.xml"/> 62 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="kmod.xml"/> 61 63 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="less.xml"/> 62 64 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libpipeline.xml"/> 63 65 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="make.xml"/> 64 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xz.xml"/>65 66 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="man-db.xml"/> 66 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="module-init-tools.xml"/>67 <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="module-init-tools.xml"/> --> 67 68 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="patch.xml"/> 68 69 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="shadow.xml"/> -
chapter06/udev.xml
re9ba8aa8 rf70b664 33 33 <seglistitem> 34 34 <seg>&udev-ch6-sbu;</seg> 35 <seg>&udev-ch6-du; plus &udev-testfiles-du; for testfiles</seg>35 <seg>&udev-ch6-du;</seg> 36 36 </seglistitem> 37 37 </segmentedlist> 38 39 38 </sect2> 40 39 … … 42 41 <title>Installation of Udev</title> 43 42 44 <para>Optionally remove an unneeded warning message that shows up in this45 version of udev at boot time.</para>46 47 <screen><userinput remap="pre">sed -i -e '/deprecated/d' udev/udevadm-trigger.c</userinput></screen>48 49 50 43 <para>The udev-config tarball contains LFS-specific files used to configure 51 44 Udev. Unpack it into the Udev source directory:</para> … … 53 46 <screen><userinput remap="pre">tar -xvf ../&udev-config;.tar.bz2</userinput></screen> 54 47 55 <para>The udev-testfiles tarball contains files needed to test udev. The56 file expands to an apparent size of about 37MB but the actual disk usage57 is less than 7MB.</para>58 59 <screen><userinput remap="pre">tar -xvf ../udev-&udev-version;-testfiles.tar.bz2 --strip-components=1</userinput></screen>60 61 48 <para>Create some devices and directories that Udev cannot handle due to 62 49 them being required very early in the boot process, or by Udev itself:</para> … … 68 55 69 56 <!-- Note that "libdir=/usr/lib64" would be required for multilib. --> 70 <screen><userinput remap="configure">./configure --prefix=/usr \ 71 --sysconfdir=/etc --sbindir=/sbin \ 72 --with-rootlibdir=/lib --libexecdir=/lib/udev \ 73 --disable-hwdb --disable-introspection \ 74 --disable-keymap --disable-gudev</userinput></screen> 57 <screen><userinput remap="configure">BLKID_CFLAGS="-I/usr/include/blkid" BLKID_LIBS="-L/lib -lblkid" \ 58 KMOD_CFLAGS="-I/usr/include" KMOD_LIBS="-L/lib -lkmod" ./configure \ 59 --prefix=/usr --bindir=/sbin --sysconfdir=/etc --libexecdir=/lib \ 60 --enable-rule_generator --disable-introspection --disable-keymap \ 61 --disable-gudev --with-usb-ids-path=no --with-pci-ids-path=no \ 62 --with-systemdsystemunitdir=no</userinput></screen> 75 63 76 64 <variablelist> 77 65 <title>The meaning of the new configure options</title> 78 66 79 <varlistentry> 80 <term><parameter>--with-rootlibdir=/lib</parameter></term> 81 <listitem> 82 <para>This controls where the <filename 83 class="libraryfile">libudev</filename> library is installed. The 84 library needs to be in <filename class="directory">/lib</filename> 85 because it's used by Udev at boot time, before <filename 86 class="directory">/usr</filename> might be available, and the default 87 --rootlibdir is <filename class="directory">/usr/lib</filename>.</para> 88 </listitem> 89 </varlistentry> 90 91 <!-- Note that libexecdir *MUST* stay /lib/udev, even on a 64-bit 92 / multilib system where udev is compiled for 64-bit. Other 93 packages require this exact path; the udev maintainers have 67 <!-- Note that libexecdir *MUST* stay /lib, even on a 64-bit 68 / multilib system where udev is compiled for 64-bit. The udev 69 configure system automatically adds "udev" onto this path, and other 70 packages require /lib/udev; the udev maintainers have 94 71 said this is part of the udev API. --> 95 72 <varlistentry> 96 <term><parameter>--libexecdir=/lib /udev</parameter></term>73 <term><parameter>--libexecdir=/lib</parameter></term> 97 74 <listitem> 98 75 <para>This controls where Udev-internal rules and helper programs … … 102 79 103 80 <varlistentry> 104 <term><parameter>--disable-*</parameter></term> 81 <term><parameter>--enable-rule_generator</parameter></term> 82 <listitem> 83 <para>This allows persistent rules to be generated for network and 84 optical media devices</para> 85 </listitem> 86 </varlistentry> 87 88 <varlistentry> 89 <term><parameter>--disable-* and --with-*</parameter></term> 105 90 <listitem> 106 91 <para>These options prevent Udev from installing helper programs and -
chapter06/xz.xml
re9ba8aa8 rf70b664 47 47 <para>Prepare Xz for compilation with:</para> 48 48 49 <screen><userinput remap="configure">./configure --prefix=/usr -- docdir=/usr/share/doc/xz-&xz-version;</userinput></screen>49 <screen><userinput remap="configure">./configure --prefix=/usr --libdir=/lib --docdir=/usr/share/doc/xz-&xz-version;</userinput></screen> 50 50 51 51 <para>Compile the package:</para>
Note:
See TracChangeset
for help on using the changeset viewer.