- Timestamp:
- 03/14/2014 11:38:42 PM (11 years ago)
- Branches:
- 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
- Children:
- 6f34f43
- Parents:
- f6125f3
- Location:
- chapter06
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/chapter06.xml
rf6125f3 r5bbc896 74 74 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="make.xml"/> 75 75 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="patch.xml"/> 76 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libdbus.xml"/>77 76 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="systemd.xml"/> 78 77 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dbus.xml"/> -
chapter06/systemd.xml
rf6125f3 r5bbc896 54 54 Chapter 5:</para> 55 55 56 <screen><userinput remap="pre">sed -i "s:blkid/::" src/udev/udev-builtin-blkid.c</userinput></screen> 56 <screen><userinput remap="pre">sed -i "s:blkid/::" $(grep -rl "blkid/blkid.h")</userinput></screen> 57 58 <para>Apply a patch so that compat <command>pkg-config</command> files get 59 installed without installing compat libs which are useless on LFS:</para> 60 61 <screen><userinput remap="pre">patch -Np1 -i ../&systemd-compat-patch;</userinput></screen> 57 62 58 63 <para>Prepare Systemd for compilation:</para> 59 64 60 <screen><userinput remap="configure">./configure --prefix=/usr \ 61 --sysconfdir=/etc \ 62 --localstatedir=/var \ 63 --docdir=/usr/share/doc/systemd-&systemd-version; \ 64 --config-cache \ 65 --with-rootprefix= \ 66 --with-rootlibdir=/lib \ 67 --enable-split-usr \ 68 --disable-gudev \ 69 --without-python</userinput></screen> 65 <screen><userinput remap="configure">./configure --prefix=/usr \ 66 --sysconfdir=/etc \ 67 --localstatedir=/var \ 68 --config-cache \ 69 --with-rootprefix= \ 70 --with-rootlibdir=/lib \ 71 --enable-split-usr \ 72 --disable-gudev \ 73 --without-python \ 74 --docdir=/usr/share/doc/systemd-&systemd-version; \ 75 --with-dbuspolicydir=/etc/dbus-1/system.d \ 76 --with-dbusinterfacedir=/usr/share/dbus-1/interfaces \ 77 --with-dbussessionservicedir=/usr/share/dbus-1/services \ 78 --with-dbussystemservicedir=/usr/share/dbus-1/system-services</userinput></screen> 70 79 71 80 <variablelist> … … 107 116 </varlistentry> 108 117 118 <varlistentry> 119 <term><parameter>--with-dbus*</parameter></term> 120 <listitem> 121 <para>These switches ensure that D-Bus configuratil files 122 get installed in the correct locations.</para> 123 </listitem> 124 </varlistentry> 125 109 126 </variablelist> 110 127 … … 113 130 <screen><userinput remap="make">make LIBRARY_PATH=/tools/lib</userinput></screen> 114 131 115 <para> The package comes with a testsuite, but it doesn't work in116 chroot. It needs to be run from a system booted using Systemd.</para> 117 118 <para>First prevent a broken test case from running:</para>119 120 <screen><userinput remap="test">sed -i s:test/udev-test.pl::gMakefile</userinput></screen>132 <para>First prevent few broken test cases from running:</para> 133 134 <screen><userinput remap="test">sed -e "s:test/udev-test.pl::g" \ 135 -e "s:test-bus-cleanup\$(EXEEXT) ::g" \ 136 -e "s:test-bus-gvariant\$(EXEEXT) ::g" \ 137 -i Makefile</userinput></screen> 121 138 122 139 <para>To test the results, issue:</para> 123 140 124 <screen><userinput remap="test">make check</userinput></screen> 141 <screen><userinput remap="test">make -k check</userinput></screen> 142 143 <para>Note that some tests might fail because the test are being run in a 144 chroot environment. For full test coverage, the test suite should be ran 145 from a system booted using Systemd.</para> 125 146 126 147 <para>Install the package:</para> 127 148 128 149 <screen><userinput remap="install">make LD_LIBRARY_PATH=/tools/lib install</userinput></screen> 129 130 <para>Install manual pages which are shipped in the tarball, but were131 not installed by install process:</para>132 133 <screen><userinput remap="install">for cat in 1 3 5 7 8134 do135 install -v -m644 man/*.${cat} /usr/share/man/man${cat}136 done</userinput></screen>137 150 138 151 <para>Move NSS myhostname library to <filename … … 155 168 <para>Remove a reference to a non-existent group:</para> 156 169 157 <screen><userinput remap="install">sed -i "s @0775 root lock@0755 root root@g" /usr/lib/tmpfiles.d/legacy.conf</userinput></screen>170 <screen><userinput remap="install">sed -i "s:0775 root lock:0755 root root:g" /usr/lib/tmpfiles.d/legacy.conf</userinput></screen> 158 171 159 172 <para>Create the <filename>/etc/machine-id</filename> file needed by … … 173 186 174 187 <seglistitem> 175 <seg>bootctl, halt, hostnamectl, init, journalctl, kernel-install, localectl,176 lo ginctl, machinectl, poweroff, reboot, runlevel, shutdown, systemctl,177 system d-analyze, systemd-ask-password, systemd-cat, systemd-cgls, systemd-cgtop,178 systemd-c oredumpctl, systemd-delta, systemd-detect-virt, systemd-inhibit,179 systemd- machine-id-setup, systemd-notify, systemd-nspawn, systemd-run,180 systemd- stdio-bridge, systemd-tmpfiles, systemd-tty-ask-password-agent, telinit,181 t imedatectl, and udevadm</seg>182 <seg>libnss_myhostname.so.2, libsystemd-daemon.so, libsystemd-id128.so, 183 libsystemd-journal.so, libsystemd-login.so, libudev.so</seg>188 <seg>bootctl, busctl, halt, hostnamectl, init, journalctl, kernel-install, 189 localectl, loginctl, machinectl, poweroff, reboot, runlevel, shutdown, 190 systemctl, systemd-analyze, systemd-ask-password, systemd-cat, systemd-cgls, 191 systemd-cgtop, systemd-coredumpctl, systemd-delta, systemd-detect-virt, 192 systemd-inhibit, systemd-machine-id-setup, systemd-notify, systemd-nspawn, 193 systemd-run, systemd-stdio-bridge, systemd-tmpfiles, systemd-tty-ask-password-agent, 194 telinit, timedatectl, and udevadm</seg> 195 196 <seg>libnss_myhostname.so.2, libsystemd.so, libudev.so</seg> 184 197 <seg>/etc/binfmt.d, /etc/init.d, /etc/kernel, /etc/modules-load.d, 185 198 /etc/sysctl.d, /etc/systemd, /etc/tmpfiles.d, /etc/udev, … … 197 210 <?dbhtml list-presentation="table"?> 198 211 199 <!--<varlistentry id="bootctl">212 <varlistentry id="bootctl"> 200 213 <term><command>bootctl</command></term> 201 214 <listitem> 202 <para> </para>215 <para>used to query the firmware and boot manager settings.</para> 203 216 <indexterm zone="ch-system-systemd bootctl"> 204 217 <primary sortas="b-bootctl">bootctl</primary> 205 218 </indexterm> 206 219 </listitem> 207 </varlistentry> --> 220 </varlistentry> 221 222 <varlistentry id="busctl"> 223 <term><command>busctl</command></term> 224 <listitem> 225 <para>used to introspect and monitor the D-Bus bus.</para> 226 <indexterm zone="ch-system-systemd busctl"> 227 <primary sortas="b-busctl">busctl</primary> 228 </indexterm> 229 </listitem> 230 </varlistentry> 208 231 209 232 <varlistentry id="halt"> … … 561 584 </varlistentry> 562 585 563 <varlistentry id="libsystemd-daemon"> 564 <term><filename class="libraryfile">libsystemd-daemon</filename></term> 565 <listitem> 566 <para>Systemd Daemon utility library.</para> 567 <indexterm zone="ch-system-systemd libsystemd-daemon"> 568 <primary sortas="c-libsystemd-daemon">libsystemd-daemon</primary> 569 </indexterm> 570 </listitem> 571 </varlistentry> 572 573 <varlistentry id="libsystemd-id128"> 574 <term><filename class="libraryfile">libsystemd-id128</filename></term> 575 <listitem> 576 <para>Systemd 128 Bit ID utility library.</para> 577 <indexterm zone="ch-system-systemd libsystemd-id128"> 578 <primary sortas="c-libsystemd-id128">libsystemd-id128</primary> 579 </indexterm> 580 </listitem> 581 </varlistentry> 582 583 <varlistentry id="libsystemd-journal"> 584 <term><filename class="libraryfile">libsystemd-journal</filename></term> 585 <listitem> 586 <para>Systemd Journal utility library.</para> 587 <indexterm zone="ch-system-systemd libsystemd-journal"> 588 <primary sortas="c-libsystemd-journal">libsystemd-journal</primary> 589 </indexterm> 590 </listitem> 591 </varlistentry> 592 593 <varlistentry id="libsystemd-login"> 594 <term><filename class="libraryfile">libsystemd-login</filename></term> 595 <listitem> 596 <para>Systemd Login utility library.</para> 597 <indexterm zone="ch-system-systemd libsystemd-login"> 598 <primary sortas="c-libsystemd-login">libsystemd-login</primary> 586 <varlistentry id="libsystemd"> 587 <term><filename class="libraryfile">libsystemd</filename></term> 588 <listitem> 589 <para>Systemd utility library.</para> 590 <indexterm zone="ch-system-systemd libsystemd"> 591 <primary sortas="c-libsystemd">libsystemd</primary> 599 592 </indexterm> 600 593 </listitem>
Note:
See TracChangeset
for help on using the changeset viewer.