aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrejzi <krejzi@linuxfromscratch.org>2015-02-07 20:53:20 +0000
committerKrejzi <krejzi@linuxfromscratch.org>2015-02-07 20:53:20 +0000
commitbd9829ca5a8ddfce8971117a8a948961bfe49371 (patch)
tree723ded0128c6d119520a6049a98f652d7a53d66e
parent6658e86d7b479f2022455cde4ff06a7e73749b9b (diff)
Hopefully fix the systemd testsuite.
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd@10835 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r--chapter06/systemd.xml37
-rw-r--r--packages.ent6
2 files changed, 18 insertions, 25 deletions
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</userinput></screen>
<screen><userinput remap="pre">patch -Np1 -i ../&systemd-compat-patch;</userinput></screen>
+ <para>Disable a test case that always fails:</para>
+
+<screen><userinput remap="pre">sed -i "s:test/udev-test.pl ::g" Makefile.in</userinput></screen>
+
<para>Prepare systemd for compilation:</para>
<screen><userinput remap="configure">./configure --prefix=/usr \
@@ -173,27 +177,8 @@ EOF</userinput></screen>
<screen><userinput remap="make">make LIBRARY_PATH=/tools/lib</userinput></screen>
- <para>If you are going to run the test suite, first prevent a few test
- cases from running because they fail in a chroot environment:</para>
-
-<screen><userinput remap="test">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</userinput></screen>
-
- <para>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:</para>
-
-<screen><userinput remap="test">make -k check</userinput></screen>
+ <para>This package has a test suite, but it can only be run after the
+ package has been installed.</para>
<para>Install the package:</para>
@@ -220,10 +205,18 @@ ln -sfv ../lib/systemd/systemd /sbin/init</userinput></screen>
<screen><userinput remap="install">sed -i "s:0775 root lock:0755 root root:g" /usr/lib/tmpfiles.d/legacy.conf</userinput></screen>
<para>Create the <filename>/etc/machine-id</filename> file needed by
- Journald:</para>
+ <command>systemd-journald</command>:</para>
<screen><userinput remap="install">systemd-machine-id-setup</userinput></screen>
+ <para>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:</para>
+
+<screen><userinput remap="test">sed -i "s:minix:ext4:g" src/test/test-path-util.c
+make LD_LIBRARY_PATH=/tools/lib -k check</userinput></screen>
+
</sect2>
<sect2 id="contents-systemd" role="content">
diff --git a/packages.ent b/packages.ent
index bbfc4d35d..077c1fca0 100644
--- a/packages.ent
+++ b/packages.ent
@@ -110,8 +110,8 @@
<!ENTITY dbus-url "http://dbus.freedesktop.org/releases/dbus/dbus-&dbus-version;.tar.gz">
<!ENTITY dbus-md5 "dfb810eda8780cf9debf7169b3ca5fe1">
<!ENTITY dbus-home "http://www.freedesktop.org/wiki/Software/dbus">
-<!ENTITY dbus-ch6-du "52 MB">
-<!ENTITY dbus-ch6-sbu "0.5 SBU">
+<!ENTITY dbus-ch6-du "42 MB">
+<!ENTITY dbus-ch6-sbu "0.4 SBU">
<!ENTITY dejagnu-version "1.5.2">
<!ENTITY dejagnu-size "583 KB">
@@ -530,7 +530,7 @@
<!ENTITY systemd-url "http://www.freedesktop.org/software/systemd/systemd-&systemd-version;.tar.xz">
<!ENTITY systemd-md5 "4e2c511b0a7932d7fc9d79822273aac6">
<!ENTITY systemd-home "http://www.freedesktop.org/wiki/Software/systemd/">
-<!ENTITY systemd-ch6-du "725 MB">
+<!ENTITY systemd-ch6-du "753 MB">
<!ENTITY systemd-ch6-sbu "1.8 SBU">
<!ENTITY tar-version "1.28">