Changeset 8edca0a


Ignore:
Timestamp:
02/15/2013 07:26:30 PM (11 years ago)
Author:
Krejzi <krejzi@…>
Branches:
7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
Children:
e4d8c0cd
Parents:
9cefc3b
Message:

Rework D-Bus instructions, move user creation to createfiles.xml. Remove libdir switch from Xz and move libs manually as done in Zlib instructions. Modify Sysvinit instructions for few programs we need. Don't move find in findutils, it's not needed by Systemd.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10156 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Location:
chapter06
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • chapter06/createfiles.xml

    r9cefc3b r8edca0a  
    6464<literal>root:x:0:0:root:/root:/bin/bash
    6565bin:x:1:1:bin:/dev/null:/bin/false
     66messagebus:x:18:18:D-Bus Message Daemon User:/var/run/dbus:/bin/false
    6667nobody:x:99:99:Unprivileged User:/dev/null:/bin/false</literal>
    6768EOF</userinput></screen>
     
    9192cdrom:x:15:
    9293adm:x:16:
     94messagebus:x:18:
    9395mail:x:34:
    9496nogroup:x:99:</literal>
  • chapter06/dbus.xml

    r9cefc3b r8edca0a  
    2626    <para>D-Bus is a message bus system, a simple way for applications to talk
    2727    to one another. D-Bus supplies both a system daemon (for events such as
    28     “new hardware device added” or “printer queue changed”) and a
     28    "new hardware device added" or "printer queue changed") and a
    2929    per-user-login-session daemon (for general IPC needs among user
    3030    applications). Also, the message bus is built on top of a general one-to-one
     
    4747    <title>Installation of D-Bus</title>
    4848
    49     <para>The D-Bus system daemon (the message bus) needs to run as a non-priveleged user, so create a suitable group and user:</para>
    50 
    51 <screen><userinput remap="pre">groupadd -g 18 messagebus
    52 useradd -c "D-Bus Message Daemon User" -d /var/run/dbus \
    53         -u 18 -g messagebus -s /bin/false messagebus</userinput></screen>
    54 
    5549    <para>Prepare D-Bus for compilation:</para>
    5650
     
    5852            --sysconfdir=/etc \
    5953            --localstatedir=/var \
     54            --libexecdir=/usr/lib/dbus-1.0 \
    6055            --docdir=/usr/share/doc/dbus-&dbus-version; \
    61             --libexecdir=/usr/lib/dbus-1.0 \
    6256            --with-console-auth-dir=/run/console/ \
    63             --without-systemdsystemunitdir \
    64             --disable-systemd</userinput></screen>
     57            --with-systemdsystemunitdir=/lib/systemd/system</userinput></screen>
    6558
    6659    <variablelist>
     
    7265          <para>This specifies the location of the ConsoleKit auth
    7366          directory.</para>
    74         </listitem>
    75       </varlistentry>
    76 
    77       <varlistentry>
    78         <term><parameter>--without-systemdsystemunitdir</parameter></term>
    79         <listitem>
    80           <para>This prevents installation of Systemd unit files as Systemd
    81           has not been installed yet (due to a circular dependency; Systemd
    82           requires D-Bus, but D-Bus can also use Systemd functionality).</para>
    83         </listitem>
    84       </varlistentry>
    85 
    86       <varlistentry>
    87         <term><parameter>--disable-systemd</parameter></term>
    88         <listitem>
    89           <para>This disables Systemd support in D-Bus, again due to the
    90           circular dependency between D-Bus and Systemd.</para>
    9167        </listitem>
    9268      </varlistentry>
     
    10379    <para>Install the package:</para>
    10480
    105 <screen><userinput remap="install">make install</userinput></screen>
     81<screen><userinput remap="install">make install
     82dbus-uuidgen --ensure</userinput></screen>
    10683
    10784  </sect2>
     
    11390      <segtitle>Installed programs</segtitle>
    11491      <segtitle>Installed libraries</segtitle>
     92      <segtitle>Installed directories</segtitle>
    11593
    11694      <seglistitem>
    117         <seg>dbus-cleanup-sockets, dbus-daemon, dbus-monitor, dbus-send,
    118         dbus-uuidgen</seg>
     95        <seg>dbus-cleanup-sockets, dbus-daemon, dbus-launch, dbus-monitor,
     96        dbus-send and dbus-uuidgen</seg>
    11997        <seg>libdbus-1.{so,a}</seg>
     98        <seg>/etc/dbus-1, /usr/include/dbus-1.0, /usr/lib/dbus-1.0,
     99        /usr/share/dbus-1, /usr/share/doc/dbus-&dbus-version; and
     100        /var/lib/dbus</seg>
    120101      </seglistitem>
    121102    </segmentedlist>
     
    142123          <indexterm zone="ch-system-dbus dbus-daemon">
    143124            <primary sortas="b-dbus-daemon">dbus-daemon</primary>
     125          </indexterm>
     126        </listitem>
     127      </varlistentry>
     128
     129      <varlistentry id="dbus-launch">
     130        <term><command>dbus-launch</command></term>
     131        <listitem>
     132          <para>Starts <command>dbus-daemon</command> from a shell
     133          script.</para>
     134          <indexterm zone="ch-system-dbus dbus-launch">
     135            <primary sortas="b-dbus-launch">dbus-launch</primary>
    144136          </indexterm>
    145137        </listitem>
  • chapter06/findutils.xml

    r9cefc3b r8edca0a  
    7575
    7676<screen><userinput remap="install">make install</userinput></screen>
    77 
    78     <para>Some of the scripts in the LFS-Bootscripts package depend on
    79     <command>find</command>.  As <filename class="directory">/usr</filename>
    80     may not be available during the early stages of booting, this program
    81     needs to be on the root partition.  The <command>updatedb</command>
    82     script also needs to be modified to correct an explicit path:</para>
    83 
    84 <screen><userinput remap="install">mv -v /usr/bin/find /bin
    85 sed -i 's/find:=${BINDIR}/find:=\/bin/' /usr/bin/updatedb</userinput></screen>
    8677
    8778  </sect2>
  • chapter06/intltool.xml

    r9cefc3b r8edca0a  
    5757
    5858<screen><userinput remap="install">make install
    59 install -v -m644 -D doc/I18N-HOWTO \
    60   /usr/share/doc/intltool-&intltool-version;/I18N-HOWTO</userinput></screen>
     59install -v -Dm644 doc/I18N-HOWTO \
     60        /usr/share/doc/intltool-&intltool-version;/I18N-HOWTO</userinput></screen>
    6161
    6262  </sect2>
     
    6767    <segmentedlist>
    6868      <segtitle>Installed program</segtitle>
    69       <segtitle>Installed library</segtitle>
    7069      <segtitle>Installed directories</segtitle>
    7170
     
    7372        <seg>intltool-extract, intltool-merge, intltool-prepare,
    7473        intltool-update, and intltoolize</seg>
    75         <seg>None</seg>
    7674        <seg>/usr/share/doc/intltool-&intltool-version; and
    7775        /usr/share/intltool</seg>
  • chapter06/kbd.xml

    r9cefc3b r8edca0a  
    5757    <para>Prepare Kbd for compilation:</para>
    5858
    59 <screen><userinput remap="configure">./configure --prefix=/usr --datadir=/lib/kbd \
    60   --disable-vlock</userinput></screen>
     59<screen><userinput remap="configure">./configure --prefix=/usr --datadir=/lib/kbd --disable-vlock</userinput></screen>
    6160
    6261    <variablelist>
     
    128127        kbd_mode, kbdrate, loadkeys, loadunimap,
    129128        mapscrn, openvt, psfaddtable (link to psfxtable), psfgettable (link to
    130         psfxtable), psfstriptable (link to psfxtable), psfxtable, <!--resizecons,-->
     129        psfxtable), psfstriptable (link to psfxtable), psfxtable, resizecons,
    131130        setfont, setkeycodes, setleds, setmetamode,
    132131        showconsolefont, showkey, unicode_start, and unicode_stop</seg>
     
    302301      </varlistentry>
    303302
    304   <!--<varlistentry id="resizecons">
     303  <varlistentry id="resizecons">
    305304        <term><command>resizecons</command></term>
    306305        <listitem>
     
    310309          </indexterm>
    311310        </listitem>
    312       </varlistentry>-->
     311      </varlistentry>
    313312
    314313      <varlistentry id="setfont">
  • chapter06/kmod.xml

    r9cefc3b r8edca0a  
    158158      </varlistentry>
    159159
     160      <varlistentry id="lsmod">
     161        <term><command>lsmod</command></term>
     162        <listitem>
     163          <para>Lists currently loaded modules</para>
     164          <indexterm zone="ch-system-kmod lsmod">
     165            <primary sortas="b-lsmod">lsmod</primary>
     166          </indexterm>
     167        </listitem>
     168      </varlistentry>
     169
     170      <varlistentry id="modinfo">
     171        <term><command>modinfo</command></term>
     172        <listitem>
     173          <para>Examines an object file associated with a kernel module and
     174          displays any information that it can glean</para>
     175          <indexterm zone="ch-system-kmod modinfo">
     176            <primary sortas="b-modinfo">modinfo</primary>
     177          </indexterm>
     178        </listitem>
     179      </varlistentry>
     180
     181      <varlistentry id="modprobe">
     182        <term><command>modprobe</command></term>
     183        <listitem>
     184          <para>Uses a dependency file, created by
     185          <command>depmod</command>, to automatically load relevant modules</para>
     186          <indexterm zone="ch-system-kmod modprobe">
     187            <primary sortas="b-modprobe">modprobe</primary>
     188          </indexterm>
     189        </listitem>
     190      </varlistentry>
     191
     192      <varlistentry id="rmmod">
     193        <term><command>rmmod</command></term>
     194        <listitem>
     195          <para>Unloads modules from the running kernel</para>
     196          <indexterm zone="ch-system-kmod rmmod">
     197            <primary sortas="b-rmmod">rmmod</primary>
     198          </indexterm>
     199        </listitem>
     200      </varlistentry>
     201
    160202      <varlistentry id="libkmod">
    161203        <term><filename class="libraryfile">libkmod</filename></term>
     
    169211      </varlistentry>
    170212
    171       <varlistentry id="lsmod">
    172         <term><command>lsmod</command></term>
    173         <listitem>
    174           <para>Lists currently loaded modules</para>
    175           <indexterm zone="ch-system-kmod lsmod">
    176             <primary sortas="b-lsmod">lsmod</primary>
    177           </indexterm>
    178         </listitem>
    179       </varlistentry>
    180 
    181       <varlistentry id="modinfo">
    182         <term><command>modinfo</command></term>
    183         <listitem>
    184           <para>Examines an object file associated with a kernel module and
    185           displays any information that it can glean</para>
    186           <indexterm zone="ch-system-kmod modinfo">
    187             <primary sortas="b-modinfo">modinfo</primary>
    188           </indexterm>
    189         </listitem>
    190       </varlistentry>
    191 
    192       <varlistentry id="modprobe">
    193         <term><command>modprobe</command></term>
    194         <listitem>
    195           <para>Uses a dependency file, created by
    196           <command>depmod</command>, to automatically load relevant modules</para>
    197           <indexterm zone="ch-system-kmod modprobe">
    198             <primary sortas="b-modprobe">modprobe</primary>
    199           </indexterm>
    200         </listitem>
    201       </varlistentry>
    202 
    203       <varlistentry id="rmmod">
    204         <term><command>rmmod</command></term>
    205         <listitem>
    206           <para>Unloads modules from the running kernel</para>
    207           <indexterm zone="ch-system-kmod rmmod">
    208             <primary sortas="b-rmmod">rmmod</primary>
    209           </indexterm>
    210         </listitem>
    211       </varlistentry>
    212 
    213213    </variablelist>
    214214
  • chapter06/sysvinit.xml

    r9cefc3b r8edca0a  
    4242    <title>Installation of Sysvinit</title>
    4343
    44     <para>Compile the package:</para>
     44    <para>Since LFS uses Systemd as init system, this package
     45    is needed for few utils that are not present in other
     46    packages. Compile the package:</para>
    4547
    46 <screen><userinput remap="make">make -C src</userinput></screen>
     48<screen><userinput remap="make">make -C src fstab-decode
     49make -C src killall5
     50make -C src last</userinput></screen>
    4751
    4852    <para>This package does not come with a test suite.</para>
     
    5054    <para>Install the package:</para>
    5155
    52 <screen><userinput remap="install">make -C src install</userinput></screen>
     56<screen><userinput remap="install">cp -v src/{fstab-decode,killall5} /sbin
     57ln -sv ../sbin/killall5 /bin/pidof
     58cp -v src/last /usr/bin
     59ln -sv last /usr/bin/lastb</userinput></screen>
     60
     61    <para>Install manual pages for the installed programs:</para>
     62
     63<screen><userinput remap="install">cp -v man/{last,lastb}.1 /usr/share/man/man1
     64cp -v man/{fstab-decode,killall5,pidof}.8 /usr/share/man/man8</userinput></screen>
    5365
    5466  </sect2>
  • chapter06/xz.xml

    r9cefc3b r8edca0a  
    4747    <para>Prepare Xz for compilation with:</para>
    4848
    49 <screen><userinput remap="configure">./configure --prefix=/usr --libdir=/lib --docdir=/usr/share/doc/xz-&xz-version;</userinput></screen>
     49<screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/xz-&xz-version;</userinput></screen>
    5050
    5151    <para>Compile the package:</para>
     
    5959  <para>Install the package:</para>
    6060
    61 <screen><userinput remap="install">make pkgconfigdir=/usr/lib/pkgconfig install</userinput></screen>
     61<screen><userinput remap="install">make install</userinput></screen>
     62
     63    <para>The shared library needs to be moved to
     64    <filename class="directory">/lib</filename>, and as a result the
     65    <filename class="extension">.so</filename> file in
     66    <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
     67
     68<screen><userinput remap="install">mv -v /usr/lib/liblzma.so.* /lib
     69ln -sfv ../../lib/liblzma.so.5.0.4 /usr/lib/liblzma.so</userinput></screen>
    6270
    6371  </sect2>
Note: See TracChangeset for help on using the changeset viewer.