]> code.ossystems Code Review - openembedded-core.git/commit
classes/reproducible_build: Read SDE file later
authorJoshua Watt <jpewhacker@gmail.com>
Fri, 31 Jan 2020 19:04:16 +0000 (13:04 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 2 Feb 2020 16:57:23 +0000 (16:57 +0000)
commitb3313a10a3eb93f0a3710a35de0404fb49cd6202
tree8347d610b8e586b9c1823a2a146b011cf206d1b3
parent472507b8c446dcfe3cb08deecfbca4e5928ca504
classes/reproducible_build: Read SDE file later

Defers the resolution of the SOURCE_DATE_EPOCH until the variable needs
to be actually realized with a value. The previous method of loading the
value in anonymous python had issues because it could occur before other
anonymous python functions that affect the location of the epoch file,
such as when a recipe uses AUTOINC/AUTOREV or allarch.bbclass.

Also adds more logging to help diagnose issues in the future.

[YOCTO #13763]

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/reproducible_build.bbclass