Author: jim
Date: 2006-02-20 00:29:38 -0700 (Mon, 20 Feb 2006)
New Revision: 1410

Added:
   trunk/bzip2/bzip2-1.0.3-remove_tempfile-1.patch
Modified:
   trunk/
Log:
 [EMAIL PROTECTED]:  jim | 2006-02-19 23:21:54 -0800
 Added: bzip2-1.0.3-remove_tempfile-1.patch



Property changes on: trunk
___________________________________________________________________
Name: svk:merge
   - cc2644d5-6cf8-0310-b111-c40428001e49:/patches:1710
e59974df-c20a-0410-b7e1-d7eaf1be8828:/patches:1450
   + cc2644d5-6cf8-0310-b111-c40428001e49:/patches:1710
e59974df-c20a-0410-b7e1-d7eaf1be8828:/patches:1452

Added: trunk/bzip2/bzip2-1.0.3-remove_tempfile-1.patch
===================================================================
--- trunk/bzip2/bzip2-1.0.3-remove_tempfile-1.patch                             
(rev 0)
+++ trunk/bzip2/bzip2-1.0.3-remove_tempfile-1.patch     2006-02-20 07:29:38 UTC 
(rev 1410)
@@ -0,0 +1,44 @@
+Submitted By: Jim Gifford (patches at jg555 dot com)
+Date: 2006-02-19
+Initial Package Version: 1.0.3
+Origin: Jim Gifford
+Upstream Status: Sent
+Description: Removes Dependency of tempfile
+ 
+--- bzip2-1.0.3/bzdiff.orig    2004-10-09 11:29:42.000000000 +0000
++++ bzip2-1.0.3/bzdiff 2006-02-20 07:15:01.000000000 +0000
+@@ -37,10 +37,6 @@
+       echo "Usage: $prog [${comp}_options] file [file]"
+       exit 1
+ fi
+-tmp=`tempfile -d /tmp -p bz` || {
+-      echo 'cannot create a temporary file' >&2
+-      exit 1
+-}
+ set $FILES
+ if test $# -eq 1; then
+       FILE=`echo "$1" | sed 's/.bz2$//'`
+@@ -53,10 +49,10 @@
+                 case "$2" in
+               *.bz2)
+                       F=`echo "$2" | sed 's|.*/||;s|.bz2$||'`
+-                        bzip2 -cdfq "$2" > $tmp
+-                        bzip2 -cdfq "$1" | $comp $OPTIONS - $tmp
++                        bzip2 -cdfq "$2"  > /tmp/"$F".$$
++                        bzip2 -cdfq "$1" | $comp $OPTIONS - /tmp/"$F".$$ | 
sed -e "s|Files - and /tmp/"$F".$$|Files $1 and $2|g"
+                         STAT="$?"
+-                      /bin/rm -f $tmp;;
++                      /bin/rm -f /tmp/"$F".$$;;
+ 
+                 *)      bzip2 -cdfq "$1" | $comp $OPTIONS - "$2"
+                         STAT="$?";;
+@@ -65,7 +61,8 @@
+               *.bz2)
+                         bzip2 -cdfq "$2" | $comp $OPTIONS "$1" -
+                         STAT="$?";;
+-                *)      $comp $OPTIONS "$1" "$2"
++                *)      $comp $OPTIONS "$1" "$2" | sed -e "s|Files - and 
/tmp/"$F".$$|Files $1 and $2|g"
++
+                         STAT="$?";;
+                 esac;;
+       esac

-- 
http://linuxfromscratch.org/mailman/listinfo/patches
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to