]> 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)
committerAnuj Mittal <anuj.mittal@intel.com>
Tue, 26 Oct 2021 00:11:58 +0000 (08:11 +0800)
commit7e3752dcce2236a4d1ad046b1df2edf8ee5619b4
treee272862921f4ae026b3d4b970cd62b3a37816ee0
parentef37fca2f434eba22918e5eab4f2d5e2d499fc14
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: Anuj Mittal <anuj.mittal@intel.com>
meta/classes/reproducible_build.bbclass