Added full build of Systemd including its remaining dependencies (attr, gperf, intltool, and libcap2).

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10125 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Matthew Burgess 2013-02-12 21:04:49 +00:00
parent e0001a5ff0
commit 686badf53c
13 changed files with 969 additions and 119 deletions

View File

@ -2084,6 +2084,41 @@
</seglistitem>
</segmentedlist>
<!-- Begin Xml-Parser dependency info -->
<bridgehead renderas="sect2" id="xml-parser-dep">Xml::Parser</bridgehead>
<segmentedlist>
<segtitle>&dependencies;</segtitle>
<seglistitem>
<seg>Expat, Make, and Perl.</seg>
</seglistitem>
</segmentedlist>
<segmentedlist>
<segtitle>&testsuites;</segtitle>
<seglistitem>
<seg>None</seg>
</seglistitem>
</segmentedlist>
<segmentedlist>
<segtitle>&before;</segtitle>
<seglistitem>
<seg>Intltool</seg>
</seglistitem>
</segmentedlist>
<segmentedlist>
<segtitle>&external;</segtitle>
<seglistitem>
<seg>libwww-perl</seg>
</seglistitem>
</segmentedlist>
<!-- Begin Xz-utils dependency info -->
<bridgehead renderas="sect2" id="xz-dep">Xz</bridgehead>

View File

@ -35,6 +35,16 @@
</itemizedlist>
</listitem>
-->
<listitem>
<para>2013-02-13</para>
<itemizedlist>
<listitem>
<para>[matthew] - Added full build of Systemd including its remaining
dependencies (attr, gperf, intltool and libcap2).</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2013-02-11</para>
<itemizedlist>

View File

@ -228,6 +228,10 @@
<itemizedlist>
<title>Added:</title>
<listitem>
<para>Attr-&attr-version;</para>
</listitem>
<listitem>
<para>&bash-fixes-patch;</para>
</listitem>
@ -244,14 +248,38 @@
<para>&coreutils-test-patch;</para>
</listitem>
<listitem>
<para>Expat-&expat-version;</para>
</listitem>
<listitem>
<para>Gperf-&gperf-version;</para>
</listitem>
<listitem>
<para>Intltool-&intltool-version;</para>
</listitem>
<listitem>
<para>&kbd-backspace-patch;</para>
</listitem>
<listitem>
<para>Libcap2-&libcap2-version;</para>
</listitem>
<listitem>
<para>&make-fixes-patch;</para>
</listitem>
<listitem>
<para>Systemd-&systemd-version;</para>
</listitem>
<listitem>
<para>XML-Parser-&xml-parser-version;</para>
</listitem>
</itemizedlist>
<itemizedlist>
@ -313,10 +341,6 @@
<para>sed-4.2.1-testsuite_fixes-1.patch</para>
</listitem>
<listitem>
<para>Sysvinit-2.88dsf</para>
</listitem>
</itemizedlist>
</sect1>

View File

@ -14,6 +14,15 @@
<variablelist role="materials">
<varlistentry>
<term>Attr (&attr-version;) - <token>&attr-size;</token>:</term>
<listitem>
<para>Home page: <ulink url="&attr-home;"/></para>
<para>Download: <ulink url="&attr-url;"/></para>
<para>MD5 sum: <literal>&attr-md5;</literal></para>
</listitem>
</varlistentry>
<varlistentry>
<term>Autoconf (&autoconf-version;) - <token>&autoconf-size;</token>:</term>
<listitem>
@ -113,6 +122,15 @@
</listitem>
</varlistentry>
<varlistentry>
<term>Expat (&expat-version;) - <token>&expat-size;</token>:</term>
<listitem>
<para>Home page: <ulink url="&expat-home;"/></para>
<para>Download: <ulink url="&expat-url;"/></para>
<para>MD5 sum: <literal>&expat-md5;</literal></para>
</listitem>
</varlistentry>
<varlistentry>
<term>Expect (&expect-version;) - <token>&expect-size;</token>:</term>
<listitem>
@ -212,6 +230,15 @@
</listitem>
</varlistentry>
<varlistentry>
<term>Gperf (&gperf-version;) - <token>&gperf-size;</token>:</term>
<listitem>
<para>Home page: <ulink url="&gperf-home;"/></para>
<para>Download: <ulink url="&gperf-url;"/></para>
<para>MD5 sum: <literal>&gperf-md5;</literal></para>
</listitem>
</varlistentry>
<varlistentry>
<term>Grep (&grep-version;) - <token>&grep-size;</token>:</term>
<listitem>
@ -266,6 +293,15 @@
</listitem>
</varlistentry>
<varlistentry>
<term>Intltool (&intltool-version;) - <token>&intltool-size;</token>:</term>
<listitem>
<para>Home page: <ulink url="&intltool-home;"/></para>
<para>Download: <ulink url="&intltool-url;"/></para>
<para>MD5 sum: <literal>&intltool-md5;</literal></para>
</listitem>
</varlistentry>
<varlistentry>
<term>IPRoute2 (&iproute2-version;) - <token>&iproute2-size;</token>:</term>
<listitem>
@ -311,6 +347,15 @@
</listitem>
</varlistentry>
<varlistentry>
<term>Libcap2 (&libcap2-version;) - <token>&libcap2-size;</token>:</term>
<listitem>
<para>Home page: <ulink url="&libcap2-home;"/></para>
<para>Download: <ulink url="&libcap2-url;"/></para>
<para>MD5 sum: <literal>&libcap2-md5;</literal></para>
</listitem>
</varlistentry>
<varlistentry>
<term>Libpipeline (&libpipeline-version;) - <token>&libpipeline-size;</token>:</term>
<listitem>
@ -593,6 +638,15 @@
</listitem>
</varlistentry>
<varlistentry>
<term>XML::Parser (&xml-parser-version;) - <token>&xml-parser-size;</token>:</term>
<listitem>
<para>Home page: <ulink url="&xml-parser-home;"/></para>
<para>Download: <ulink url="&xml-parser-url;"/></para>
<para>MD5 sum: <literal>&xml-parser-md5;</literal></para>
</listitem>
</varlistentry>
<varlistentry>
<term>Xz Utils (&xz-version;) - <token>&xz-size;</token>:</term>
<listitem>

132
chapter06/attr.xml Normal file
View File

@ -0,0 +1,132 @@
<?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-attr" role="wrap">
<?dbhtml filename="attr.html"?>
<sect1info condition="script">
<productname>attr</productname>
<productnumber>&attr-version;</productnumber>
<address>&attr-url;</address>
</sect1info>
<title>Attr-&attr-version;</title>
<indexterm zone="ch-system-attr">
<primary sortas="a-Attr">Attr</primary>
</indexterm>
<sect2 role="package">
<title/>
<para>The attr package contains utilities to administer the extended
attributes on filesystem objects.</para>
<segmentedlist>
<segtitle>&buildtime;</segtitle>
<segtitle>&diskspace;</segtitle>
<seglistitem>
<seg>&attr-ch6-sbu;</seg>
<seg>&attr-ch6-du;</seg>
</seglistitem>
</segmentedlist>
</sect2>
<sect2 role="installation">
<title>Installation of Attr</title>
<para>Modify the documentation directory so that it is a versioned
directory:</para>
<screen><userinput remap="pre">sed -i -e 's|/@pkg_name@|&amp;-@pkg_version@|' include/builddefs.in</userinput></screen>
<para>Prepare Attr for compilation:</para>
<screen><userinput remap="configure">./configure --prefix=/usr --libdir=/lib --libexecdir=/usr/lib</userinput></screen>
<para>Compile the package:</para>
<screen><userinput remap="make">make</userinput></screen>
<para>The attr tests need to be run on a filesystem that supports extended
attributes. To test the results, issue:</para>
<screen><userinput remap="test">make tests root-tests ext-tests</userinput></screen>
<para>Install the package:</para>
<screen><userinput remap="install">make install install-dev install-lib</userinput></screen>
</sect2>
<sect2 id="contents-attr" role="content">
<title>Contents of Attr</title>
<segmentedlist>
<segtitle>Installed programs</segtitle>
<segtitle>Installed library</segtitle>
<segtitle>Installed directories</segtitle>
<seglistitem>
<seg>attr, getfattr, and setattr</seg>
<seg>libattr.{so,a}</seg>
<seg>/usr/{include/attr,share/doc/attr-&attr-version;}</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="attr">
<term><command>attr</command></term>
<listitem>
<para>Extends attributes on filesystem objects</para>
<indexterm zone="ch-system-attr attr">
<primary sortas="b-attr">attr</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="getfattr">
<term><command>getfattr</command></term>
<listitem>
<para>Gets the extended attributes of filesystem objects.</para>
<indexterm zone="ch-system-attr getfattr">
<primary sortas="b-getfattr">getfattr</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="setattr">
<term><command>setattr</command></term>
<listitem>
<para>Sets the extended attributes of filesystem objects</para>
<indexterm zone="ch-system-attr setattr">
<primary sortas="b-setattr">setattr</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libattr">
<term><filename class="libraryfile">libattr.{so,a}</filename></term>
<listitem>
<para>Contains the <application>attr</application> API functions.</para>
<indexterm zone="ch-system-attr libattr">
<primary sortas="c-libattr">libattr.{so,a}</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>

View File

@ -49,6 +49,7 @@
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="expat.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="inetutils.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="perl.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="attr.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="autoconf.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="automake.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="diffutils.xml"/>
@ -56,6 +57,7 @@
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="findutils.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="flex.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gettext.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gperf.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="groff.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xz.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="grub.xml"/>
@ -64,14 +66,17 @@
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="iproute2.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="kbd.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="kmod.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libcap2.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libpipeline.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="make.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="patch.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="sysklogd.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xml-parser.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="intltool.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="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="vim.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="aboutdebug.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="strippingagain.xml"/>

91
chapter06/gperf.xml Normal file
View File

@ -0,0 +1,91 @@
<?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-gperf" role="wrap">
<?dbhtml filename="gperf.html"?>
<sect1info condition="script">
<productname>gperf</productname>
<productnumber>&gperf-version;</productnumber>
<address>&gperf-url;</address>
</sect1info>
<title>Gperf-&gperf-version;</title>
<indexterm zone="ch-system-gperf">
<primary sortas="a-Gperf">Gperf</primary>
</indexterm>
<sect2 role="package">
<title/>
<para>Gperf generates a perfect hash function from a key set.</para>
<segmentedlist>
<segtitle>&buildtime;</segtitle>
<segtitle>&diskspace;</segtitle>
<seglistitem>
<seg>&gperf-ch6-sbu;</seg>
<seg>&gperf-ch6-du;</seg>
</seglistitem>
</segmentedlist>
</sect2>
<sect2 role="installation">
<title>Installation of Gperf</title>
<para>Prepare Gperf for compilation:</para>
<screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/gperf-&gperf-version;</userinput></screen>
<para>Compile the package:</para>
<screen><userinput remap="make">make</userinput></screen>
<para>To test the results, issue:</para>
<screen><userinput remap="test">make check</userinput></screen>
<para>Install the package:</para>
<screen><userinput remap="install">make install</userinput></screen>
</sect2>
<sect2 id="contents-gperf" role="content">
<title>Contents of Gperf</title>
<segmentedlist>
<segtitle>Installed programs</segtitle>
<seglistitem>
<seg>gperf</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="gperf">
<term><command>gperf</command></term>
<listitem>
<para>Generates a perfect hash from a key set</para>
<indexterm zone="ch-system-gperf gperf">
<primary sortas="b-gperf">gperf</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>

140
chapter06/intltool.xml Normal file
View File

@ -0,0 +1,140 @@
<?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-intltool" role="wrap">
<?dbhtml filename="intltool.html"?>
<sect1info condition="script">
<productname>intltool</productname>
<productnumber>&intltool-version;</productnumber>
<address>&intltool-url;</address>
</sect1info>
<title>Intltool-&intltool-version;</title>
<indexterm zone="ch-system-intltool">
<primary sortas="a-Intltool">Intltool</primary>
</indexterm>
<sect2 role="package">
<title/>
<para>The Intltool is an internationalization tool used for extracting
translatable strings from source files.</para>
<segmentedlist>
<segtitle>&buildtime;</segtitle>
<segtitle>&diskspace;</segtitle>
<seglistitem>
<seg>&intltool-ch6-sbu;</seg>
<seg>&intltool-ch6-du;</seg>
</seglistitem>
</segmentedlist>
</sect2>
<sect2 role="installation">
<title>Installation of Intltool</title>
<para>Prepare Intltool for compilation:</para>
<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
<para>Compile the package:</para>
<screen><userinput remap="make">make</userinput></screen>
<para>To test the results, issue:</para>
<screen><userinput remap="test">make check</userinput></screen>
<para>Install the package:</para>
<screen><userinput remap="install">make install &amp;&amp;
install -v -m644 -D doc/I18N-HOWTO \
/usr/share/doc/intltool-&intltool-version;/I18N-HOWTO</userinput></screen>
</sect2>
<sect2 id="contents-intltool" role="content">
<title>Contents of Intltool</title>
<segmentedlist>
<segtitle>Installed program</segtitle>
<segtitle>Installed library</segtitle>
<segtitle>Installed directories</segtitle>
<seglistitem>
<seg>intltool-extract, intltool-merge, intltool-prepare,
intltool-update, and intltoolize</seg>
<seg>None</seg>
<seg>/usr/share/doc/intltool-&intltool-version; and
/usr/share/intltool</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="intltoolize">
<term><command>intltoolize</command></term>
<listitem>
<para>Prepares a package to use intltool.</para>
<indexterm zone="ch-system-intltool intltoolize">
<primary sortas="b-intltoolize">intltoolize</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="intltool-extract">
<term><command>intltool-extract</command></term>
<listitem>
<para>Generates header files that can be read by <command>gettext.</command></para>
<indexterm zone="ch-system-intltool intltool-extract">
<primary sortas="b-intltool-extract">intltool-extract</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="intltool-merge">
<term><command>intltool-merge</command></term>
<listitem>
<para>Merges translated strings into various file types.</para>
<indexterm zone="ch-system-intltool intltool-merge">
<primary sortas="b-intltool-merge">intltool-merge</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="intltool-prepare">
<term><command>intltool-prepare</command></term>
<listitem>
<para>Updates pot files and merges them with translation files.</para>
<indexterm zone="ch-system-intltool intltool-prepare">
<primary sortas="b-intltool-prepare">intltool-prepare</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="intltool-update">
<term><command>intltool-update</command></term>
<listitem>
<para>Updates the po template files and merges them with the translations.</para>
<indexterm zone="ch-system-intltool intltool-update">
<primary sortas="b-intltool-update">intltool-update</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>

120
chapter06/libcap2.xml Normal file
View File

@ -0,0 +1,120 @@
<?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-libcap2" role="wrap">
<?dbhtml filename="libcap2.html"?>
<sect1info condition="script">
<productname>libcap2</productname>
<productnumber>&libcap2-version;</productnumber>
<address>&libcap2-url;</address>
</sect1info>
<title>Libcap2-&libcap2-version;</title>
<indexterm zone="ch-system-libcap2">
<primary sortas="a-Libcap2">Libcap2</primary>
</indexterm>
<sect2 role="package">
<title/>
<para>The Libcap2 package implements the user-space interfaces to the POSIX
1003.1e capabilities available in Linux kernels. These capabilities are a
partitioning of the all powerful root privilege into a set of distinct
privileges.</para>
<segmentedlist>
<segtitle>&buildtime;</segtitle>
<segtitle>&diskspace;</segtitle>
<seglistitem>
<seg>&libcap2-ch6-sbu;</seg>
<seg>&libcap2-ch6-du;</seg>
</seglistitem>
</segmentedlist>
</sect2>
<sect2 role="installation">
<title>Installation of Libcap2</title>
<para>Compile the package:</para>
<screen><userinput remap="make">make</userinput></screen>
<para>This package does not come with a test suite.</para>
<para>Install the package:</para>
<screen><userinput remap="install">make RAISE_SETFCAP=no install</userinput></screen>
</sect2>
<sect2 id="contents-libcap2" role="content">
<title>Contents of Libcap2</title>
<segmentedlist>
<segtitle>Installed programs</segtitle>
<segtitle>Installed library</segtitle>
<seglistitem>
<seg>capsh, getcap, getpcaps, and setcap</seg>
<seg>libcap2.{so,a}</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="capsh">
<term><command>capsh</command></term>
<listitem>
<para>A shell wrapper to explore and constrain capability support</para>
<indexterm zone="ch-system-libcap2 capsh">
<primary sortas="b-capsh">capsh</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="getcap">
<term><command>getcap</command></term>
<listitem>
<para>Examines file capabilities</para>
<indexterm zone="ch-system-libcap2 getcap">
<primary sortas="b-getcap">getcap</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="getpcaps">
<term><command>getpcaps</command></term>
<listitem>
<para>Displays the capabilities on the queried process(es)</para>
<indexterm zone="ch-system-libcap2 getpcaps">
<primary sortas="b-getpcaps">getpcaps</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libcap2">
<term><filename class="libraryfile">libcap2.{so,a}</filename></term>
<listitem>
<para>Contains the libcap2 API functions</para>
<indexterm zone="ch-system-libcap2 libcap2">
<primary sortas="c-libcap2">libcap2</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>

View File

@ -5,28 +5,26 @@
%general-entities;
]>
<sect1 id="ch-system-udev" role="wrap">
<?dbhtml filename="udev.html"?>
<sect1 id="ch-system-systemd" role="wrap">
<?dbhtml filename="systemd.html"?>
<sect1info condition="script">
<productname>udev</productname>
<productname>systemd</productname>
<productnumber>&systemd-version;</productnumber>
<address>&systemd-url;</address>
</sect1info>
<title>Udev-&systemd-version; (Extracted from systemd-&systemd-version;)</title>
<title>Systemd-&systemd-version;</title>
<indexterm zone="ch-system-udev">
<primary sortas="a-Udev">Udev</primary>
<indexterm zone="ch-system-systemd">
<primary sortas="a-Systemd">Systemd</primary>
</indexterm>
<sect2 role="package">
<title/>
<para>The Udev package contains programs for dynamic creation of device
nodes. The development of udev has been merged with systemd, but
most of systemd is incompatible with LFS. Here we build and install just
the needed udev files.</para>
<para>The Systemd package contains programs for controlling the startup,
running, and shutdown of the system.</para>
<segmentedlist>
<segtitle>&buildtime;</segtitle>
@ -40,46 +38,35 @@
</sect2>
<sect2 role="installation">
<title>Installation of Udev</title>
<title>Installation of Systemd</title>
<note><para>This package is a little different from other packages. The
initial package that is extracted is
<filename>systemd-&systemd-version;.tar.xz</filename> even though the
application we are installing is udev. After changing to the
systemd directory, follow the instructions below.</para></note>
<para>Prepare Systemd for compilation:</para>
<para>The udev-lfs tarball contains LFS-specific files used to build
Udev. Unpack it into the systemd source directory:</para>
<screen><userinput remap="pre">tar -xvf ../&udev-lfs;.tar.bz2</userinput></screen>
<screen><userinput remap="configure">./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib \
--with-rootprefix= \
--with-rootlibdir=/lib \
--with-kbd-loadkeys=/bin/loadkeys \
--with-kbd-setfont=/bin/setfont \
--enable-split-usr \
--disable-static \
--disable-gudev \
--without-python</userinput></screen>
<para>Compile the package:</para>
<screen><userinput remap="make">make -f &udev-lfs;/Makefile.lfs</userinput></screen>
<screen><userinput remap="make">make</userinput></screen>
<para>To test the results, issue:</para>
<screen><userinput remap="test">make check</userinput></screen>
<para>Install the package:</para>
<screen><userinput remap="install">make -f &udev-lfs;/Makefile.lfs install</userinput></screen>
<screen><userinput remap="install">make install</userinput></screen>
<caution><para>There are several places within the
<application>systemd</application> source code that have explicit directory
paths embedded. For instance, the binary version of the hardware
database's path and file name used at run time,
<filename>/etc/udev/hwdb.bin</filename>, cannot be changed without explict
changes to the source code.</para></caution>
<para>Now initialize the hardware database:</para>
<screen><userinput remap="install">build/udevadm hwdb --update</userinput></screen>
<para>Finally set up the persistent network udev rules. This task will be
explained in detail in <xref linkend='stable-net-names'/>. Note that the
<filename class='directory'>/sys</filename> and <filename
class='directory'>/proc</filename> filesystems must be mounted in the
chroot environment as explained at the beginning of this chapter for the
following script to work.</para>
<screen><userinput remap="install">bash &udev-lfs;/init-net-rules.sh</userinput></screen>
</sect2>
<sect2 id="contents-udev" role="content">
@ -87,16 +74,16 @@
<segmentedlist>
<segtitle>Installed programs</segtitle>
<segtitle>Installed libraries</segtitle>
<segtitle>Installed directories</segtitle>
<seglistitem>
<seg>accelerometer, ata_id, cdrom_id, collect, mtd_probe,
scsi_id, v4l_id, udevadm, and udevd</seg>
<seg>hostnamectl, journalctl, localectl, loginctl, systemctl,
systemd-analyze, systemd-ask-password, systemd-cat,
systemd-cgls, systemd-cgtop, systemd-coredumpctl,
systemctl-delta, systemd-detect-virt, systemd-inhibit,
systemd-machine-id-setup, systemd-notify, systemd-nspawn,
systemd-stdio-bridge, systemd-tmpfiles,
systemd-tty-ask-password-agent, timedatectl, udevadm</seg>
<seg>libudev.so</seg>
<seg>/etc/udev, /lib/udev, /lib/firmware, /usr/share/doc/udev</seg>
</seglistitem>
</segmentedlist>
@ -105,48 +92,212 @@
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="ata_id">
<term><command>ata_id</command></term>
<varlistentry id="hostnamectl">
<term><command>hostnamectl</command></term>
<listitem>
<para>Provides Udev with a unique string and
additional information (uuid, label) for an ATA drive</para>
<indexterm zone="ch-system-udev ata_id">
<primary sortas="b-ata_id">ata_id</primary>
<para>To be completed</para>
<indexterm zone="ch-system-systemd hostnamectl">
<primary sortas="b-hostnamectl">hostnamectl</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="cdrom_id">
<term><command>cdrom_id</command></term>
<varlistentry id="journalctl">
<term><command>journalctl</command></term>
<listitem>
<para>Provides Udev with the capabilities of a
CD-ROM or DVD-ROM drive</para>
<indexterm zone="ch-system-udev cdrom_id">
<primary sortas="b-cdrom_id">cdrom_id</primary>
<para>To be completed</para>
<indexterm zone="ch-system-systemd journalctl">
<primary sortas="b-journalctl">journalctl</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="collect">
<term><command>collect</command></term>
<varlistentry id="localectl">
<term><command>localectl</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-udev collect">
<primary sortas="b-collect">collect</primary>
<para>To be completed</para>
<indexterm zone="ch-system-systemd localectl">
<primary sortas="b-localectl">localectl</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="scsi_id">
<term><command>scsi_id</command></term>
<varlistentry id="loginctl">
<term><command>loginctl</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-udev scsi_id">
<primary sortas="b-scsi_id">scsi_id</primary>
<para>To be completed</para>
<indexterm zone="ch-system-systemd loginctl">
<primary sortas="b-loginctl">loginctl</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="systemctl">
<term><command>systemctl</command></term>
<listitem>
<para>To be completed</para>
<indexterm zone="ch-system-systemd systemctl">
<primary sortas="b-systemctl">systemctl</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="systemd-analyze">
<term><command>systemd-analyze</command></term>
<listitem>
<para>To be completed</para>
<indexterm zone="ch-system-systemd systemd-analyze">
<primary sortas="b-systemd-analyze">systemd-analyze</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="systemd-ask-password">
<term><command>systemd-ask-password</command></term>
<listitem>
<para>To be completed</para>
<indexterm zone="ch-system-systemd systemd-ask-password">
<primary sortas="b-systemd-ask-password">systemd-ask-password</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="systemd-cat">
<term><command>systemd-cat</command></term>
<listitem>
<para>To be completed</para>
<indexterm zone="ch-system-systemd systemd-cat">
<primary sortas="b-systemd-cat">systemd-cat</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="systemd-cgls">
<term><command>systemd-cgls</command></term>
<listitem>
<para>To be completed</para>
<indexterm zone="ch-system-systemd systemd-cgls">
<primary sortas="b-systemd-cgls">systemd-cgls</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="systemd-cgtop">
<term><command>systemd-cgtop</command></term>
<listitem>
<para>To be completed</para>
<indexterm zone="ch-system-systemd systemd-cgtop">
<primary sortas="b-systemd-cgtop">systemd-cgtop</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="systemd-coredumpctl">
<term><command>systemd-coredumpctl</command></term>
<listitem>
<para>To be completed</para>
<indexterm zone="ch-system-systemd systemd-coredumpctl">
<primary sortas="b-systemd-coredumpctl">systemd-coredumpctl</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="systemd-delta">
<term><command>systemd-delta</command></term>
<listitem>
<para>To be completed</para>
<indexterm zone="ch-system-systemd systemd-delta">
<primary sortas="b-systemd-delta">systemd-delta</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="systemd-detect-virt">
<term><command>systemd-detect-virt</command></term>
<listitem>
<para>To be completed</para>
<indexterm zone="ch-system-systemd systemd-detect-virt">
<primary sortas="b-systemd-detect-virt">systemd-detect-virt</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="systemd-inhibit">
<term><command>systemd-inhibit</command></term>
<listitem>
<para>To be completed</para>
<indexterm zone="ch-system-systemd systemd-inhibit">
<primary sortas="b-systemd-inhibit">systemd-inhibit</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="systemd-machine-id-setup">
<term><command>systemd-machine-id-setup</command></term>
<listitem>
<para>To be completed</para>
<indexterm zone="ch-system-systemd systemd-machine-id-setup">
<primary sortas="b-systemd-machine-id-setup">systemd-machine-id-setup</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="systemd-notify">
<term><command>systemd-notify</command></term>
<listitem>
<para>To be completed</para>
<indexterm zone="ch-system-systemd systemd-notify">
<primary sortas="b-systemd-notify">systemd-notify</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="systemd-nspawn">
<term><command>systemd-nspawn</command></term>
<listitem>
<para>To be completed</para>
<indexterm zone="ch-system-systemd systemd-nspawn">
<primary sortas="b-systemd-nspawn">systemd-nspawn</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="systemd-stdio-bridge">
<term><command>systemd-stdio-bridge</command></term>
<listitem>
<para>To be completed</para>
<indexterm zone="ch-system-systemd systemd-stdio-bridge">
<primary sortas="b-systemd-stdio-bridge">systemd-stdio-bridge</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="systemd-tmpfiles">
<term><command>systemd-tmpfiles</command></term>
<listitem>
<para>To be completed</para>
<indexterm zone="ch-system-systemd systemd-tmpfiles">
<primary sortas="b-systemd-tmpfiles">systemd-tmpfiles</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="systemd-tty-ask-password-agent">
<term><command>systemd-tty-ask-password-agent</command></term>
<listitem>
<para>To be completed</para>
<indexterm zone="ch-system-systemd systemd-tty-ask-password-agent">
<primary sortas="b-systemd-tty-ask-password-agent">systemd-tty-ask-password-agent</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="timedatectl">
<term><command>timedatectl</command></term>
<listitem>
<para>To be completed</para>
<indexterm zone="ch-system-systemd timedatectl">
<primary sortas="b-timedatectl">timedatectl</primary>
</indexterm>
</listitem>
</varlistentry>
@ -154,49 +305,13 @@
<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-udev udevadm">
<para>To be completed</para>
<indexterm zone="ch-system-systemd 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-udev 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-udev 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-udev etc-udev">
<primary sortas="e-/etc/udev">/etc/udev</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>

92
chapter06/xml-parser.xml Normal file
View File

@ -0,0 +1,92 @@
<?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-xml-parser" role="wrap">
<?dbhtml filename="xml-parser.html"?>
<sect1info condition="script">
<productname>xml-parser</productname>
<productnumber>&xml-parser-version;</productnumber>
<address>&xml-parser-url;</address>
</sect1info>
<title>XML::Parser-&xml-parser-version;</title>
<indexterm zone="ch-system-xml-parser">
<primary sortas="a-Xml-Parser">XML::Parser</primary>
</indexterm>
<sect2 role="package">
<title/>
<para>The XML::Parser module is a Perl extension interface to James Clark's
XML parser, expat.</para>
<segmentedlist>
<segtitle>&buildtime;</segtitle>
<segtitle>&diskspace;</segtitle>
<seglistitem>
<seg>&xml-parser-ch6-sbu;</seg>
<seg>&xml-parser-ch6-du;</seg>
</seglistitem>
</segmentedlist>
</sect2>
<sect2 role="installation">
<title>Installation of XML::Parser</title>
<para>Prepare XML::Parser for compilation:</para>
<screen><userinput remap="configure">perl Makefile.PL</userinput></screen>
<para>Compile the package:</para>
<screen><userinput remap="make">make</userinput></screen>
<para>To test the results, issue:</para>
<screen><userinput remap="test">make test</userinput></screen>
<para>Install the package:</para>
<screen><userinput remap="install">make install</userinput></screen>
</sect2>
<sect2 id="contents-xml-parser" role="content">
<title>Contents of XML::Parser</title>
<segmentedlist>
<segtitle>Installed programs</segtitle>
<seglistitem>
<seg>placeholder</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="placeholder">
<term><command>placeholder</command></term>
<listitem>
<para>Unknown</para>
<indexterm zone="ch-system-xml-parser placeholder">
<primary sortas="b-placeholder">placeholder</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>

View File

@ -1,5 +1,5 @@
<!ENTITY version "SYSTEMD-20130211">
<!ENTITY releasedate "February 11, 2013">
<!ENTITY version "SYSTEMD-20130213">
<!ENTITY releasedate "February 13, 2013">
<!ENTITY copyrightdate "1999-2013"><!-- jhalfs needs a literal dash, not &ndash; -->
<!ENTITY milestone "7.3">
<!ENTITY generic-version "systemd"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->

View File

@ -7,6 +7,14 @@
Allowed deviation in disk usage : 2% -->
<!ENTITY attr-version "2.4.46">
<!ENTITY attr-size "330 KB">
<!ENTITY attr-url "http://download.savannah.gnu.org/releases/attr/attr-&attr-version;.src.tar.gz">
<!ENTITY attr-md5 "db557c17fdfa4f785333ecda08654010">
<!ENTITY attr-home " ">
<!ENTITY attr-ch6-du "3.5 MB">
<!ENTITY attr-ch6-sbu "0.1 SBU">
<!ENTITY autoconf-version "2.69">
<!ENTITY autoconf-size "1,186 KB">
<!ENTITY autoconf-url "&gnu;autoconf/autoconf-&autoconf-version;.tar.xz">
@ -226,6 +234,14 @@
<!ENTITY gmp-ch6-du "50 MB">
<!ENTITY gmp-ch6-sbu "1.2 SBU">
<!ENTITY gperf-version "3.0.4">
<!ENTITY gperf-size "960 KB">
<!ENTITY gperf-url "&gnu;gperf/gperf-&gperf-version;.tar.gz">
<!ENTITY gperf-md5 "c1f1db32fb6598d6a93e6e88796a8632">
<!ENTITY gperf-home "&gnu-software;gperf/">
<!ENTITY gperf-ch6-du "6.5 MB">
<!ENTITY gperf-ch6-sbu "0.1 SBU">
<!ENTITY grep-version "2.14">
<!ENTITY grep-size "1,172 KB">
<!ENTITY grep-url "&gnu;grep/grep-&grep-version;.tar.xz">
@ -278,6 +294,14 @@
<!ENTITY inetutils-ch6-du "27 MB">
<!ENTITY inetutils-ch6-sbu "0.4 SBU">
<!ENTITY intltool-version "0.50.2">
<!ENTITY intltool-size "185 KB">
<!ENTITY intltool-url "http://launchpad.net/intltool/trunk/&intltool-version;/+download/&intltool-version;.tar.gz">
<!ENTITY intltool-md5 "23fbd879118253cb99aeac067da5f591">
<!ENTITY intltool-home "http://freedesktop.org/wiki/Software/intltool">
<!ENTITY intltool-ch6-du "1.4 MB">
<!ENTITY intltool-ch6-sbu "0.1 SBU">
<!ENTITY iproute2-version "3.7.0">
<!ENTITY iproute2-size "391 KB">
<!ENTITY iproute2-url "&kernel;linux/utils/net/iproute2/iproute2-&iproute2-version;.tar.xz">
@ -318,6 +342,14 @@
<!ENTITY lfs-bootscripts-ch7-du "BOOTSCRIPTS-INSTALL-KB KB"> <!-- Updated in Makefile -->
<!ENTITY lfs-bootscripts-ch7-sbu "less than 0.1 SBU">
<!ENTITY libcap2-version "2.22">
<!ENTITY libcap2-size "66 KB">
<!ENTITY libcap2-url "http://ftp.de.debian.org/debian/pool/main/libc/libcap2/libcap2_&libcap2-version;.orig.tar.gz">
<!ENTITY libcap2-md5 "b4896816b626bea445f0b3849bdd4077">
<!ENTITY libcap2-home " ">
<!ENTITY libcap2-ch6-du "1.3 MB">
<!ENTITY libcap2-ch6-sbu "0.1 SBU">
<!ENTITY libpipeline-version "1.2.2">
<!ENTITY libpipeline-size "733 KB">
<!ENTITY libpipeline-url "http://download.savannah.gnu.org/releases/libpipeline/libpipeline-&libpipeline-version;.tar.gz">