diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 7cb1f46bc..b6dd76745 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -42,6 +42,16 @@ or as appropriate for the entry or if needed the entire day's listitem. --> + + 2020-05-09 + + + [pierre] - Pass -Wno-format-overflow to systemd to + prevent an error with GCC 10. + + + + 2020-05-09 diff --git a/chapter06/systemd.xml b/chapter06/systemd.xml index 2870c3846..cbba14a69 100644 --- a/chapter06/systemd.xml +++ b/chapter06/systemd.xml @@ -69,34 +69,45 @@ mkdir -p build cd build -LANG=en_US.UTF-8 \ -meson --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - -Dblkid=true \ - -Dbuildtype=release \ - -Ddefault-dnssec=no \ - -Dfirstboot=false \ - -Dinstall-tests=false \ - -Dkmod-path=/bin/kmod \ - -Dldconfig=false \ - -Dmount-path=/bin/mount \ - -Drootprefix= \ - -Drootlibdir=/lib \ - -Dsplit-usr=true \ - -Dsulogin-path=/sbin/sulogin \ - -Dsysusers=false \ - -Dumount-path=/bin/umount \ - -Db_lto=false \ - -Drpmmacrosdir=no \ - -Dhomed=false \ - -Duserdb=false \ - -Dman=true \ +LANG=en_US.UTF-8 \ +meson --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + -Dc_args=-Wno-format-overflow \ + -Dblkid=true \ + -Dbuildtype=release \ + -Ddefault-dnssec=no \ + -Dfirstboot=false \ + -Dinstall-tests=false \ + -Dkmod-path=/bin/kmod \ + -Dldconfig=false \ + -Dmount-path=/bin/mount \ + -Drootprefix= \ + -Drootlibdir=/lib \ + -Dsplit-usr=true \ + -Dsulogin-path=/sbin/sulogin \ + -Dsysusers=false \ + -Dumount-path=/bin/umount \ + -Db_lto=false \ + -Drpmmacrosdir=no \ + -Dhomed=false \ + -Duserdb=false \ + -Dman=true \ .. The meaning of the meson options: + + -Dc_args=-Wno-format-overflow + + The defaults flags passed to gcc contain + -Werror=format-overflow, which generates + an error with GCC 10. Passing this parameter prevents the error + from occuring. + + + -D*-path=* diff --git a/general.ent b/general.ent index dd42dc5e9..0193899ed 100644 --- a/general.ent +++ b/general.ent @@ -3,11 +3,11 @@ Change to x.y for release but not -rc releases --> - + - +