This is an automated email from the ASF dual-hosted git repository.

vinodkone pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit d3352889d075bb84ed86c69e8acd9b52697d0a1b
Author: Vinod Kone <vinodk...@gmail.com>
AuthorDate: Thu Sep 10 15:21:37 2020 -0500

    Added `--no-same-owner` option to tar command.
    
    This ensures extracted tarballs are owned by root when running the
    build as root.
    
    Review: https://reviews.apache.org/r/72861
---
 3rdparty/Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/3rdparty/Makefile.am b/3rdparty/Makefile.am
index 23f49ec..26099e2 100644
--- a/3rdparty/Makefile.am
+++ b/3rdparty/Makefile.am
@@ -178,7 +178,7 @@ CLEAN_EXTRACTED =           \
 # which cause the packages to get extracted as necessary. We also
 # apply any patches as appropriate.
 %-stamp: %.tar.gz
-       gzip -d -c $^ | tar xf -
+       gzip -d -c $^ | tar xf - --no-same-owner
        test ! -e $(srcdir)/$*.patch || patch -d $* -p1 <$(srcdir)/$*.patch
        touch $@
 
@@ -191,7 +191,7 @@ CLEAN_EXTRACTED =           \
 CSI_STAMPS = $(CSI_V0)-stamp $(CSI_V1)-stamp
 $(CSI_STAMPS): csi-%-stamp: csi-%.tar.gz
        $(MKDIR_P) csi-$*
-       gzip -d -c $^ | (cd csi-$* && tar xf -)
+       gzip -d -c $^ | (cd csi-$* && tar xf - --no-same-owner)
        test ! -e $(srcdir)/csi-$*.patch || \
          patch -d csi-$*/spec-$* -p1 <$(srcdir)/csi-$*.patch
        touch $@

Reply via email to