]> code.ossystems Code Review - openembedded-core.git/commit
reproducible_build: Work around caching issues
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 3 Oct 2021 19:12:26 +0000 (20:12 +0100)
committerSteve Sakoman <steve@sakoman.com>
Mon, 25 Oct 2021 23:28:19 +0000 (13:28 -1000)
commit257eb2ee73831afe84600235c967cbb4c2627e26
tree3274cce538d9fabf81783a52d3cacf74f5d88442
parentb7dfe230b9b40145f43fa0bd42be82ae41a3ef3e
reproducible_build: Work around caching issues

SOURCE_DATE_EPOCH can be expanded early in the parsing process before
the class extensions are applied. This can mean the directory pointed
to for the SDE can be incorrect until later in parsing. Cache the file
name in the cached value and allow it to dynamically update.

This isn't ideal but avoding expansion of the variable likely isn't
possible and I'm not sure how else to handle this. This works around
the issue until a better solution can be found.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 44dc97cd1223e4d2b635669627ec5f796838d42d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/reproducible_build.bbclass