Fix building systemd with GCC 10

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11843 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Pierre Labastie 2020-05-09 20:20:21 +00:00
parent 784b3bb9a3
commit f878debab0
3 changed files with 46 additions and 25 deletions

View File

@ -42,6 +42,16 @@
<listitem revision="sysv"> or <listitem revision="systemd"> as <listitem revision="sysv"> or <listitem revision="systemd"> as
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>2020-05-09</para>
<itemizedlist>
<listitem>
<para>[pierre] - Pass -Wno-format-overflow to systemd to
prevent an error with GCC 10.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem> <listitem>
<para>2020-05-08</para> <para>2020-05-08</para>
<itemizedlist> <itemizedlist>

View File

@ -69,34 +69,45 @@
<screen><userinput remap="configure">mkdir -p build <screen><userinput remap="configure">mkdir -p build
cd build cd build
LANG=en_US.UTF-8 \ LANG=en_US.UTF-8 \
meson --prefix=/usr \ meson --prefix=/usr \
--sysconfdir=/etc \ --sysconfdir=/etc \
--localstatedir=/var \ --localstatedir=/var \
-Dblkid=true \ -Dc_args=-Wno-format-overflow \
-Dbuildtype=release \ -Dblkid=true \
-Ddefault-dnssec=no \ -Dbuildtype=release \
-Dfirstboot=false \ -Ddefault-dnssec=no \
-Dinstall-tests=false \ -Dfirstboot=false \
-Dkmod-path=/bin/kmod \ -Dinstall-tests=false \
-Dldconfig=false \ -Dkmod-path=/bin/kmod \
-Dmount-path=/bin/mount \ -Dldconfig=false \
-Drootprefix= \ -Dmount-path=/bin/mount \
-Drootlibdir=/lib \ -Drootprefix= \
-Dsplit-usr=true \ -Drootlibdir=/lib \
-Dsulogin-path=/sbin/sulogin \ -Dsplit-usr=true \
-Dsysusers=false \ -Dsulogin-path=/sbin/sulogin \
-Dumount-path=/bin/umount \ -Dsysusers=false \
-Db_lto=false \ -Dumount-path=/bin/umount \
-Drpmmacrosdir=no \ -Db_lto=false \
-Dhomed=false \ -Drpmmacrosdir=no \
-Duserdb=false \ -Dhomed=false \
-Dman=true \ -Duserdb=false \
-Dman=true \
..</userinput></screen> ..</userinput></screen>
<variablelist> <variablelist>
<title>The meaning of the meson options:</title> <title>The meaning of the meson options:</title>
<varlistentry>
<term><parameter>-Dc_args=-Wno-format-overflow</parameter></term>
<listitem>
<para>The defaults flags passed to gcc contain
<parameter>-Werror=format-overflow</parameter>, which generates
an error with GCC 10. Passing this parameter prevents the error
from occuring.</para>
</listitem>
</varlistentry>
<varlistentry> <varlistentry>
<term><parameter>-D*-path=*</parameter></term> <term><parameter>-D*-path=*</parameter></term>
<listitem> <listitem>

View File

@ -3,11 +3,11 @@
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 "20200508-systemd"> <!ENTITY versiond "20200509-systemd">
<!ENTITY short-versiond "systemd"> <!ENTITY short-versiond "systemd">
<!ENTITY generic-versiond "systemd"> <!ENTITY generic-versiond "systemd">
<!ENTITY releasedate "May 8th, 2020"> <!ENTITY releasedate "May 9th, 2020">
<!ENTITY copyrightdate "1999-2020"><!-- jhalfs needs a literal dash, not &ndash; --> <!ENTITY copyrightdate "1999-2020"><!-- jhalfs needs a literal dash, not &ndash; -->