Author: bdubbs Date: Thu Mar 6 14:23:22 2014 New Revision: 10504 Log: Remove udev from systemd and replace with eudev
Added: trunk/BOOK/chapter06/eudev.xml (contents, props changed) Modified: trunk/BOOK/appendices/udev-rules.xml trunk/BOOK/chapter01/changelog.xml trunk/BOOK/chapter01/whatsnew.xml trunk/BOOK/chapter03/packages.xml trunk/BOOK/chapter06/chapter06.xml trunk/BOOK/general.ent trunk/BOOK/packages.ent Modified: trunk/BOOK/appendices/udev-rules.xml ============================================================================== --- trunk/BOOK/appendices/udev-rules.xml Tue Mar 4 07:15:25 2014 (r10503) +++ trunk/BOOK/appendices/udev-rules.xml Thu Mar 6 14:23:22 2014 (r10504) @@ -8,13 +8,13 @@ <appendix id="rules" xreflabel="Appendix E"> <?dbhtml dir="scripts"?> - <?dbhtml filename="udev-rules.html"?> + <?dbhtml filename="eudev-rules.html"?> <title>Udev configuration rules</title> - <para>The rules from &udev-lfs;.tar.bz2 in this appendix are listed for + <para>The rules from <!-- &eudev-lfs;.tar.bz2 -->in this appendix are listed for convenience. Installation is normally done via instructions in <xref - linkend='ch-system-udev'/>. </para> + linkend='ch-system-eudev'/>. </para> <sect1 id="lfsrules" role="wrap"> <title>55-lfs.rules</title> Modified: trunk/BOOK/chapter01/changelog.xml ============================================================================== --- trunk/BOOK/chapter01/changelog.xml Tue Mar 4 07:15:25 2014 (r10503) +++ trunk/BOOK/chapter01/changelog.xml Thu Mar 6 14:23:22 2014 (r10504) @@ -35,6 +35,18 @@ </itemizedlist> </listitem> --> + + <listitem> + <para>2014-03-03</para> + <itemizedlist> + <listitem> + <para>[bdubbs] - Remove udev from systemd and + replace with eudev. Addresses + <ulink url="&lfs-ticket-root;3504">#3504</ulink>.</para> + </listitem> + </itemizedlist> + </listitem> + <listitem> <para>2014-03-03</para> <itemizedlist> Modified: trunk/BOOK/chapter01/whatsnew.xml ============================================================================== --- trunk/BOOK/chapter01/whatsnew.xml Tue Mar 4 07:15:25 2014 (r10503) +++ trunk/BOOK/chapter01/whatsnew.xml Thu Mar 6 14:23:22 2014 (r10504) @@ -226,9 +226,12 @@ <title>Added:</title> <listitem><para></para></listitem> <!-- satisfy build --> - <!--<listitem> - <para>readline-6.2-fixes-2.patch</para> - </listitem>--> + <listitem> + <para>eudev-1.5.1</para> + </listitem> + <listitem> + <para>eudev-1.5.1-manpages</para> + </listitem> </itemizedlist> <itemizedlist> @@ -243,6 +246,10 @@ <para>readline-6.2-fixes-2.patch</para> </listitem> + <listitem> + <para>udev 208</para> + </listitem> + <!--<listitem> <para>texinfo-5.1-test-1.patch</para> </listitem>--> Modified: trunk/BOOK/chapter03/packages.xml ============================================================================== --- trunk/BOOK/chapter03/packages.xml Tue Mar 4 07:15:25 2014 (r10503) +++ trunk/BOOK/chapter03/packages.xml Thu Mar 6 14:23:22 2014 (r10504) @@ -132,6 +132,23 @@ </varlistentry> <varlistentry> + <term>Eudev (&eudev-version;) - <token>&eudev-size;</token>:</term> + <listitem> + <para>Home page: <ulink url="&eudev-home;"/></para> + <para>Download: <ulink url="&eudev-url;"/></para> + <para>MD5 sum: <literal>&eudev-md5;</literal></para> + </listitem> + </varlistentry> + + <varlistentry> + <term>Eudev Manpages (&eudev-version;) - <token>&eudev-manpages-size;</token>:</term> + <listitem> + <para>Download: <ulink url="&eudev-manpages-url;"/></para> + <para>MD5 sum: <literal>&eudev-manpages-md5;</literal></para> + </listitem> + </varlistentry> + + <varlistentry> <term>File (&file-version;) - <token>&file-size;</token>:</term> <listitem> <para>Home page: <ulink url="&file-home;"/></para> Modified: trunk/BOOK/chapter06/chapter06.xml ============================================================================== --- trunk/BOOK/chapter06/chapter06.xml Tue Mar 4 07:15:25 2014 (r10503) +++ trunk/BOOK/chapter06/chapter06.xml Thu Mar 6 14:23:22 2014 (r10504) @@ -70,7 +70,8 @@ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="sysvinit.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="tar.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="texinfo.xml"/> - <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="systemd.xml"/> + <!--<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="systemd.xml"/>--> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="eudev.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="util-linux.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="man-db.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="vim.xml"/> Added: trunk/BOOK/chapter06/eudev.xml ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ trunk/BOOK/chapter06/eudev.xml Thu Mar 6 14:23:22 2014 (r10504) @@ -0,0 +1,213 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" + "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ + <!ENTITY % general-entities SYSTEM "../general.ent"> + %general-entities; +]> + +<sect1 id="ch-system-eudev" role="wrap"> + <?dbhtml filename="eudev.html"?> + + <sect1info condition="script"> + <productname>eudev</productname> + <productnumber>&eudev-version;</productnumber> + <address>&eudev-url;</address> + </sect1info> + + <title>Eudev-&eudev-version;</title> + + <indexterm zone="ch-system-eudev"> + <primary sortas="a-Eudev">Eudev</primary> + </indexterm> + + <sect2 role="package"> + <title/> + + <para>The Eudev package contains programs for dynamic creation of device + nodes.</para> + + <segmentedlist> + <segtitle>&buildtime;</segtitle> + <segtitle>&diskspace;</segtitle> + + <seglistitem> + <seg>&eudev-ch6-sbu;</seg> + <seg>&eudev-ch6-du;</seg> + </seglistitem> + </segmentedlist> + </sect2> + + <sect2 role="installation"> + <title>Installation of Eudev</title> + + <para>First, clean up a few warnings and fix a test script:</para> + +<screen><userinput remap="pre">sed -i '/struct ucred/i struct ucred;' src/libudev/util.h +sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl</userinput></screen> + +<para>Prepare Eudev for compilation:</para> + +<screen><userinput remap="configure">./configure --prefix=/usr \ + --bindir=/sbin \ + --sbindir=/sbin \ + --libdir=/usr/lib \ + --sysconfdir=/etc \ + --libexecdir=/lib \ + --with-rootprefix= \ + --with-rootlibdir=/lib \ + --enable-split-usr \ + --enable-libkmod \ + --enable-rule_generator \ + --disable-introspection \ + --disable-keymap \ + --disable-gudev \ + --disable-gtk-doc-html \ + --with-firmware-path=/lib/firmware </userinput></screen> + +<para>Compile the package:</para> + +<screen><userinput remap="make">make</userinput></screen> + +<para>Create some directories now that are needed for tests, but +will also be used as a part of installation:</para> + +<screen><userinput remap="install">mkdir -pv /lib/{firmware,udev/devices/pts} +mkdir -pv /lib/firmware +mkdir -pv /lib/udev/rules.d +mkdir -pv /etc/udev/rules.d</userinput></screen> + +<para>To test the results, run issue:</para> + +<screen><userinput remap="test">make check</userinput></screen> + + <para>Install the package:</para> + +<screen><userinput remap="install">make install</userinput></screen> + +<para>Finally, install the man pages:</para> + +<screen><userinput remap="install">tar -xvf ../eudev-1.5.1-manpages.tar.bz2 -C /usr/share</userinput></screen> + + </sect2> + + <sect2 id="contents-eudev" role="content"> + <title>Contents of Eudev</title> + + <segmentedlist> + <segtitle>Installed programs</segtitle> + <segtitle>Installed libraries</segtitle> + <segtitle>Installed directories</segtitle> + + <seglistitem> + <seg><!-- These are in /lib/udev and not to be called by the user: + accelerometer, ata_id, cdrom_id, collect, mtd_probe, + scsi_id, v4l_id,--> udevadm and udevd</seg> + + <seg>libudev.so</seg> + + <seg>/etc/udev, /lib/udev, and /lib/firmware</seg> + </seglistitem> + </segmentedlist> + + <variablelist> + <bridgehead renderas="sect3">Short Descriptions</bridgehead> + <?dbfo list-presentation="list"?> + <?dbhtml list-presentation="table"?> +<!-- + <varlistentry id="ata_id"> + <term><command>ata_id</command></term> + <listitem> + <para>Provides Udev with a unique string and + additional information (uuid, label) for an ATA drive</para> + <indexterm zone="ch-system-eudev ata_id"> + <primary sortas="b-ata_id">ata_id</primary> + </indexterm> + </listitem> + </varlistentry> + + <varlistentry id="cdrom_id"> + <term><command>cdrom_id</command></term> + <listitem> + <para>Provides Udev with the capabilities of a + CD-ROM or DVD-ROM drive</para> + <indexterm zone="ch-system-eudev cdrom_id"> + <primary sortas="b-cdrom_id">cdrom_id</primary> + </indexterm> + </listitem> + </varlistentry> + + <varlistentry id="collect"> + <term><command>collect</command></term> + <listitem> + <para>Given an ID for the current uevent and a list of + IDs (for all target uevents), registers the current ID + and indicates whether all target IDs have been registered</para> + <indexterm zone="ch-system-eudev collect"> + <primary sortas="b-collect">collect</primary> + </indexterm> + </listitem> + </varlistentry> + + <varlistentry id="scsi_id"> + <term><command>scsi_id</command></term> + <listitem> + <para>Provides Udev with a unique SCSI identifier + based on the data returned from sending a SCSI INQUIRY command to + the specified device</para> + <indexterm zone="ch-system-eudev scsi_id"> + <primary sortas="b-scsi_id">scsi_id</primary> + </indexterm> + </listitem> + </varlistentry> +--> + <varlistentry id="udevadm"> + <term><command>udevadm</command></term> + <listitem> + <para>Generic udev administration tool: controls the udevd daemon, + provides info from the Udev database, monitors uevents, waits for + uevents to finish, tests Udev configuration, and triggers uevents + for a given device</para> + <indexterm zone="ch-system-eudev udevadm"> + <primary sortas="b-udevadm">udevadm</primary> + </indexterm> + </listitem> + </varlistentry> + + <varlistentry id="udevd"> + <term><command>udevd</command></term> + <listitem> + <para>A daemon that listens for uevents on the netlink socket, + creates devices and runs the configured external programs in + response to these uevents</para> + <indexterm zone="ch-system-eudev udevd"> + <primary sortas="b-udevd">udevd</primary> + </indexterm> + </listitem> + </varlistentry> + + <varlistentry id="libudev"> + <term><filename class="libraryfile">libudev</filename></term> + <listitem> + <para>A library interface to udev device information</para> + <indexterm zone="ch-system-eudev libudev"> + <primary sortas="c-libudev">libudev</primary> + </indexterm> + </listitem> + </varlistentry> + + <varlistentry id="etc-udev"> + <term><filename class="directory">/etc/udev</filename></term> + <listitem> + <para>Contains Udev configuration files, + device permissions, and rules for device naming</para> + <indexterm zone="ch-system-eudev etc-udev"> + <primary sortas="e-/etc/udev">/etc/udev</primary> + </indexterm> + </listitem> + </varlistentry> + + </variablelist> + + </sect2> + +</sect1> Modified: trunk/BOOK/general.ent ============================================================================== --- trunk/BOOK/general.ent Tue Mar 4 07:15:25 2014 (r10503) +++ trunk/BOOK/general.ent Thu Mar 6 14:23:22 2014 (r10504) @@ -1,5 +1,5 @@ -<!ENTITY version "SVN-20140303"> -<!ENTITY releasedate "March 3, 2014"> +<!ENTITY version "SVN-20140306"> +<!ENTITY releasedate "March 6, 2014"> <!ENTITY copyrightdate "1999-2014"><!-- jhalfs needs a literal dash, not – --> <!ENTITY milestone "7.6"> <!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" --> Modified: trunk/BOOK/packages.ent ============================================================================== --- trunk/BOOK/packages.ent Tue Mar 4 07:15:25 2014 (r10503) +++ trunk/BOOK/packages.ent Thu Mar 6 14:23:22 2014 (r10504) @@ -132,6 +132,18 @@ <!ENTITY expect-ch5-du "4.4 MB"> <!ENTITY expect-ch5-sbu "0.1 SBU"> +<!ENTITY eudev-version "1.5.1"> +<!ENTITY eudev-size "1,614 KB"> +<!ENTITY eudev-url "http://dev.gentoo.org/~blueness/eudev/eudev-&eudev-version;.tar.gz"> +<!ENTITY eudev-md5 "c22eb3aeb02b1db32473f4a91dcc58c8"> +<!ENTITY eudev-home "http://www.gentoo.org/proj/en/eudev/"> +<!ENTITY eudev-ch6-du "20 MB"> +<!ENTITY eudev-ch6-sbu "0.3 SBU"> + +<!ENTITY eudev-manpages-size "6 KB"> +<!ENTITY eudev-manpages-url "&anduin-other;eudev-&eudev-version;-manpages.tar.bz2"> +<!ENTITY eudev-manpages-md5 "eaa5b9af344e958c29288e5376b97a28"> + <!ENTITY file-version "5.17"> <!ENTITY file-size "694 KB"> <!ENTITY file-url "ftp://ftp.astron.com/pub/file/file-&file-version;.tar.gz"> -- http://linuxfromscratch.org/mailman/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page