mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-30 19:28:26 +02:00
add portability fixes from #1720
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7791 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
b6c8961dce
commit
6630372cc8
@ -62,7 +62,7 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
|
|||||||
|
|
||||||
ifeq ($(CONFIG_TARGET_ROOTFS_TGZ),y)
|
ifeq ($(CONFIG_TARGET_ROOTFS_TGZ),y)
|
||||||
define Image/mkfs/tgz
|
define Image/mkfs/tgz
|
||||||
tar -zcf $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-rootfs.tgz --owner=root --group=root -C $(BUILD_DIR)/root/ .
|
$(TAR) -zcf $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-rootfs.tgz --owner=root --group=root -C $(BUILD_DIR)/root/ .
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
|
@ -76,7 +76,7 @@ world: FORCE
|
|||||||
cd package; \
|
cd package; \
|
||||||
find . -maxdepth 2 -name Config.in | \
|
find . -maxdepth 2 -name Config.in | \
|
||||||
sed -e 's,/Config.in,,g' | \
|
sed -e 's,/Config.in,,g' | \
|
||||||
xargs -n1 make compile -C; \
|
xargs -n1 $(MAKE) compile -C; \
|
||||||
)
|
)
|
||||||
|
|
||||||
clean: FORCE
|
clean: FORCE
|
||||||
|
@ -3,14 +3,36 @@ This patch from aorlinsk fixes an issue with order in options passed to tar
|
|||||||
http://openwrt.org/forum/viewtopic.php?pid=8332#p8332
|
http://openwrt.org/forum/viewtopic.php?pid=8332#p8332
|
||||||
|
|
||||||
|
|
||||||
--- ipkg-utils-1.7/ipkg-build.orig 2005-06-14 23:48:36.000000000 +0200
|
Index: ipkg-utils-1.7/ipkg-build
|
||||||
+++ ipkg-utils-1.7/ipkg-build 2005-06-14 23:50:03.000000000 +0200
|
===================================================================
|
||||||
@@ -243,7 +243,7 @@
|
--- ipkg-utils-1.7.orig/ipkg-build 2007-06-30 14:19:16.519409000 +0200
|
||||||
|
+++ ipkg-utils-1.7/ipkg-build 2007-06-30 14:20:12.722921500 +0200
|
||||||
|
@@ -184,7 +184,7 @@
|
||||||
|
g ) group=$OPTARG
|
||||||
|
ogargs="$ogargs --group=$group"
|
||||||
|
;;
|
||||||
|
- c ) outer=tar
|
||||||
|
+ c ) outer=$TAR
|
||||||
|
;;
|
||||||
|
C ) noclean=1
|
||||||
|
;;
|
||||||
|
@@ -243,8 +243,8 @@
|
||||||
mkdir $tmp_dir
|
mkdir $tmp_dir
|
||||||
|
|
||||||
echo $CONTROL > $tmp_dir/tarX
|
echo $CONTROL > $tmp_dir/tarX
|
||||||
-( cd $pkg_dir && tar $ogargs -czf $tmp_dir/data.tar.gz . -X $tmp_dir/tarX )
|
-( cd $pkg_dir && tar $ogargs -czf $tmp_dir/data.tar.gz . -X $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/$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
|
rm $tmp_dir/tarX
|
||||||
|
|
||||||
|
echo "2.0" > $tmp_dir/debian-binary
|
||||||
|
@@ -254,7 +254,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
|
||||||
|
Loading…
Reference in New Issue
Block a user