diff --git a/chapter06/systemd.xml b/chapter06/systemd.xml index 2090b39de..101918a85 100644 --- a/chapter06/systemd.xml +++ b/chapter06/systemd.xml @@ -69,6 +69,10 @@ EOF patch -Np1 -i ../&systemd-compat-patch; + Disable a test case that always fails: + +sed -i "s:test/udev-test.pl ::g" Makefile.in + Prepare systemd for compilation: ./configure --prefix=/usr \ @@ -173,27 +177,8 @@ EOF make LIBRARY_PATH=/tools/lib - If you are going to run the test suite, first prevent a few test - cases from running because they fail in a chroot environment: - -sed -e "s:test/udev-test.pl::g" \ - -e "s:test-bus-cleanup\$(EXEEXT) ::g" \ - -e "s:test-cgroup-mask\$(EXEEXT) ::g" \ - -e "s:test-condition-util\$(EXEEXT) ::g" \ - -e "s:test-dhcp6-client\$(EXEEXT) ::g" \ - -e "s:test-engine\$(EXEEXT) ::g" \ - -e "s:test-journal-flush\$(EXEEXT) ::g" \ - -e "s:test-path-util\$(EXEEXT) ::g" \ - -e "s:test-sched-prio\$(EXEEXT) ::g" \ - -e "s:test-strv\$(EXEEXT) ::g" \ - -i Makefile - - Since the testsuite largely depends on the - host system kernel configuration, other tests - besides the ones that were previously disabled - may also fail. To test the results, issue: - -make -k check + This package has a test suite, but it can only be run after the + package has been installed. Install the package: @@ -220,10 +205,18 @@ ln -sfv ../lib/systemd/systemd /sbin/init sed -i "s:0775 root lock:0755 root root:g" /usr/lib/tmpfiles.d/legacy.conf Create the /etc/machine-id file needed by - Journald: + systemd-journald: systemd-machine-id-setup + Since the testsuite largely depends on the host system kernel + configuration, some tests may fail. It also needs a modification in + order not to look for a program that will be installed by Util-Linux + package later in this chapter. To test the results, issue: + +sed -i "s:minix:ext4:g" src/test/test-path-util.c +make LD_LIBRARY_PATH=/tools/lib -k check + diff --git a/packages.ent b/packages.ent index bbfc4d35d..077c1fca0 100644 --- a/packages.ent +++ b/packages.ent @@ -110,8 +110,8 @@ - - + + @@ -530,7 +530,7 @@ - +