aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/coreutils.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/coreutils.xml')
-rw-r--r--chapter06/coreutils.xml31
1 files changed, 19 insertions, 12 deletions
diff --git a/chapter06/coreutils.xml b/chapter06/coreutils.xml
index 3d8288366..3d7be3c19 100644
--- a/chapter06/coreutils.xml
+++ b/chapter06/coreutils.xml
@@ -41,12 +41,6 @@
<sect2 role="installation">
<title>Installation of Coreutils</title>
- <para>The version of the function <quote>futimens</quote> used
- by Coreutils is incompatible with the version that current
- Glibc provides, so we'll rename the function:</para>
-
-<screen><userinput remap="pre">sed -i 's/futimens/gl_&amp;/' src/{copy,touch}.c lib/utimens.{c,h}</userinput></screen>
-
<para>A known issue with the <command>uname</command> program from
this package is that the <parameter>-p</parameter> switch always
returns <computeroutput>unknown</computeroutput>. The following patch
@@ -54,11 +48,6 @@
<screen><userinput remap="pre">patch -Np1 -i ../&coreutils-uname-patch;</userinput></screen>
- <para>Prevent Coreutils from installing binaries that will be installed by
- other packages later:</para>
-
-<screen><userinput remap="pre">patch -Np1 -i ../&coreutils-suppress-patch;</userinput></screen>
-
<para>POSIX requires that programs from Coreutils recognize character
boundaries correctly even in multibyte locales. The following patch
fixes this non-compliance and other internationalization-related bugs:</para>
@@ -78,7 +67,20 @@
<para>Now prepare Coreutils for compilation:</para>
-<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
+<screen><userinput remap="configure">./configure --prefix=/usr --enable-install-program=hostname --enable-no-install-program=kill</userinput></screen>
+
+ <variablelist>
+ <title>The meaning of the configure options:</title>
+
+ <varlistentry>
+ <term><parameter>--enable-no-install-program=kill</parameter></term>
+ <listitem>
+ <para>The purpose of this switch is to prevent Coreutils from
+ installing binaries that will be installed by other packages later.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
<para>Compile the package:</para>
@@ -100,6 +102,11 @@
<screen><userinput remap="test">echo "dummy:x:1000:nobody" &gt;&gt; /etc/group</userinput></screen>
+ <para>Fix some of the permissions so that the non-root user can compile and
+ run the tests:</para>
+
+<screen><userinput remap="test">chown -v nobody gnulib-tests/.deps</userinput></screen>
+
<para>Now run the tests:</para>
<screen><userinput remap="test">su-tools nobody -s /bin/bash -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>