From c556e5944942f0d9ad66fb5f025d249eb0a733b1 Mon Sep 17 00:00:00 2001 From: "Douglas R. Reno" Date: Fri, 12 Jul 2019 20:38:13 +0000 Subject: [PATCH] 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 --- chapter01/changelog.xml | 11 +++++++++++ chapter06/systemd.xml | 28 ++++++++++++++++++---------- general.ent | 6 +++--- 3 files changed, 32 insertions(+), 13 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 402145c5a..6525fb893 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -43,6 +43,17 @@ appropriate for the entry or if needed the entire day's listitem. --> + + 2019-07-12 + + + [renodr] - Fix an FTBFS for systemd and do minor text + and instructions improvements. Also, fix symlinks that were not + removed. + + + + 2019-06-29 diff --git a/chapter06/systemd.xml b/chapter06/systemd.xml index 7c52389c5..f90e95498 100644 --- a/chapter06/systemd.xml +++ b/chapter06/systemd.xml @@ -39,11 +39,6 @@ Installation of systemd - Create a symlink to work around missing xsltproc: @@ -70,13 +65,16 @@ done sed -i 's/GROUP="render", //' rules/50-udev-default.rules.in + + Prepare systemd for compilation: - mkdir -p build +mkdir -p build cd build PKG_CONFIG_PATH="/usr/lib/pkgconfig:/tools/lib/pkgconfig" \ LANG=en_US.UTF-8 \ +CFLAGS+="-Wno-format-overflow" \ meson --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ @@ -85,7 +83,6 @@ meson --prefix=/usr \ -Ddefault-dnssec=no \ -Dfirstboot=false \ -Dinstall-tests=false \ - -Dkill-path=/bin/kill \ -Dkmod-path=/bin/kmod \ -Dldconfig=false \ -Dmount-path=/bin/mount \ @@ -96,6 +93,7 @@ meson --prefix=/usr \ -Dsysusers=false \ -Dumount-path=/bin/umount \ -Db_lto=false \ + -Drpmmacrosdir=no \ .. @@ -174,6 +172,13 @@ meson --prefix=/usr \ + + -Drpmmacrosdir=no + + This switch disables installation of RPM Macros + for use with systemd because LFS does not support RPM. + + Compile the package: @@ -188,10 +193,13 @@ meson --prefix=/usr \ LANG=en_US.UTF-8 ninja install - Remove an unnecessary directory and file: + Remove an unnecessary symbolic link: -rm -rfv /usr/lib/rpm -rm -f /usr/bin/xsltproc +rm -f /usr/bin/xsltproc + + Remove symbolic links to Util-Linux libraries: + +rm -fv /usr/lib/lib{blkid,uuid,mount}.so* Create the /etc/machine-id file needed by systemd-journald: diff --git a/general.ent b/general.ent index 8fd1345d4..aa868a81c 100644 --- a/general.ent +++ b/general.ent @@ -1,13 +1,13 @@ - + - + - +