From 0397b61e3f04dfdb45df4d2b25bc532320f9e7a0 Mon Sep 17 00:00:00 2001 From: Timothy Bauscher Date: Fri, 17 Jan 2003 05:09:20 +0000 Subject: Billy's gzip conversion. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2385 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/gzip-exp.xml | 8 -------- chapter06/gzip-inst.xml | 39 ++++++++++++++++++++++++++++++++++----- chapter06/gzip.xml | 5 ++--- entities/gzip.ent | 1 - 4 files changed, 36 insertions(+), 17 deletions(-) delete mode 100644 chapter06/gzip-exp.xml diff --git a/chapter06/gzip-exp.xml b/chapter06/gzip-exp.xml deleted file mode 100644 index 503f642e0..000000000 --- a/chapter06/gzip-exp.xml +++ /dev/null @@ -1,8 +0,0 @@ - -Command explanations - -patch -Np1 -i ../gzip-1.2.4b.patch: -This patch fixes a buffer overflow that occurs when a filename is -longer than 1020 characters. - - 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 @@ +   + Installation of Gzip -Install Gzip by running the following commands: +Prepare Gzip to be compiled: -patch -Np1 -i ../gzip-&gzip-patch-version;.patch && + +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 + + +Continue with compiling the package: + +make + +And finish off installing the package: + +make install + +Move the Gzip binaries to the root partition: + + mv /usr/bin/gzip /bin && rm /usr/bin/{gunzip,zcat} && ln -s gzip /bin/gunzip && @@ -17,3 +31,18 @@ ln -s gunzip /bin/uncompress + +Command explanations + +patch -Np1 -i ../gzip-1.2.4b.patch: +This patch fixes a buffer overflow that occurs when a filename is +longer than 1020 characters. + + +cp gzexe.in{,.backup} && +sed 's%"BINDIR"%/bin%' gzexe.in.backup > gzexe.in +Change the default installation directory for Gzip so it will be +installed on the root partition. + + + diff --git a/chapter06/gzip.xml b/chapter06/gzip.xml index 0cf15fa30..616614f1f 100644 --- a/chapter06/gzip.xml +++ b/chapter06/gzip.xml @@ -5,9 +5,8 @@ Estimated build time: &gzip-time; Estimated required disk space: &gzip-compsize; -&c6-gzip-inst; -&c6-gzip-exp; -&aa-gzip-desc; +&aa-gzip-shortdesc; &aa-gzip-dep; +&c6-gzip-inst; diff --git a/entities/gzip.ent b/entities/gzip.ent index 44e5e4b2d..d05fe50b9 100644 --- a/entities/gzip.ent +++ b/entities/gzip.ent @@ -6,7 +6,6 @@ - -- cgit v1.2.3-54-g00ecf