aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/tar.xml
diff options
context:
space:
mode:
authorMatthew Burgess <matthew@linuxfromscratch.org>2010-11-10 22:23:21 +0000
committerMatthew Burgess <matthew@linuxfromscratch.org>2010-11-10 22:23:21 +0000
commit64af1f62ed0e2885b15def4ecbaafc706bd70b6c (patch)
tree603fcef2a69d801f730a4cb66060913128d035bb /chapter06/tar.xml
parentb4a1c5e185fdd69df7026b5b26f8ead8dfa386b9 (diff)
Upgrade to Tar-1.25 and install its HTML documentation. Fixes #2777 and #2786.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9411 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/tar.xml')
-rw-r--r--chapter06/tar.xml30
1 files changed, 17 insertions, 13 deletions
diff --git a/chapter06/tar.xml b/chapter06/tar.xml
index 52176566f..7fed883e5 100644
--- a/chapter06/tar.xml
+++ b/chapter06/tar.xml
@@ -40,18 +40,23 @@
<sect2 role="installation">
<title>Installation of Tar</title>
- <para>Again, fix a bug that was inserted into the latest code release:</para>
-
-<screen><userinput remap="pre">sed -i /SIGPIPE/d src/tar.c</userinput></screen>
-
- <para>Also, fix a bug that causes a buffer overflow when creating a new
- tar file. This fix is needed when building with gcc-4.5 and later.</para>
+ <para>Prepare Tar for compilation:</para>
-<screen><userinput remap="pre">patch -Np1 -i ../&tar-overflow-patch;</userinput></screen>
+<screen><userinput remap="configure">FORCE_UNSAFE_CONFIGURE=1 ./configure --prefix=/usr --bindir=/bin --libexecdir=/usr/sbin</userinput></screen>
- <para>Prepare Tar for compilation:</para>
+ <variablelist>
+ <title>The meaning of the configure options:</title>
-<screen><userinput remap="configure">./configure --prefix=/usr --bindir=/bin --libexecdir=/usr/sbin</userinput></screen>
+ <varlistentry>
+ <term><envar>FORCE_UNSAFE_CONFIGURE=1</envar></term>
+ <listitem>
+ <para>This forces the test for <function>mknod</function> to be run
+ as root. It is generally considered dangerous to run this test as
+ the root user, but as it is being run on an only partially built
+ system, overriding it is OK.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
<para>Compile the package:</para>
@@ -59,13 +64,12 @@
<para>To test the results (about 1 SBU), issue:</para>
-<screen><userinput remap="test">sed -i '35 i\
-AT_UNPRIVILEGED_PREREQ' tests/remfiles01.at
-make check</userinput></screen>
+<screen><userinput remap="test">make check</userinput></screen>
<para>Install the package:</para>
-<screen><userinput remap="install">make install</userinput></screen>
+<screen><userinput remap="install">make install
+make -C doc install-html docdir=/usr/share/doc/tar-&tar-version;</userinput></screen>
</sect2>