[Bf-blender-cvs] [5043003584e] blender-v2.81-release: GNUmakefile: avoid using group/owner for source_archive
Campbell Barton
noreply at git.blender.org
Wed Oct 30 14:51:53 CET 2019
Commit: 5043003584e223d996e94abb1dc68e9d80d20d76
Author: Campbell Barton
Date: Thu Oct 31 00:45:15 2019 +1100
Branches: blender-v2.81-release
https://developer.blender.org/rB5043003584e223d996e94abb1dc68e9d80d20d76
GNUmakefile: avoid using group/owner for source_archive
Thanks to @JRottm for pointing out this issue.
===================================================================
M build_files/utils/make_source_archive.sh
===================================================================
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"
More information about the Bf-blender-cvs
mailing list