tar bump patch && patch_it bug

Jerry Lundström jerry.lundstrom at it.su.se
Wed Feb 25 11:27:38 GMT 2004


Here is a patch for bumping tar 1.13.25 to 1.13.93 .

and on the side note, patch_it greps the filetype in the wrong way, 
could not use patch_it on this one since it thinks its a tarball.

but heres the patch for that too =) (against lunar 20040218 i think)

-------------- next part --------------
diff -urN tar-old/BUILD tar/BUILD
--- tar-old/BUILD	2002-10-23 17:23:50.000000000 +0000
+++ tar/BUILD	2004-02-25 10:11:53.000000000 +0000
@@ -1,11 +1,11 @@
 (
 
-  bzcat $SCRIPT_DIRECTORY/tar-dots.patch.bz2    | patch -p 0 &&
-  bzcat $SCRIPT_DIRECTORY/tar-socket.patch.bz2  | patch -p 0 &&
   bzcat $SCRIPT_DIRECTORY/tar-manpage.patch.bz2 | patch -p 0 &&
+  zcat $SOURCE_CACHE/$SOURCE2 | patch -p 1 &&
 
   gzip -9 tar.1 &&
 
+  autoconf &&
   ./configure  --build=$BUILD     \
                --prefix=/usr      \
                --libexecdir=/bin  \
diff -urN tar-old/DETAILS tar/DETAILS
--- tar-old/DETAILS	2002-10-23 17:23:50.000000000 +0000
+++ tar/DETAILS	2004-02-25 10:06:42.000000000 +0000
@@ -1,12 +1,13 @@
           MODULE=tar
-         VERSION=1.13.25
-#        VERSION=1.13
+         VERSION=1.13.93
           SOURCE=$MODULE-$VERSION.tar.gz
+         SOURCE2=$MODULE-$VERSION.patch.gz
 SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
    SOURCE_URL[0]=ftp://alpha.gnu.org/gnu/$MODULE/$SOURCE
+  SOURCE2_URL[0]=http://kenny.it.su.se/lunar/patches/$SOURCE2
         WEB_SITE=http://www.gnu.org/software/tar/tar.html
          ENTERED=20010922
-         UPDATED=20021023
+         UPDATED=20040225
            SHORT="tar creates GNU tar archives."
 cat << EOF
 GNU tar - Creates tar archives
-------------- next part --------------
--- edit.lunar.orig	2004-02-25 10:19:33.000000000 +0000
+++ edit.lunar	2004-02-25 10:20:45.000000000 +0000
@@ -18,15 +18,15 @@
 patch_it () { 
   verbose_msg "patch_it \"$1\" \"$2\"";
   
-  if [[ -n `echo $1 | grep .tar` ]] ; then
+  if [[ -n `echo $1 | grep "\.tar\$"` ]] ; then
     TARCMD="tar x -O"
   else
     TARCMD="cat"
   fi
 
-  if [[ -n `echo $1 | grep .bz2` ]] ; then
+  if [[ -n `echo $1 | grep "\.bz2\$"` ]] ; then
     GZCMD="bzcat"
-  elif [[ -n `echo $1 | grep .gz` ]] ; then
+  elif [[ -n `echo $1 | grep "\.gz\$"` ]] ; then
     GZCMD="zcat"
   else
     GZCMD="cat"


More information about the Lunar mailing list