From 5e66a56483c855080e97473d8726688a401649ff Mon Sep 17 00:00:00 2001 From: Matthew Burgess Date: Sat, 9 Sep 2006 17:17:18 +0000 Subject: [PATCH] Fix non-POSIX syntax in gzexe's calls to tail. Fixes #1876. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7787 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 4 ++++ chapter06/gzip.xml | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index c5d0f7f8c..cdf767764 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -38,6 +38,10 @@ 2006-09-09 + + [matthew] - Fix non-POSIX syntax in gzexe's calls to tail. + Fixes #1876. Thanks to Robert Connolly for the report. + [matthew] - Upgrade to linux-2.6.17.13. diff --git a/chapter06/gzip.xml b/chapter06/gzip.xml index 9cb4b8437..4782bcce6 100644 --- a/chapter06/gzip.xml +++ b/chapter06/gzip.xml @@ -40,6 +40,13 @@ patch -Np1 -i ../&gzip-security_fix-patch; + The gzexe command calls tail + with options that do not conform to newer versions of the POSIX standard, + and therefore are not accepted by current versions of Coreutils. Fix this + problem by issuing the following command: + +sed -i 's/tail +/tail -n +/' gzexe.in + Prepare Gzip for compilation: ./configure --prefix=/usr