Skip to content

Commit 1858e01

Browse files
committed
Normalized source timestamps after configure to avoid make dist errors
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent 4e66ea2 commit 1858e01

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

build-scripts/bootstrap-tarballs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ git rev-parse HEAD >"$BASEDIR"/output/core-commitID
9696
# Configure in order to run "make dist", deleted later.
9797
log_debug "Running configure on core repository..."
9898
run_and_print_on_failure ./configure -C
99+
# Normalize source timestamps to avoid errors like:
100+
# configure: error: newly created file is older than distributed files!
101+
find . -exec touch -t 200001010000.00 {} +
99102
log_debug "Running make dist on core repository..."
100103
run_and_print_on_failure make dist
101104
mv cfengine-3.*.tar.gz "$BASEDIR"/output/tarballs/
@@ -109,6 +112,9 @@ git rev-parse HEAD >"$BASEDIR"/output/masterfiles-commitID
109112
# Configure in order to run "make dist", deleted later.
110113
log_debug "Running configure on masterfiles repository..."
111114
run_and_print_on_failure ./configure
115+
# Normalize source timestamps to avoid errors like:
116+
# configure: error: newly created file is older than distributed files!
117+
find . -exec touch -t 200001010000.00 {} +
112118
log_debug "Running make dist on masterfiles repository..."
113119
run_and_print_on_failure make dist # source tarball
114120
log_debug "Running make tar-package on masterfiles repository..."

0 commit comments

Comments
 (0)