>From e5bff25ce56bfea041fda938cfd99e7e8528eedb Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Tue, 20 May 2014 21:45:06 +0200 Subject: [PATCH] Add a 2-second sleep to make the build-version.c dependencies (which are generated really quickly) differ in timestamp when making a release build --- rules.make | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rules.make b/rules.make index e9bf3b3..2b09f7f 100644 --- a/rules.make +++ b/rules.make @@ -551,8 +551,19 @@ profiler.c: $(SRCDIR)profiler.scm $(SRCDIR)common-declarations.scm $(bootstrap-lib) stub.c: $(SRCDIR)stub.scm $(SRCDIR)common-declarations.scm $(bootstrap-lib) +# The sleep here is required because these generated files are +# created, and build-version.c is translated so quickly, that the time +# difference is less than a second. This causes problems when +# untarring release tarballs onto FSes with low-precision timestamps, +# like Haiku's default BFS. build-version.c: $(SRCDIR)build-version.scm buildbranch buildid \ $(SRCDIR)buildversion buildtag.h +ifdef WINDOWS_SHELL + @timeout 2 +else + @echo "Sleeping 2 seconds to ensure date difference" + @sleep 2 +endif $(bootstrap-lib) define declare-bootstrap-import-lib -- 1.7.10.4