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

File ipkg-build-tar-preserve-permissions.patch, 528 bytes (added by ermo <rune.morling+openwrt@…, 8 years ago)

ipkg-build -- preserve permissions when creating data.tar.gz

  • ipkg-utils-1.7/ipkg-build

    old new  
    246246mkdir $tmp_dir 
    247247 
    248248echo $CONTROL > $tmp_dir/tarX 
    249 ( cd $pkg_dir && $TAR $ogargs -X $tmp_dir/tarX -czf $tmp_dir/data.tar.gz . ) 
     249# Preserve permissions when creating data.tar.gz as non-root user (-p). 
     250( cd $pkg_dir && $TAR $ogargs -X $tmp_dir/tarX -czpf $tmp_dir/data.tar.gz . ) 
    250251( cd $pkg_dir/$CONTROL && $TAR $ogargs -czf $tmp_dir/control.tar.gz . ) 
    251252rm $tmp_dir/tarX 
    252253