瀏覽代碼

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
Matthew Burgess 19 年之前
父節點
當前提交
5e66a56483
共有 2 個文件被更改,包括 11 次插入0 次删除
  1. 4 0
      chapter01/changelog.xml
  2. 7 0
      chapter06/gzip.xml

+ 4 - 0
chapter01/changelog.xml

@@ -38,6 +38,10 @@
     <listitem>
     <listitem>
       <para>2006-09-09</para>
       <para>2006-09-09</para>
       <itemizedlist>
       <itemizedlist>
+        <listitem>
+          <para>[matthew] - Fix non-POSIX syntax in gzexe's calls to tail.
+          Fixes #1876.  Thanks to Robert Connolly for the report.</para>
+        </listitem>
         <listitem>
         <listitem>
           <para>[matthew] - Upgrade to linux-2.6.17.13.</para>
           <para>[matthew] - Upgrade to linux-2.6.17.13.</para>
         </listitem>
         </listitem>

+ 7 - 0
chapter06/gzip.xml

@@ -40,6 +40,13 @@
 
 
 <screen><userinput>patch -Np1 -i ../&gzip-security_fix-patch;</userinput></screen>
 <screen><userinput>patch -Np1 -i ../&gzip-security_fix-patch;</userinput></screen>
 
 
+    <para>The <command>gzexe</command> command calls <command>tail</command>
+    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:</para>
+
+<screen><userinput>sed -i 's/tail +/tail -n +/' gzexe.in</userinput></screen>
+
     <para>Prepare Gzip for compilation:</para>
     <para>Prepare Gzip for compilation:</para>
 
 
 <screen><userinput>./configure --prefix=/usr</userinput></screen>
 <screen><userinput>./configure --prefix=/usr</userinput></screen>