hooks/distfiles: do not respect perms/owner when extracting via tar.

With user namespaces and uid/gid == 0, tar will try to respect them
and will fail with EINVAL.
This commit is contained in:
Juan RP 2015-03-05 20:25:04 +01:00
parent 0035968141
commit a786acf4d2

View file

@ -63,7 +63,7 @@ hook() {
case ${cursufx} in
txz|tbz|tlz|tgz)
tar xf $srcdir/$curfile -C $extractdir
tar -x --no-same-permissions --no-same-owner -f $srcdir/$curfile -C $extractdir
if [ $? -ne 0 ]; then
msg_error "$pkgver: extracting $curfile into $XBPS_BUILDDIR.\n"
fi
@ -77,7 +77,7 @@ hook() {
fi
;;
tar)
tar xf $srcdir/$curfile -C $extractdir
tar -x --no-same-permissions --no-same-owner -f $srcdir/$curfile -C $extractdir
if [ $? -ne 0 ]; then
msg_error "$pkgver: extracting $curfile into $XBPS_BUILDDIR.\n"
fi