Changeset f70b664 for chapter06/udev.xml


Ignore:
Timestamp:
01/22/2012 09:01:57 AM (12 years ago)
Author:
Matthew Burgess <matthew@…>
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, 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/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
03adb25
Parents:
e9ba8aa8
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/udev.xml

    re9ba8aa8 rf70b664  
    3333      <seglistitem>
    3434        <seg>&udev-ch6-sbu;</seg>
    35         <seg>&udev-ch6-du; plus &udev-testfiles-du; for testfiles</seg>
     35        <seg>&udev-ch6-du;</seg>
    3636      </seglistitem>
    3737    </segmentedlist>
    38 
    3938  </sect2>
    4039
     
    4241    <title>Installation of Udev</title>
    4342
    44     <para>Optionally remove an unneeded warning message that shows up in this
    45     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 
    5043    <para>The udev-config tarball contains LFS-specific files used to configure
    5144    Udev. Unpack it into the Udev source directory:</para>
     
    5346<screen><userinput remap="pre">tar -xvf ../&udev-config;.tar.bz2</userinput></screen>
    5447
    55     <para>The udev-testfiles tarball contains files needed to test udev. The
    56     file expands to an apparent size of about 37MB but the actual disk usage
    57     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 
    6148    <para>Create some devices and directories that Udev cannot handle due to
    6249    them being required very early in the boot process, or by Udev itself:</para>
     
    6855
    6956<!-- 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>
    7563
    7664    <variablelist>
    7765      <title>The meaning of the new configure options</title>
    7866
    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
    9471           said this is part of the udev API. -->
    9572      <varlistentry>
    96         <term><parameter>--libexecdir=/lib/udev</parameter></term>
     73        <term><parameter>--libexecdir=/lib</parameter></term>
    9774        <listitem>
    9875          <para>This controls where Udev-internal rules and helper programs
     
    10279
    10380      <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>
    10590        <listitem>
    10691          <para>These options prevent Udev from installing helper programs and
Note: See TracChangeset for help on using the changeset viewer.