systemd: Fix a FTBFS related to GCC-9 by adding CFLAGS+=-Wno-format-overflow

Remove the obsolete meson option -Dkill-path
Add -Drpmmacrosdir=no to the meson command and remove the command+text as a result of that
Remove symlinks to Util-Linux libraries created earler in the installation process to prevent /tools contamination
Minor instruction/code cleanup

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11635 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Douglas R. Reno 2019-07-12 20:38:13 +00:00
parent d124b261f3
commit c556e59449
3 changed files with 32 additions and 13 deletions

View File

@ -43,6 +43,17 @@
appropriate for the entry or if needed the entire day's listitem. appropriate for the entry or if needed the entire day's listitem.
--> -->
<listitem revision="systemd">
<para>2019-07-12</para>
<itemizedlist>
<listitem>
<para>[renodr] - Fix an FTBFS for systemd and do minor text
and instructions improvements. Also, fix symlinks that were not
removed.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem> <listitem>
<para>2019-06-29</para> <para>2019-06-29</para>
<itemizedlist> <itemizedlist>

View File

@ -39,11 +39,6 @@
<sect2 role="installation"> <sect2 role="installation">
<title>Installation of systemd</title> <title>Installation of systemd</title>
<!--
<para>Apply a patch to fix two critical security vulnerabilities:</para>
<screen><userinput remap="pre">patch -Np1 -i ../systemd-240-security_fixes-2.patch</userinput></screen>
-->
<para>Create a symlink to work around missing xsltproc:</para> <para>Create a symlink to work around missing xsltproc:</para>
@ -70,6 +65,8 @@ done</userinput></screen>
<screen><userinput remap="pre">sed -i 's/GROUP="render", //' rules/50-udev-default.rules.in</userinput></screen> <screen><userinput remap="pre">sed -i 's/GROUP="render", //' rules/50-udev-default.rules.in</userinput></screen>
<!-- EDITORS NOTE: At the next systemd release, see if the CFLAGS can be removed. -->
<para>Prepare systemd for compilation:</para> <para>Prepare systemd for compilation:</para>
<screen><userinput remap="configure">mkdir -p build <screen><userinput remap="configure">mkdir -p build
@ -77,6 +74,7 @@ cd build
PKG_CONFIG_PATH="/usr/lib/pkgconfig:/tools/lib/pkgconfig" \ PKG_CONFIG_PATH="/usr/lib/pkgconfig:/tools/lib/pkgconfig" \
LANG=en_US.UTF-8 \ LANG=en_US.UTF-8 \
CFLAGS+="-Wno-format-overflow" \
meson --prefix=/usr \ meson --prefix=/usr \
--sysconfdir=/etc \ --sysconfdir=/etc \
--localstatedir=/var \ --localstatedir=/var \
@ -85,7 +83,6 @@ meson --prefix=/usr \
-Ddefault-dnssec=no \ -Ddefault-dnssec=no \
-Dfirstboot=false \ -Dfirstboot=false \
-Dinstall-tests=false \ -Dinstall-tests=false \
-Dkill-path=/bin/kill \
-Dkmod-path=/bin/kmod \ -Dkmod-path=/bin/kmod \
-Dldconfig=false \ -Dldconfig=false \
-Dmount-path=/bin/mount \ -Dmount-path=/bin/mount \
@ -96,6 +93,7 @@ meson --prefix=/usr \
-Dsysusers=false \ -Dsysusers=false \
-Dumount-path=/bin/umount \ -Dumount-path=/bin/umount \
-Db_lto=false \ -Db_lto=false \
-Drpmmacrosdir=no \
..</userinput></screen> ..</userinput></screen>
<variablelist> <variablelist>
@ -174,6 +172,13 @@ meson --prefix=/usr \
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry>
<term><parameter>-Drpmmacrosdir=no</parameter></term>
<listitem>
<para>This switch disables installation of RPM Macros
for use with systemd because LFS does not support RPM.</para>
</listitem>
</varlistentry>
</variablelist> </variablelist>
<para>Compile the package:</para> <para>Compile the package:</para>
@ -188,10 +193,13 @@ meson --prefix=/usr \
<screen><userinput remap="install">LANG=en_US.UTF-8 ninja install</userinput></screen> <screen><userinput remap="install">LANG=en_US.UTF-8 ninja install</userinput></screen>
<para>Remove an unnecessary directory and file:</para> <para>Remove an unnecessary symbolic link:</para>
<screen><userinput remap="install">rm -rfv /usr/lib/rpm <screen><userinput remap="install">rm -f /usr/bin/xsltproc</userinput></screen>
rm -f /usr/bin/xsltproc</userinput></screen>
<para>Remove symbolic links to Util-Linux libraries:</para>
<screen><userinput remap="install">rm -fv /usr/lib/lib{blkid,uuid,mount}.so*</userinput></screen>
<para>Create the <filename>/etc/machine-id</filename> file needed by <para>Create the <filename>/etc/machine-id</filename> file needed by
<command>systemd-journald</command>:</para> <command>systemd-journald</command>:</para>

View File

@ -1,13 +1,13 @@
<!ENTITY version "SVN-20190629"> <!ENTITY version "SVN-20190712">
<!ENTITY short-version "svn"> <!-- Used below in &blfs-book; <!ENTITY short-version "svn"> <!-- Used below in &blfs-book;
Change to x.y for release but not -rc releases --> Change to x.y for release but not -rc releases -->
<!ENTITY generic-version "development"> <!-- Use "development" or "x.y[-pre{x}]" --> <!ENTITY generic-version "development"> <!-- Use "development" or "x.y[-pre{x}]" -->
<!ENTITY versiond "20190629-systemd"> <!ENTITY versiond "20190712-systemd">
<!ENTITY short-versiond "systemd"> <!ENTITY short-versiond "systemd">
<!ENTITY generic-versiond "systemd"> <!ENTITY generic-versiond "systemd">
<!ENTITY releasedate "June 29, 2019"> <!ENTITY releasedate "July 12th, 2019">
<!ENTITY copyrightdate "1999-2019"><!-- jhalfs needs a literal dash, not &ndash; --> <!ENTITY copyrightdate "1999-2019"><!-- jhalfs needs a literal dash, not &ndash; -->
<!ENTITY milestone "8.5"> <!ENTITY milestone "8.5">