[Fontconfig] [PATCH] Make the cache filenames determinstic
chris at chris-lamb.co.uk
Mon Oct 29 20:10:48 UTC 2018
Whilst working on the Reproducible Builds effort, we noticed that
fontconfig generates cache files with unreproducible/non-deterministic
This is a supplement to the changes added in f098adac54ab where we
ensured that the checksums themselves were determistic but the files
that were stored in the cache directory are currently being given
"random" names via uuid(3)'s uuid_generate_random function, thus
any images that generate such files have different contents on every
This patch changes the behaviour of the cache directory filename
calculation to be based on the "source" directory name, rather than
being entirely random.
An alternative solution could be to continue to use the previous
uuid_generate_random function but use this alternative codepath if the
SOURCE_DATE_EPOCH environment variable was determined to be
present via getenv(3).
This work was sponsored by Tails and tracked in Debian in #864082.
src/fccache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
chris-lamb.co.uk / @lolamby
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1770 bytes
Desc: not available
More information about the Fontconfig