Changeset 35e0479 for chapter08


Ignore:
Timestamp:
03/05/2021 07:43:12 PM (3 years ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
14bfa91
Parents:
06addba
Message:

systemd: simplify systemd man page installation

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/systemd.xml

    r06addba r35e0479  
    5252
    5353<screen><userinput remap="pre">patch -Np1 -i ../systemd-&systemd-version;-upstream_fixes-2.patch</userinput></screen>
    54 
    55     <para>Create a symlink to work around the xsltproc command not being installed:</para>
    56 
    57 <screen><userinput remap="pre">ln -sf /bin/true /usr/bin/xsltproc</userinput></screen>
    58 
    59     <para>Set up the man pages:</para>
    60 
    61 <screen><userinput remap="pre">tar -xf ../systemd-man-pages-&systemd-version;.tar.xz</userinput></screen>
    6254
    6355    <para>Remove tests that cannot be built in chroot:</para>
     
    9890      -Dhomed=false                 \
    9991      -Duserdb=false                \
    100       -Dman=true                    \
     92      -Dman=false                   \
    10193      -Dmode=release                \
    10294      -Ddocdir=/usr/share/doc/systemd-&systemd-version; \
     
    194186
    195187      <varlistentry>
     188        <term><parameter>-Dman=false</parameter></term>
     189        <listitem>
     190          <para>Prevent the generation of man pages to avoid extra
     191          dependencies.  We will install pre-generated man pages for systemd
     192          from a tarball later.</para>
     193        </listitem>
     194      </varlistentry>
     195
     196      <varlistentry>
    196197        <term><parameter>-Dmode=release</parameter></term>
    197198        <listitem>
     
    211212<screen><userinput remap="install">LANG=en_US.UTF-8 ninja install</userinput></screen>
    212213
    213     <para>Remove an unnecessary symbolic link:</para>
    214 
    215 <screen><userinput remap="install">rm -f /usr/bin/xsltproc</userinput></screen>
     214    <para>Install the man pages:</para>
     215
     216<screen><userinput remap="install">tar -xf ../../systemd-man-pages-&systemd-man-version;.tar.xz --strip-components=1 -C /usr/share/man</userinput></screen>
    216217
    217218    <para>Remove a useless directory:</para>
Note: See TracChangeset for help on using the changeset viewer.