-
Type: Improvement
-
Resolution: Won't Do
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Build
-
Labels:None
-
Server Development Platform
-
Fully Compatible
If you run the following command twice:
$ python3 ./buildscripts/scons.py --variables-files=etc/scons/mongodbtoolchain_v3_gcc.vars --separate-debug --install-mode=hygienic --implicit-cache --build-fast-and-loose=on archive-dist -j300 --debug=explain
Then the second build will recreate the dist archive, even though it should be viewed as up to date. The explain output looks like:
scons: done reading SConscript files. scons: Building targets ... scons: rebuilding `mongodb-dist.tgz' because: `build/aib_make_archive.py' changed `install-dist' changed `/bin/tar' changed Building package mongodb-dist.tgz from install-dist scons: done building targets.
Now, the SCons --debug=explain output is notoriously unreliable. I suspect that what is actually happening is that the ordering of the file arguments to the tar command is unstable. But we should fix whatever is causing these to rebuild.