upgraded to latest tar, findutils and gzip

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2593 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Gerard Beekmans 2003-05-12 23:25:21 +00:00
parent 8f85ee87ae
commit a77c2ca28e
16 changed files with 27 additions and 126 deletions

View File

@ -2,14 +2,6 @@
<title>Official Download Location</title> <title>Official Download Location</title>
<para><literallayout>Findutils (&findutils-version;): <para><literallayout>Findutils (&findutils-version;):
<ulink url="ftp://ftp.gnu.org/gnu/findutils/"/> <ulink url="ftp://ftp.gnu.org/gnu/findutils/"/></literallayout></para>
Findutils Patch (&findutils-patch-version;):
<ulink url="&ftp;/"/>
<ulink url="&http;/"/>
Findutils Segfault Patch (&findutils-segfault-patch-version;):
<ulink url="&ftp;/"/>
<ulink url="&http;/"/></literallayout></para>
</sect2> </sect2>

View File

@ -2,9 +2,6 @@
<title>Official Download Location</title> <title>Official Download Location</title>
<para><literallayout>Gzip (&gzip-version;): <para><literallayout>Gzip (&gzip-version;):
<ulink url="ftp://ftp.gnu.org/gnu/gzip/"/> <ulink url="ftp://alpha.gnu.org/gnu/gzip/"/></literallayout></para>
Gzip Patch (&gzip-patch-version;):
<ulink url="&ftp;/"/>
<ulink url="&http;/"/></literallayout></para>
</sect2> </sect2>

View File

@ -2,9 +2,6 @@
<title>Official Download Location</title> <title>Official Download Location</title>
<para><literallayout>Tar (&tar-version;): <para><literallayout>Tar (&tar-version;):
<ulink url="ftp://ftp.gnu.org/gnu/tar/"/> <ulink url="ftp://alpha.gnu.org/gnu/tar/"/></literallayout></para>
Tar Patch (&tar-version;):
<ulink url="&ftp;/"/>
<ulink url="&http;/"/></literallayout></para>
</sect2> </sect2>

View File

@ -12,11 +12,13 @@
<listitem><para>bash-2.05b</para></listitem> <listitem><para>bash-2.05b</para></listitem>
<listitem><para>e2fsprogs-1.33</para></listitem> <listitem><para>e2fsprogs-1.33</para></listitem>
<listitem><para>file-4.02</para></listitem> <listitem><para>file-4.02</para></listitem>
<listitem><para>findutils-4.1.7</para></listitem>
<listitem><para>gawk-3.1.2</para></listitem> <listitem><para>gawk-3.1.2</para></listitem>
<listitem><para>gcc-3.2.3</para></listitem> <listitem><para>gcc-3.2.3</para></listitem>
<listitem><para>glibc-2.3.2</para></listitem> <listitem><para>glibc-2.3.2</para></listitem>
<listitem><para>grep-2.5.1</para></listitem> <listitem><para>grep-2.5.1</para></listitem>
<listitem><para>groff-1.19</para></listitem> <listitem><para>groff-1.19</para></listitem>
<listitem><para>gzip-1.3.5</para></listitem>
<listitem><para>less-381</para></listitem> <listitem><para>less-381</para></listitem>
<listitem><para>libtool-1.5</para></listitem> <listitem><para>libtool-1.5</para></listitem>
<listitem><para>man-1.5l</para></listitem> <listitem><para>man-1.5l</para></listitem>
@ -29,6 +31,7 @@
<listitem><para>procps-3.1.8.patch</para></listitem> <listitem><para>procps-3.1.8.patch</para></listitem>
<listitem><para>sed-4.0.7</para></listitem> <listitem><para>sed-4.0.7</para></listitem>
<listitem><para>sysvinit-2.85</para></listitem> <listitem><para>sysvinit-2.85</para></listitem>
<listitem><para>tar-1.13.25</para></listitem>
<listitem><para>texinfo-4.5</para></listitem> <listitem><para>texinfo-4.5</para></listitem>
<listitem><para>util-linux-2.11z</para></listitem> <listitem><para>util-linux-2.11z</para></listitem>
</itemizedlist> </itemizedlist>
@ -74,6 +77,13 @@
<listitem><para>May 12th, 2003 [gerard]: Chapter 06 - Basic Network: Added <listitem><para>May 12th, 2003 [gerard]: Chapter 06 - Basic Network: Added
$(hostname) to /etc/hosts, without it perl's test doesn't pass.</para></listitem> $(hostname) to /etc/hosts, without it perl's test doesn't pass.</para></listitem>
<listitem><para>May 12th, 2003 [gerard]: Chapter 06 - Installing GCC:
Don't try to remove /usr/include/libiberty.h. It isn't installed in the
first place.</para></listitem>
<listitem><para>May 12th, 2003 [winkie]: Upgraded to findutils-4.1.7,
gzip-1.3.5, and tar-1.13.25.</para></listitem>
<listitem><para>May 12th, 2003 [winkie]: Chapter 05 - Installing Perl: <listitem><para>May 12th, 2003 [winkie]: Chapter 05 - Installing Perl:
Add extra commands to build certain modules into Perl. This is to Add extra commands to build certain modules into Perl. This is to
accomadate the Coreutils "make check". Partially fixes bug #528.</para></listitem> accomadate the Coreutils "make check". Partially fixes bug #528.</para></listitem>

View File

@ -1,2 +1,2 @@
Findutils (&findutils-version;) - &findutils-size;: Findutils (&findutils-version;) - &findutils-size;:
<ulink url="http://freshmeat.net/projects/findutils/"/> <ulink url="http://netsw.org/system/tools/fileutils/find/"/>

View File

@ -1,2 +1,2 @@
Gzip (&gzip-version;) - &gzip-size;: Gzip (&gzip-version;) - &gzip-size;:
<ulink url="http://freshmeat.net/projects/gzip/"/> <ulink url="ftp://alpha.gnu.org/gnu/gzip/"/>

View File

@ -24,7 +24,6 @@
&c4-expect-patch; &c4-expect-patch;
&c4-file; &c4-file;
&c4-findutils; &c4-findutils;
&c4-findutils-patch;
&c4-flex; &c4-flex;
&c4-gawk; &c4-gawk;
&c4-gawk-patch; &c4-gawk-patch;
@ -37,7 +36,6 @@
&c4-grep; &c4-grep;
&c4-groff; &c4-groff;
&c4-gzip; &c4-gzip;
&c4-gzip-patch;
&c4-inetutils; &c4-inetutils;
&c4-kbd; &c4-kbd;
&c4-kbd-patch; &c4-kbd-patch;
@ -68,7 +66,6 @@
&c4-sysklogd; &c4-sysklogd;
&c4-sysvinit; &c4-sysvinit;
&c4-tar; &c4-tar;
&c4-tar-patch;
&c4-tcl; &c4-tcl;
&c4-texinfo; &c4-texinfo;
&c4-utillinux; &c4-utillinux;

View File

@ -1,2 +1,2 @@
Tar (&tar-version;) - &tar-size;: Tar (&tar-version;) - &tar-size;:
<ulink url="http://freshmeat.net/projects/tar/"/> <ulink url="ftp://alpha.gnu.org/gnu/tar/"/>

View File

@ -3,30 +3,6 @@
<sect2> <sect2>
<title>Installing Findutils</title> <title>Installing Findutils</title>
<para>The Findutils package is quite old and it has problems compiling
against newer Glibc versions (Glibc-2.0.x and up). You need to apply the
patch, which fixes the following issues:</para>
<itemizedlist>
<listitem><para>Findutils declares a function called basename, but this
function name is already used by the C standard libraries. This patch
changes the Findutils version of basename function so that it is called
basename2 instead.</para></listitem>
<listitem><para>Findutils uses library files in an incorrect way. It
declares library functions, to tell the compiler what the name of the
function will be when the libraries are linked in. This syntax is invalid
and causes compiler warnings/errors. This patch removes this improper
syntax.</para></listitem>
<listitem><para>Every GNU package is supposed use a macro called _GNU_SOURCE.
This macro enables declarations of GNU library extension functions so the
compiler will be able to detect name conflicts between functions more easily.
This patch adds this macro to the source code.</para></listitem>
</itemizedlist>
<para><screen><userinput>patch -Np1 -i ../findutils-&findutils-patch-version;.patch</userinput></screen></para>
<para>Prepare Findutils to be compiled:</para> <para>Prepare Findutils to be compiled:</para>
<para><screen><userinput>./configure --prefix=/stage1 <para><screen><userinput>./configure --prefix=/stage1

View File

@ -3,15 +3,6 @@
<sect2> <sect2>
<title>Installation of Tar</title> <title>Installation of Tar</title>
<para>A patch may be applied to give tar direct support for
bzip2 files. This patch adds the <emphasis>-j</emphasis> option
to tar, which is similar to the <emphasis>-z</emphasis> option
used for gzip files.</para>
<para>Apply the patch by running the following command:</para>
<para><screen><userinput>patch -Np1 -i ../tar-&tar-patch-version;.patch</userinput></screen></para>
<para><screen><userinput>./configure --prefix=/stage1 <para><screen><userinput>./configure --prefix=/stage1
make make
make check make check

View File

@ -3,52 +3,21 @@
<sect2> <sect2>
<title>Installing Findutils</title> <title>Installing Findutils</title>
<para>The Findutils package is quite old and it has problems compiling
against newer Glibc versions (Glibc-2.0.x and up). You need to apply the
patch, which fixes the following issues:</para>
<itemizedlist>
<listitem><para>Findutils declares a function called basename, but this
function name is already used by the C standard libraries. This patch
changes the Findutils version of basename function so that it is called
basename2 instead.</para></listitem>
<listitem><para>Findutils uses library files in an incorrect way. It
declares library functions, to tell the compiler what the name of the
function will be when the libraries are linked in. This syntax is invalid
and causes compiler warnings/errors. This patch removes this improper
syntax.</para></listitem>
<listitem><para>Every GNU package is supposed use a macro called _GNU_SOURCE.
This macro enables declarations of GNU library extension functions and so the
compiler will be able to detect name conflicts between functions more easily.
This patch adds this macro to the source code.</para></listitem>
</itemizedlist>
<para><screen><userinput>patch -Np1 -i ../findutils-&findutils-patch-version;.patch</userinput></screen></para>
<para>There is a bug in locate.c of Findutils that causes a segmentation
fault to occur on very long path names. The problem is caused by the
get_short() function calculating negative numbers incorrectly. This patch
corrects this bug.</para>
<para><screen><userinput>patch -Np1 -i ../findutils-&findutils-segfault-patch-version;-segfault.patch</userinput></screen></para>
<para>Prepare Findutils to be compiled:</para> <para>Prepare Findutils to be compiled:</para>
<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para> <para><screen><userinput>./configure --prefix=/usr --libexecdir=/usr/bin</userinput></screen></para>
<para>By default, the location of the updatedb database is in /usr/var. <para>By default, the location of the updatedb database is in /usr/var.
To make the location of <filename>/var/lib/misc/locatedb</filename> file To make the location of <filename>/var/lib/misc/locatedb</filename> file
FHS compliant, pass the <emphasis>localstatedir=/var/lib/misc</emphasis> FHS compliant, pass the <emphasis>--localstatedir=/var/lib/misc</emphasis>
option to both <userinput>make</userinput> commands below.</para> option to <userinput>configure</userinput>.</para>
<para>Continue with compiling the package:</para> <para>Continue with compiling the package:</para>
<para><screen><userinput>make libexecdir=/usr/bin</userinput></screen></para> <para><screen><userinput>make</userinput></screen></para>
<para>Finish installing the package:</para> <para>Finish installing the package:</para>
<para><screen><userinput>make libexecdir=/usr/bin install</userinput></screen></para> <para><screen><userinput>make install</userinput></screen></para>
</sect2> </sect2>

View File

@ -3,13 +3,6 @@
<sect2> <sect2>
<title>Installation of Gzip</title> <title>Installation of Gzip</title>
<para>The following patch fixes a buffer overflow that occurs when a
filename is longer than 1020 characters. It does this by inserting a check
that the buffer is large enough for the given filename. The program exits
with the message "Filename too long" if the buffer is not large enough.</para>
<para><screen><userinput>patch -Np1 -i ../gzip-&gzip-patch-version;.patch</userinput></screen></para>
<para>Prepare Gzip to be compiled:</para> <para>Prepare Gzip to be compiled:</para>
<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para> <para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>

View File

@ -3,15 +3,6 @@
<sect2> <sect2>
<title>Installation of Tar</title> <title>Installation of Tar</title>
<para>A patch may be applied to give tar direct support for bzip2
files. This patch adds the <emphasis>-j</emphasis> option to tar,
which is similar to the <emphasis>-z</emphasis> option used for
gzip files.</para>
<para>Apply the patch by running the following command:</para>
<para><screen><userinput>patch -Np1 -i ../tar-&tar-patch-version;.patch</userinput></screen></para>
<para>Prepare Tar to be compiled:</para> <para>Prepare Tar to be compiled:</para>
<para><screen><userinput>./configure --prefix=/usr --bindir=/bin \ <para><screen><userinput>./configure --prefix=/usr --bindir=/bin \

View File

@ -1,6 +1,4 @@
<!ENTITY c4-findutils SYSTEM "../chapter04/findutils.xml"> <!ENTITY c4-findutils SYSTEM "../chapter04/findutils.xml">
<!ENTITY c4-findutils-patch SYSTEM "../chapter04/findutils-patch.xml">
<!ENTITY c4-findutils-segfault-patch SYSTEM "../chapter04/findutils-patch.xml">
<!ENTITY c5-findutils SYSTEM "../chapter05/findutils.xml"> <!ENTITY c5-findutils SYSTEM "../chapter05/findutils.xml">
<!ENTITY c5-findutils-inst SYSTEM "../chapter05/findutils-inst.xml"> <!ENTITY c5-findutils-inst SYSTEM "../chapter05/findutils-inst.xml">
@ -14,14 +12,10 @@
<!ENTITY aa-findutils-dep SYSTEM "../appendixa/findutils-dep.xml"> <!ENTITY aa-findutils-dep SYSTEM "../appendixa/findutils-dep.xml">
<!ENTITY aa-findutils-down SYSTEM "../appendixa/findutils-down.xml"> <!ENTITY aa-findutils-down SYSTEM "../appendixa/findutils-down.xml">
<!ENTITY findutils-version "4.1"> <!ENTITY findutils-version "4.1.7">
<!ENTITY findutils-depversion "4.1"> <!ENTITY findutils-depversion "4.1">
<!ENTITY findutils-contversion "4.1"> <!ENTITY findutils-contversion "4.1">
<!ENTITY findutils-size "288 KB"> <!ENTITY findutils-size "619 KB">
<!ENTITY findutils-patch-size "1 KB">
<!ENTITY findutils-patch-version "4.1">
<!ENTITY findutils-segfault-patch-size "1 KB">
<!ENTITY findutils-segfault-patch-version "4.1">
<!ENTITY findutils-dir "findutils-&findutils-version;"> <!ENTITY findutils-dir "findutils-&findutils-version;">
<!ENTITY findutils-package "findutils-&findutils-version;.tar.bz2"> <!ENTITY findutils-package "findutils-&findutils-version;.tar.bz2">

View File

@ -1,5 +1,4 @@
<!ENTITY c4-gzip SYSTEM "../chapter04/gzip.xml"> <!ENTITY c4-gzip SYSTEM "../chapter04/gzip.xml">
<!ENTITY c4-gzip-patch SYSTEM "../chapter04/gzip-patch.xml">
<!ENTITY c5-gzip SYSTEM "../chapter05/gzip.xml"> <!ENTITY c5-gzip SYSTEM "../chapter05/gzip.xml">
<!ENTITY c5-gzip-inst SYSTEM "../chapter05/gzip-inst.xml"> <!ENTITY c5-gzip-inst SYSTEM "../chapter05/gzip-inst.xml">
@ -13,12 +12,10 @@
<!ENTITY aa-gzip-dep SYSTEM "../appendixa/gzip-dep.xml"> <!ENTITY aa-gzip-dep SYSTEM "../appendixa/gzip-dep.xml">
<!ENTITY aa-gzip-down SYSTEM "../appendixa/gzip-down.xml"> <!ENTITY aa-gzip-down SYSTEM "../appendixa/gzip-down.xml">
<!ENTITY gzip-version "1.2.4a"> <!ENTITY gzip-version "1.3.5">
<!ENTITY gzip-depversion "1.2.4a"> <!ENTITY gzip-depversion "1.2.4a">
<!ENTITY gzip-contversion "1.2.4a"> <!ENTITY gzip-contversion "1.2.4a">
<!ENTITY gzip-size "216 KB"> <!ENTITY gzip-size "323 KB">
<!ENTITY gzip-patch-size "1 KB">
<!ENTITY gzip-patch-version "1.2.4b">
<!ENTITY gzip-package "gzip-&gzip-version;.tar.bz2"> <!ENTITY gzip-package "gzip-&gzip-version;.tar.bz2">
<!ENTITY gzip-dir "gzip-&gzip-version;"> <!ENTITY gzip-dir "gzip-&gzip-version;">

View File

@ -1,5 +1,4 @@
<!ENTITY c4-tar SYSTEM "../chapter04/tar.xml"> <!ENTITY c4-tar SYSTEM "../chapter04/tar.xml">
<!ENTITY c4-tar-patch SYSTEM "../chapter04/tar-patch.xml">
<!ENTITY c5-tar SYSTEM "../chapter05/tar.xml"> <!ENTITY c5-tar SYSTEM "../chapter05/tar.xml">
<!ENTITY c5-tar-inst SYSTEM "../chapter05/tar-inst.xml"> <!ENTITY c5-tar-inst SYSTEM "../chapter05/tar-inst.xml">
@ -12,12 +11,10 @@
<!ENTITY aa-tar-down SYSTEM "../appendixa/tar-down.xml"> <!ENTITY aa-tar-down SYSTEM "../appendixa/tar-down.xml">
<!ENTITY aa-tar-shortdesc SYSTEM "../appendixa/tar-shortdesc.xml"> <!ENTITY aa-tar-shortdesc SYSTEM "../appendixa/tar-shortdesc.xml">
<!ENTITY tar-version "1.13"> <!ENTITY tar-version "1.13.25">
<!ENTITY tar-depversion "1.13"> <!ENTITY tar-depversion "1.13">
<!ENTITY tar-contversion "1.13"> <!ENTITY tar-contversion "1.13">
<!ENTITY tar-size "1028 KB"> <!ENTITY tar-size "1281 KB">
<!ENTITY tar-patch-size "1 KB">
<!ENTITY tar-patch-version "1.13">
<!ENTITY tar-package "tar-&tar-version;.tar.bz2"> <!ENTITY tar-package "tar-&tar-version;.tar.bz2">
<!ENTITY tar-dir "tar-&tar-version;"> <!ENTITY tar-dir "tar-&tar-version;">