Author: xry111 Date: Fri Mar 5 11:43:12 2021 New Revision: 12155 Log: systemd: simplify systemd man page installation
Modified: trunk/BOOK/chapter01/changelog.xml trunk/BOOK/chapter08/systemd.xml trunk/BOOK/packages.ent Modified: trunk/BOOK/chapter01/changelog.xml ============================================================================== --- trunk/BOOK/chapter01/changelog.xml Thu Mar 4 17:10:02 2021 (r12154) +++ trunk/BOOK/chapter01/changelog.xml Fri Mar 5 11:43:12 2021 (r12155) @@ -43,6 +43,16 @@ appropriate for the entry or if needed the entire day's listitem. --> <listitem revision="systemd"> + <para>2021-03-05</para> + <itemizedlist> + <listitem> + <para>[xry111] - Simplify the installation of systemd man pages. + </para> + </listitem> + </itemizedlist> + </listitem> + + <listitem revision="systemd"> <para>2021-03-04</para> <itemizedlist> <listitem> Modified: trunk/BOOK/chapter08/systemd.xml ============================================================================== --- trunk/BOOK/chapter08/systemd.xml Thu Mar 4 17:10:02 2021 (r12154) +++ trunk/BOOK/chapter08/systemd.xml Fri Mar 5 11:43:12 2021 (r12155) @@ -52,14 +52,6 @@ <screen><userinput remap="pre">patch -Np1 -i ../systemd-&systemd-version;-upstream_fixes-2.patch</userinput></screen> - <para>Create a symlink to work around the xsltproc command not being installed:</para> - -<screen><userinput remap="pre">ln -sf /bin/true /usr/bin/xsltproc</userinput></screen> - - <para>Set up the man pages:</para> - -<screen><userinput remap="pre">tar -xf ../systemd-man-pages-&systemd-version;.tar.xz</userinput></screen> - <para>Remove tests that cannot be built in chroot:</para> <screen><userinput remap="pre">sed '181,$ d' -i src/resolve/meson.build</userinput></screen> @@ -97,7 +89,7 @@ -Drpmmacrosdir=no \ -Dhomed=false \ -Duserdb=false \ - -Dman=true \ + -Dman=false \ -Dmode=release \ -Ddocdir=/usr/share/doc/systemd-&systemd-version; \ ..</userinput></screen> @@ -193,6 +185,15 @@ </varlistentry> <varlistentry> + <term><parameter>-Dman=false</parameter></term> + <listitem> + <para>Prevent the generation of man pages to avoid extra + dependencies. We will install pre-generated man pages for systemd + from a tarball later.</para> + </listitem> + </varlistentry> + + <varlistentry> <term><parameter>-Dmode=release</parameter></term> <listitem> <para>Disable some features considered experimental by upstream. @@ -210,9 +211,9 @@ <screen><userinput remap="install">LANG=en_US.UTF-8 ninja install</userinput></screen> - <para>Remove an unnecessary symbolic link:</para> + <para>Install the man pages:</para> -<screen><userinput remap="install">rm -f /usr/bin/xsltproc</userinput></screen> +<screen><userinput remap="install">tar -xf ../../systemd-man-pages-&systemd-man-version;.tar.xz --strip-components=1 -C /usr/share/man</userinput></screen> <para>Remove a useless directory:</para> Modified: trunk/BOOK/packages.ent ============================================================================== --- trunk/BOOK/packages.ent Thu Mar 4 17:10:02 2021 (r12154) +++ trunk/BOOK/packages.ent Fri Mar 5 11:43:12 2021 (r12155) @@ -630,10 +630,11 @@ <!--<!ENTITY systemd-url "&anduin-sources;/systemd-&systemd-version;-&systemd-stable;.tar.xz">--> <!ENTITY systemd-md5 "b0d6e603b814908acc69db29bbfb023c"> <!ENTITY systemd-home "https://www.freedesktop.org/wiki/Software/systemd/"> +<!ENTITY systemd-man-version "247-2"> <!ENTITY systemd-man-size "612 KB"> <!--<!ENTITY systemd-man-url "&anduin-sources;/systemd-man-pages-&systemd-version;-&systemd-stable;.tar.xz">--> -<!ENTITY systemd-man-url "&anduin-sources;/systemd-man-pages-&systemd-version;.tar.xz"> -<!ENTITY systemd-man-md5 "438c98be200e1c3b308e58a3399d4465"> +<!ENTITY systemd-man-url "&anduin-sources;/systemd-man-pages-&systemd-man-version;.tar.xz"> +<!ENTITY systemd-man-md5 "7d8a53105b7a205f2863e360d9a23f95"> <!ENTITY systemd-fin-du "264 MB"> <!ENTITY systemd-fin-sbu "1.8 SBU"> -- http://lists.linuxfromscratch.org/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page