Ticket #9214: ipkg-utils_du_darwin_fix.2.patch

File ipkg-utils_du_darwin_fix.2.patch, 1.3 KB (added by dirtyfreebooter <openwrt-devel@…>, 7 years ago)

STAT variable now defined in host.mk

  • include/host.mk

     
    1010  -include $(TMP_DIR)/.host.mk 
    1111endif 
    1212 
    13 export TAR FIND 
     13export TAR FIND STAT 
    1414 
    1515ifneq ($(__host_inc),1) 
    1616__host_inc:=1 
     
    4848                FIND=`which gfind 2>/dev/null`; \ 
    4949                [ -n "$$FIND" -a -x "$$FIND" ] || FIND=`which find 2>/dev/null`; \ 
    5050                echo "FIND:=$$FIND" >> $@; \ 
     51                STAT=`which gstat 2>/dev/null`; \ 
     52                [ -n "$$STAT" -a -x "$$STAT" ] || STAT=`which stat 2>/dev/null`; \ 
     53                echo "STAT:=$$STAT" >> $@; \ 
    5154                echo "BASH:=$(shell which bash)" >> $@; \ 
    5255                if $$FIND -L /tmp -maxdepth 0 >/dev/null 2>/dev/null; then \ 
    5356                        echo "FIND_L=$$FIND -L \$$(1)" >>$@; \ 
  • tools/ipkg-utils/patches/180-add_installed_size.patch

     
    55 echo $CONTROL > $tmp_dir/tarX 
    66 ( cd $pkg_dir && $TAR $ogargs -X $tmp_dir/tarX -czf $tmp_dir/data.tar.gz . ) 
    77+ 
    8 +installed_size=`stat -c "%s" $tmp_dir/data.tar.gz` 
     8+installed_size=`$STAT -c "%s" $tmp_dir/data.tar.gz` 
    99+sed -i -e "s/^Installed-Size: .*/Installed-Size: $installed_size/" \ 
    1010+       $pkg_dir/$CONTROL/control 
    1111+