diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-10-10 22:29:09 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-10-10 22:29:09 +0000 |
commit | 0a36264eb552380c0322be5f00ce856772e962d6 (patch) | |
tree | 648e553ad20cc196fbb634bae43716383a60068f | |
parent | 0d3f8a5e7f3fedd8b2d53bb94486f3027c2f5323 (diff) | |
download | upstream-0a36264eb552380c0322be5f00ce856772e962d6.tar.gz upstream-0a36264eb552380c0322be5f00ce856772e962d6.tar.bz2 upstream-0a36264eb552380c0322be5f00ce856772e962d6.zip |
add portability patch for ipkg-utils
SVN-Revision: 5042
-rw-r--r-- | openwrt/tools/ipkg-utils/patches/140-portability.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/openwrt/tools/ipkg-utils/patches/140-portability.patch b/openwrt/tools/ipkg-utils/patches/140-portability.patch new file mode 100644 index 0000000000..5ba06b3a45 --- /dev/null +++ b/openwrt/tools/ipkg-utils/patches/140-portability.patch @@ -0,0 +1,50 @@ +diff -ur ipkg.old/ipkg-build ipkg.dev/ipkg-build +--- ipkg.old/ipkg-build Tue Oct 10 22:52:58 2006 ++++ ipkg.dev/ipkg-build Tue Oct 10 22:56:32 2006 +@@ -11,6 +11,8 @@ + + version=1.0 + ++TAR="${TAR:-$(which tar)}" ++ + ipkg_extract_value() { + sed -e "s/^[^:]*:[[:space:]]*//" + } +@@ -184,7 +186,7 @@ + g ) group=$OPTARG + ogargs="$ogargs --group=$group" + ;; +- c ) outer=tar ++ c ) outer=$TAR + ;; + C ) noclean=1 + ;; +@@ -243,8 +245,8 @@ + mkdir $tmp_dir + + echo $CONTROL > $tmp_dir/tarX +-( cd $pkg_dir && tar $ogargs -X $tmp_dir/tarX -czf $tmp_dir/data.tar.gz . ) +-( cd $pkg_dir/$CONTROL && tar $ogargs -czf $tmp_dir/control.tar.gz . ) ++( cd $pkg_dir && $TAR $ogargs -X $tmp_dir/tarX -czf $tmp_dir/data.tar.gz . ) ++( cd $pkg_dir/$CONTROL && $TAR $ogargs -czf $tmp_dir/control.tar.gz . ) + rm $tmp_dir/tarX + + echo "2.0" > $tmp_dir/debian-binary +@@ -254,7 +256,7 @@ + if [ "$outer" = "ar" ] ; then + ( cd $tmp_dir && ar -crf $pkg_file ./debian-binary ./data.tar.gz ./control.tar.gz ) + else +- ( cd $tmp_dir && tar -zcf $pkg_file ./debian-binary ./data.tar.gz ./control.tar.gz ) ++ ( cd $tmp_dir && $TAR -zcf $pkg_file ./debian-binary ./data.tar.gz ./control.tar.gz ) + fi + + rm $tmp_dir/debian-binary $tmp_dir/data.tar.gz $tmp_dir/control.tar.gz +diff -ur ipkg.old/ipkg-make-index ipkg.dev/ipkg-make-index +--- ipkg.old/ipkg-make-index Tue Oct 10 22:52:58 2006 ++++ ipkg.dev/ipkg-make-index Tue Oct 10 22:57:53 2006 +@@ -1,4 +1,4 @@ +-#!/usr/bin/python ++#!/usr/bin/env python + # $Id: ipkg-make-index,v 1.20 2003/10/30 02:32:09 jamey Exp $ + + import sys, os, posixpath |