Browse Source

Make bzdiff use mktemp instead of the deprecated tempfile command

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7441 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Matthew Burgess 19 years ago
parent
commit
ee75f416f1
2 changed files with 11 additions and 0 deletions
  1. 5 0
      chapter01/changelog.xml
  2. 6 0
      chapter06/bzip2.xml

+ 5 - 0
chapter01/changelog.xml

@@ -39,6 +39,11 @@
     <listitem>
       <para>March 18, 2006</para>
       <itemizedlist>
+        <listitem>
+          <para>[matthew] - Make bzdiff use mktemp instead of the deprecated
+          tempfile command.  Thanks to Chris Staub for the patch.  Fixes ticket
+          #1713.</para>
+        </listitem>
         <listitem>
           <para>[matthew] - Upgrade to flex-2.5.33.</para>
         </listitem>

+ 6 - 0
chapter06/bzip2.xml

@@ -56,6 +56,12 @@
 
 <screen><userinput>patch -Np1 -i ../&bzip2-bzgrep-patch;</userinput></screen>
 
+    <para>The bzdiff script still uses the deprecated
+    <command>tempfile</command> program. Update it to use
+    <command>mktemp</command> instead:</para>
+
+<screen><userinput>sed -i 's@tempfile -d /tmp -p bz@mktemp -p /tmp@' bzdiff</userinput></screen>
+
     <para>Prepare Bzip2 for compilation with:</para>
 
 <screen><userinput>make -f Makefile-libbz2_so