[Scons-dev] scons cache

Chris BeHanna chris at behanna.org
Thu Jan 24 10:01:58 EST 2013


On Jan 24, 2013, at 02:09 , Tom Tanner (BLOOMBERG/ LONDON) <ttanner2 at bloomberg.net> wrote:


> Assumuning (and this is a biggish assumption but works for our setup) that the scons cache is on the same filing system as your build directory, so that it would be possible to do hard links, is there any subtle disadvantage of hard-linking rather than copying build targets?


The biggest danger is that someone will alter a file in their build tree, which also alters the file in your scons_cache, but does not alter the MD5 hash by which the file is found in the cache. I.e., cache corruption.

This is especially pernicious if you hard-link files from your cache into your build output tree and use them to, say, build an RPM, which will strip them without asking you first.

DAMHIK.

--
Chris BeHanna
chris at behanna.org



More information about the Scons-dev mailing list