| 1 | diff -Naur LFS-orig/chapter01/changelog.xml LFS/chapter01/changelog.xml
|
|---|
| 2 | --- LFS-orig/chapter01/changelog.xml 2008-09-28 02:19:01.000000000 -0500
|
|---|
| 3 | +++ LFS/chapter01/changelog.xml 2008-09-28 02:22:56.000000000 -0500
|
|---|
| 4 | @@ -77,6 +77,9 @@
|
|---|
| 5 | <listitem>
|
|---|
| 6 | <para>[dj] - Updated to texinfo-4.13.</para>
|
|---|
| 7 | </listitem>
|
|---|
| 8 | + <listitem>
|
|---|
| 9 | + <para>[dj] - Updated to udev-126.</para>
|
|---|
| 10 | + </listitem>
|
|---|
| 11 | </itemizedlist>
|
|---|
| 12 | </listitem>
|
|---|
| 13 |
|
|---|
| 14 | diff -Naur LFS-orig/chapter06/udev.xml LFS/chapter06/udev.xml
|
|---|
| 15 | --- LFS-orig/chapter06/udev.xml 2008-08-17 15:52:48.000000000 -0500
|
|---|
| 16 | +++ LFS/chapter06/udev.xml 2008-09-28 02:22:23.000000000 -0500
|
|---|
| 17 | @@ -58,58 +58,35 @@
|
|---|
| 18 | ln -sv /proc/self/fd/2 /lib/udev/devices/stderr
|
|---|
| 19 | ln -sv /proc/kcore /lib/udev/devices/core</userinput></screen>
|
|---|
| 20 |
|
|---|
| 21 | - <para>Compile the package:</para>
|
|---|
| 22 | -
|
|---|
| 23 | -<screen><userinput remap="make">make EXTRAS="`echo extras/*/`"</userinput></screen>
|
|---|
| 24 | + <para>Prepare the package for compilation:</para>
|
|---|
| 25 |
|
|---|
| 26 | - <variablelist>
|
|---|
| 27 | - <title>The meaning of the make option:</title>
|
|---|
| 28 | -
|
|---|
| 29 | - <varlistentry>
|
|---|
| 30 | - <term><parameter>EXTRAS=...</parameter></term>
|
|---|
| 31 | - <listitem>
|
|---|
| 32 | - <para>This builds the helper binaries that can aid in writing custom
|
|---|
| 33 | - Udev rules.</para>
|
|---|
| 34 | - </listitem>
|
|---|
| 35 | - </varlistentry>
|
|---|
| 36 | +<screen><userinput remap="configure">./configure --prefix=/ --includedir=/usr/include \
|
|---|
| 37 | + --datarootdir=/usr/share</userinput></screen>
|
|---|
| 38 | + <para>Compile the package:</para>
|
|---|
| 39 |
|
|---|
| 40 | - </variablelist>
|
|---|
| 41 | +<screen><userinput remap="make">make</userinput></screen>
|
|---|
| 42 |
|
|---|
| 43 | <para>To test the results, issue:</para>
|
|---|
| 44 |
|
|---|
| 45 | -<screen><userinput remap="test">make test</userinput></screen>
|
|---|
| 46 | +<screen><userinput remap="test">make check</userinput></screen>
|
|---|
| 47 |
|
|---|
| 48 | <para>Note that the Udev testsuite will produce numerous messages in
|
|---|
| 49 | the host system's logs. These are harmless and can be ignored.</para>
|
|---|
| 50 |
|
|---|
| 51 | <para>Install the package:</para>
|
|---|
| 52 |
|
|---|
| 53 | -<screen><userinput remap="install">make DESTDIR=/ EXTRAS="`echo extras/*/`" install</userinput></screen>
|
|---|
| 54 | -
|
|---|
| 55 | - <variablelist>
|
|---|
| 56 | - <title>The meaning of the make parameter:</title>
|
|---|
| 57 | -
|
|---|
| 58 | - <varlistentry>
|
|---|
| 59 | - <term><parameter>DESTDIR=/</parameter></term>
|
|---|
| 60 | - <listitem>
|
|---|
| 61 | - <para>This prevents the Udev build process from killing any
|
|---|
| 62 | - <command>udevd</command> processes that may be running on the
|
|---|
| 63 | - host system.</para>
|
|---|
| 64 | - </listitem>
|
|---|
| 65 | - </varlistentry>
|
|---|
| 66 | -
|
|---|
| 67 | - </variablelist>
|
|---|
| 68 | +<screen><userinput remap="install">make install</userinput></screen>
|
|---|
| 69 |
|
|---|
| 70 | <para>Udev has to be configured in order to work properly, as its default
|
|---|
| 71 | configuration does not cover all devices. First install a few extra rules
|
|---|
| 72 | files from Udev to help support device-mapper and RAID setups:</para>
|
|---|
| 73 |
|
|---|
| 74 | -<screen><userinput remap="install">install -m644 -v etc/udev/packages/64-*.rules \
|
|---|
| 75 | +<screen><userinput remap="install">install -m644 -v rules/packages/64-*.rules \
|
|---|
| 76 | /etc/udev/rules.d/</userinput></screen>
|
|---|
| 77 |
|
|---|
| 78 | <para>Now install a file to create symlinks for certain hand-held devices:</para>
|
|---|
| 79 |
|
|---|
| 80 | -<screen><userinput remap="install">install -m644 -v etc/udev/packages/40-pilot-links.rules \
|
|---|
| 81 | +<screen><userinput remap="install">install -m644 -v rules/packages/40-pilot-links.rules \
|
|---|
| 82 | /etc/udev/rules.d/40-pilot-links.rules</userinput></screen>
|
|---|
| 83 |
|
|---|
| 84 | <!-- There are more files available in the packages/ directory, if we want
|
|---|
| 85 | @@ -140,6 +117,11 @@
|
|---|
| 86 | install -m644 -v docs/writing_udev_rules/index.html \
|
|---|
| 87 | /usr/share/doc/udev-&udev-version;/index.html</userinput></screen>
|
|---|
| 88 |
|
|---|
| 89 | + <para>Finally, move the package config file to the correct location:</para>
|
|---|
| 90 | +
|
|---|
| 91 | +<screen><userinput remap="install">mv /lib/pkgconfig/libvolume_id.pc /usr/lib/pkgconfig &&
|
|---|
| 92 | +rmdir /lib/pkgconfig</userinput></screen>
|
|---|
| 93 | +
|
|---|
| 94 | </sect2>
|
|---|
| 95 |
|
|---|
| 96 | <sect2 id="contents-udev" role="content">
|
|---|
| 97 | diff -Naur LFS-orig/packages.ent LFS/packages.ent
|
|---|
| 98 | --- LFS-orig/packages.ent 2008-09-28 02:19:01.000000000 -0500
|
|---|
| 99 | +++ LFS/packages.ent 2008-09-28 02:21:22.000000000 -0500
|
|---|
| 100 | @@ -476,12 +476,12 @@
|
|---|
| 101 | <!ENTITY texinfo-ch6-du "19.3 MB">
|
|---|
| 102 | <!ENTITY texinfo-ch6-sbu "0.2 SBU">
|
|---|
| 103 |
|
|---|
| 104 | -<!ENTITY udev-version "122">
|
|---|
| 105 | -<!ENTITY udev-size "207 KB">
|
|---|
| 106 | +<!ENTITY udev-version "126">
|
|---|
| 107 | +<!ENTITY udev-size "432 KB">
|
|---|
| 108 | <!ENTITY udev-url "&kernel;linux/utils/kernel/hotplug/udev-&udev-version;.tar.bz2">
|
|---|
| 109 | -<!ENTITY udev-md5 "aca509d0a286c06d897f9de67f527ace">
|
|---|
| 110 | +<!ENTITY udev-md5 "502964d8623b81b6565c727dd28024de">
|
|---|
| 111 | <!ENTITY udev-home "&kernel;linux/utils/kernel/hotplug/udev.html">
|
|---|
| 112 | -<!ENTITY udev-ch6-du "7.6 MB">
|
|---|
| 113 | +<!ENTITY udev-ch6-du "6.8 MB">
|
|---|
| 114 | <!ENTITY udev-ch6-sbu "0.1 SBU">
|
|---|
| 115 |
|
|---|
| 116 | <!ENTITY udev-config "udev-config-20080522"> <!-- Scripts depend on this format -->
|
|---|