2.6.24 moved watchdog drivers to drivers/watchdog
[openwrt.git] / tools / ipkg-utils / patches / 120-build_tar.patch
1 This patch from aorlinsk fixes an issue with order in options passed to tar
2
3 http://openwrt.org/forum/viewtopic.php?pid=8332#p8332
4
5
6 Index: ipkg-utils-1.7/ipkg-build
7 ===================================================================
8 --- ipkg-utils-1.7.orig/ipkg-build 2007-06-30 14:19:16.519409000 +0200
9 +++ ipkg-utils-1.7/ipkg-build 2007-06-30 14:20:12.722921500 +0200
10 @@ -184,7 +184,7 @@
11 g ) group=$OPTARG
12 ogargs="$ogargs --group=$group"
13 ;;
14 - c ) outer=tar
15 + c ) outer=$TAR
16 ;;
17 C ) noclean=1
18 ;;
19 @@ -243,8 +243,8 @@
20 mkdir $tmp_dir
21
22 echo $CONTROL > $tmp_dir/tarX
23 -( cd $pkg_dir && tar $ogargs -czf $tmp_dir/data.tar.gz . -X $tmp_dir/tarX )
24 -( cd $pkg_dir/$CONTROL && tar $ogargs -czf $tmp_dir/control.tar.gz . )
25 +( cd $pkg_dir && $TAR $ogargs -X $tmp_dir/tarX -czf $tmp_dir/data.tar.gz . )
26 +( cd $pkg_dir/$CONTROL && $TAR $ogargs -czf $tmp_dir/control.tar.gz . )
27 rm $tmp_dir/tarX
28
29 echo "2.0" > $tmp_dir/debian-binary
30 @@ -254,7 +254,7 @@
31 if [ "$outer" = "ar" ] ; then
32 ( cd $tmp_dir && ar -crf $pkg_file ./debian-binary ./data.tar.gz ./control.tar.gz )
33 else
34 - ( cd $tmp_dir && tar -zcf $pkg_file ./debian-binary ./data.tar.gz ./control.tar.gz )
35 + ( cd $tmp_dir && $TAR -zcf $pkg_file ./debian-binary ./data.tar.gz ./control.tar.gz )
36 fi
37
38 rm $tmp_dir/debian-binary $tmp_dir/data.tar.gz $tmp_dir/control.tar.gz
This page took 0.045611 seconds and 5 git commands to generate.