mirror of
https://github.com/mirror/make.git
synced 2025-01-13 22:00:08 +08:00
Sanitize tar file ownership, mode, and order
For reproducibility ensure all files in the dist tar file are owned by root, and sorted by name. Force the mode on all files to be writable by the owner and not writable by group or user, by default. Remove unnecessary execute permissions from build_w32.bat. Recommended by Tzvetelin Katchov <katchov@gnu.org>.
This commit is contained in:
parent
80e9a422e4
commit
896908180e
0
build_w32.bat
Executable file → Normal file
0
build_w32.bat
Executable file → Normal file
@ -230,6 +230,11 @@ get-doc/make-stds.texi get-doc/fdl.texi:
|
||||
# Extra configuration checks. #
|
||||
# ---------------------------- #
|
||||
|
||||
# Make the dist file contents more regular, if we're using GNU tar.
|
||||
# Suggested by Tzvetelin Katchov <katchov@gnu.org>
|
||||
|
||||
export TAR_OPTIONS := --mode=u+w,go-w --owner=0 --group=0 --numeric-owner --sort=name
|
||||
|
||||
# When I released 4.3 somehow the INSTALL file was missing.
|
||||
# When I tried to build it again, it was there. I have no idea what happened
|
||||
# but add a new check to be sure it doesn't happen again.
|
||||
|
Loading…
Reference in New Issue
Block a user