Ticket #7667: ipkg-build-tar-preserve-permissions_v2.patch

File ipkg-build-tar-preserve-permissions_v2.patch, 562 bytes (added by ermo <rune.morling+openwrt@…>, 7 years ago)

Updated ipkg-build patch; apply in backfire/build_dir/host/ with 'patch -p0 < ipkg-build-tar-preserve-permissions_v2.patch'

  • ipkg-utils-1.7/ipkg-build

    old new  
    249249mkdir $tmp_dir 
    250250 
    251251echo $CONTROL > $tmp_dir/tarX 
    252 ( cd $pkg_dir && $TAR $ogargs -X $tmp_dir/tarX -czf $tmp_dir/data.tar.gz . ) 
     252# Preserve permissions (-p) when creating data.tar.gz as non-root user 
     253( cd $pkg_dir && $TAR $ogargs -X $tmp_dir/tarX -czpf $tmp_dir/data.tar.gz . ) 
    253254 
    254255installed_size=`du -b $tmp_dir/data.tar.gz | cut -f1` 
    255256sed -i -e "s/^Installed-Size: .*/Installed-Size: $installed_size/" \