Skip to content

Commit ae62c2e

Browse files
committed
Ensure that tar sets file modified time correctly
For some reason, when the source dist archive is built, the file modified times can be in the future. By adding the `--touch` argument, all files have their modified time set to the extraction time. This prevents the "infinite loop make" behavior described in #14440 These changes also update the arguments passed to `tar` to use full arguments that are easier to understand, as well as removes the need for the `xzcat` command, as all build enviroments should have `xz` support built into GNU `tar`.
1 parent 81caabc commit ae62c2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packaging/generic-unix/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ dist:
3838
@elixir --version
3939
@echo '--------------------------------------------------'
4040
@echo
41-
xzcat $(SOURCE_DIST_FILE) | tar -xf -
41+
tar --touch --xz --extract --file $(SOURCE_DIST_FILE)
4242

4343
# web-manpages are not used by generic-unix but by `make release` in the
4444
# Umbrella. Those manpages are copied to www.rabbitmq.com

0 commit comments

Comments
 (0)