diff options
author | Timothy Bauscher <timothy@linuxfromscratch.org> | 2003-01-17 05:09:20 +0000 |
---|---|---|
committer | Timothy Bauscher <timothy@linuxfromscratch.org> | 2003-01-17 05:09:20 +0000 |
commit | 0397b61e3f04dfdb45df4d2b25bc532320f9e7a0 (patch) | |
tree | 9b74dc433136787ade5dbcb0e253bdb074396ee3 /chapter06/gzip-inst.xml | |
parent | 91499fddbf680f8a3f2518ae9806920f386475c0 (diff) |
Billy's gzip conversion.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2385 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/gzip-inst.xml')
-rw-r--r-- | chapter06/gzip-inst.xml | 39 |
1 files changed, 34 insertions, 5 deletions
diff --git a/chapter06/gzip-inst.xml b/chapter06/gzip-inst.xml index 51aaf8748..06b9441f9 100644 --- a/chapter06/gzip-inst.xml +++ b/chapter06/gzip-inst.xml @@ -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> |