]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Oct 2021 12:57:14 +0000 (13:57 +0100)
commit44dc97cd1223e4d2b635669627ec5f796838d42d
tree6cbe8f6048e34efaeda73d9593d6d0232f898615
parentbe32692c627a14509de5eb3834e7321c3c5faf25
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>
meta/classes/reproducible_build.bbclass