|
@@ -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>
|
|
|
|