mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-07-14 16:25:11 +01:00
Billy's gzip conversion.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2385 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
91499fddbf
commit
0397b61e3f
@ -1,8 +0,0 @@
|
||||
<sect2>
|
||||
<title>Command explanations</title>
|
||||
|
||||
<para><userinput>patch -Np1 -i ../gzip-1.2.4b.patch:</userinput>
|
||||
This patch fixes a buffer overflow that occurs when a filename is
|
||||
longer than 1020 characters.</para>
|
||||
|
||||
</sect2>
|
@ -1,14 +1,28 @@
|
||||
<sect2><title> </title><para> </para></sect2>
|
||||
|
||||
<sect2>
|
||||
<title>Installation of Gzip</title>
|
||||
|
||||
<para>Install Gzip by running the following commands:</para>
|
||||
<para>Prepare Gzip to be compiled:</para>
|
||||
|
||||
<para><screen><userinput>patch -Np1 -i ../gzip-&gzip-patch-version;.patch &&
|
||||
<para><screen><userinput>
|
||||
patch -Np1 -i ../gzip-&gzip-patch-version;.patch &&
|
||||
./configure --prefix=/usr &&
|
||||
cp gzexe.in{,.backup} &&
|
||||
sed 's%"BINDIR"%/bin%' gzexe.in.backup > gzexe.in &&
|
||||
make &&
|
||||
make install &&
|
||||
sed 's%"BINDIR"%/bin%' gzexe.in.backup > gzexe.in
|
||||
</userinput></screen></para>
|
||||
|
||||
<para>Continue with compiling the package:</para>
|
||||
|
||||
<para><screen><userinput>make</userinput></screen></para>
|
||||
|
||||
<para>And finish off installing the package:</para>
|
||||
|
||||
<para><screen><userinput>make install</userinput></screen></para>
|
||||
|
||||
<para>Move the Gzip binaries to the root partition:</para>
|
||||
|
||||
<para><screen><userinput>
|
||||
mv /usr/bin/gzip /bin &&
|
||||
rm /usr/bin/{gunzip,zcat} &&
|
||||
ln -s gzip /bin/gunzip &&
|
||||
@ -17,3 +31,18 @@ ln -s gunzip /bin/uncompress</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2>
|
||||
<title>Command explanations</title>
|
||||
|
||||
<para><userinput>patch -Np1 -i ../gzip-1.2.4b.patch:</userinput>
|
||||
This patch fixes a buffer overflow that occurs when a filename is
|
||||
longer than 1020 characters.</para>
|
||||
|
||||
<para><userinput>
|
||||
cp gzexe.in{,.backup} &&
|
||||
sed 's%"BINDIR"%/bin%' gzexe.in.backup > gzexe.in</userinput>
|
||||
Change the default installation directory for Gzip so it will be
|
||||
installed on the root partition.</para>
|
||||
|
||||
|
||||
</sect2>
|
||||
|
@ -5,9 +5,8 @@
|
||||
<screen>Estimated build time: &gzip-time;
|
||||
Estimated required disk space: &gzip-compsize;</screen>
|
||||
|
||||
&c6-gzip-inst;
|
||||
&c6-gzip-exp;
|
||||
&aa-gzip-desc;
|
||||
&aa-gzip-shortdesc;
|
||||
&aa-gzip-dep;
|
||||
&c6-gzip-inst;
|
||||
|
||||
</sect1>
|
||||
|
@ -6,7 +6,6 @@
|
||||
|
||||
<!ENTITY c6-gzip SYSTEM "../chapter06/gzip.xml">
|
||||
<!ENTITY c6-gzip-inst SYSTEM "../chapter06/gzip-inst.xml">
|
||||
<!ENTITY c6-gzip-exp SYSTEM "../chapter06/gzip-exp.xml">
|
||||
|
||||
<!ENTITY aa-gzip SYSTEM "../appendixa/gzip.xml">
|
||||
<!ENTITY aa-gzip-shortdesc SYSTEM "../appendixa/gzip-shortdesc.xml">
|
||||
|
Loading…
Reference in New Issue
Block a user