diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-10-30 16:45:15 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-10-30 16:51:15 +0300 |
commit | 5043003584e223d996e94abb1dc68e9d80d20d76 (patch) | |
tree | 3c728d5407ab579387df8933400b57f356e2fb76 /build_files | |
parent | 60d0446db34a4250c6cd2881f5dd71a08f7a8867 (diff) |
GNUmakefile: avoid using group/owner for source_archive
Thanks to @JRottm for pointing out this issue.
Diffstat (limited to 'build_files')
-rwxr-xr-x | build_files/utils/make_source_archive.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/build_files/utils/make_source_archive.sh b/build_files/utils/make_source_archive.sh index ab940f7305f..cafd1c31486 100755 --- a/build_files/utils/make_source_archive.sh +++ b/build_files/utils/make_source_archive.sh @@ -51,19 +51,26 @@ echo "OK" # Create the tarball +# +# Without owner/group args, extracting the files as root will +# use ownership from the tar archive. cd "$blender_srcdir" echo -n "Creating archive: \"$BASE_DIR/$TARBALL\" ..." -tar --transform "s,^,blender-$VERSION/,g" \ +tar \ + --transform "s,^,blender-$VERSION/,g" \ --use-compress-program="xz -9" \ --create \ --file="$BASE_DIR/$TARBALL" \ - --files-from="$BASE_DIR/$MANIFEST" + --files-from="$BASE_DIR/$MANIFEST" \ + --owner=0 \ + --group=0 + echo "OK" # Create checksum file cd "$BASE_DIR" -echo -n "Creating checksum: \"$BASE_DIR/$TARBALL.md5sum\" ..." +echo -n "Creating checksum: \"$BASE_DIR/$TARBALL.md5sum\" ..." md5sum "$TARBALL" > "$TARBALL.md5sum" echo "OK" |