From c556e5944942f0d9ad66fb5f025d249eb0a733b1 Mon Sep 17 00:00:00 2001 From: "Douglas R. Reno" Date: Fri, 12 Jul 2019 20:38:13 +0000 Subject: 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 --- chapter06/systemd.xml | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'chapter06') 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 -f /usr/bin/xsltproc + + Remove symbolic links to Util-Linux libraries: -rm -rfv /usr/lib/rpm -rm -f /usr/bin/xsltproc +rm -fv /usr/lib/lib{blkid,uuid,mount}.so* Create the /etc/machine-id file needed by systemd-journald: -- cgit v1.2.3-54-g00ecf