[Clfs-commits] [Cross-LFS]Cross-LFS Book branch, systemd, updated. clfs-2.0.0-948-gdd08c1b

git git at cross-lfs.org
Sun Mar 2 11:00:39 PST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Cross-LFS Book".

The branch, systemd has been updated
       via  dd08c1be6bce05a693b34f727a19bb5094fc3537 (commit)
      from  3d99dc7c56a877ba7b8827bb8a453665d64f07a7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit dd08c1be6bce05a693b34f727a19bb5094fc3537
Author: William Harrington <kb0iic at berzerkula.org>
Date:   Sun Mar 2 13:00:33 2014 -0600

    Fix test suite commands for proper utilization of the nobody user and use the dummy group only for coreutils.

diff --git a/BOOK/final-system/common/coreutils.xml b/BOOK/final-system/common/coreutils.xml
index 434e67d..e83447f 100644
--- a/BOOK/final-system/common/coreutils.xml
+++ b/BOOK/final-system/common/coreutils.xml
@@ -55,38 +55,42 @@
 
 <screen os="f"><userinput>make</userinput></screen>
 
-    <para os="g">The test suite of Coreutils makes several assumptions about the
-    presence of system users and groups that are not valid within the minimal
-    environment that exists at the moment. Therefore, we will reuse the dummy
-    groups and user created during Util-linux. Skip down to <quote>Install the
-    package</quote> if not running the test suite and you did not create the
-    dummy groups and users during Util-linux.</para>
-
-   <para os="h">Now the test suite is ready to be run. First, run
+   <para os="g">Now the test suite is ready to be run. First, run
     the tests that are meant to be run as user
     <systemitem class="username">root</systemitem>:</para>
 
-<screen os="i"><userinput remap="test">make NON_ROOT_USERNAME=nobody check-root</userinput></screen>
+<screen os="h"><userinput remap="test">make NON_ROOT_USERNAME=nobody check-root</userinput></screen>
 
-    <para os="j">The testsuite will now be run as the
-    <systemitem class="username">nobody</systemitem> user. Fix the permissions
-    for a few files to allow this:</para>
+    <para os="i">The testsuite will now be run as the
+    <systemitem class="username">nobody</systemitem> user. Some tests require
+    that the user be a member of more than one group. Add a temporary group
+    and make the user <systemitem class="username">nobody</systemitem> a part
+    of it so that the tests are not skipped:</para>
 
-<screen os="k"><userinput remap="test">chown -Rv nobody .</userinput></screen>
+<screen os="j"><userinput remap="test">echo "dummy:x:1000:nobody" >> /etc/group</userinput></screen>
 
-    <para os="l">Then run the remainder of the tests as the
+    <para os="k">Fix permissions of some files so the non-root user can compile
+    and run the tests:</para>
+
+<screen os="l"><userinput remap="test">chown -Rv nobody .</userinput></screen>
+
+    <para os="m">Then run the remainder of the tests as the
     <systemitem class="username">nobody</systemitem> user:</para>
 
-<screen os="m"><userinput remap="test">su nobody -s /bin/bash \
+<screen os="n"><userinput remap="test">su nobody -s /bin/bash \
     -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes -k check || true"</userinput></screen>
 
-    <para os="p">Install the package:</para>
+    <para os="o">Remove the temporary group:</para>
+
+<screen os="p"><userinput remap="test">sed -i '/dummy/d' /etc/group</userinput></screen>
+
+    <para os="q">Install the package:</para>
 
-<screen os="q"><userinput>make install</userinput></screen>
+<screen os="r"><userinput>make install</userinput></screen>
 
-    <para os="r">Move programs to the locations specified by the FHS:</para>
+    <para os="s">Move programs to the locations specified by the FHS:</para>
 
-<screen os="s"><userinput>mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date} /bin
+<screen os="t"><userinput>mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date} /bin
 mv -v /usr/bin/{dd,df,echo,false,hostname,ln,ls,mkdir,mknod} /bin
 mv -v /usr/bin/{mv,pwd,rm,rmdir,stty,true,uname} /bin
 mv -v /usr/bin/chroot /usr/sbin</userinput></screen>
diff --git a/BOOK/final-system/multilib/coreutils.xml b/BOOK/final-system/multilib/coreutils.xml
index 168d2c7..34a7a19 100644
--- a/BOOK/final-system/multilib/coreutils.xml
+++ b/BOOK/final-system/multilib/coreutils.xml
@@ -102,6 +102,10 @@
     href="../common/coreutils.xml"
     xpointer="xpointer(//*[@os='s'])"/>
 
+    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
+    href="../common/coreutils.xml"
+    xpointer="xpointer(//*[@os='t'])"/>
+
   </sect2>
 
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"

-----------------------------------------------------------------------

Summary of changes:
 BOOK/final-system/common/coreutils.xml   |   42 ++++++++++++++++-------------
 BOOK/final-system/multilib/coreutils.xml |    4 +++
 2 files changed, 27 insertions(+), 19 deletions(-)


hooks/post-receive
-- 
Cross-LFS Book



More information about the Clfs-commits mailing list