]> 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>
Sat, 8 Feb 2020 13:29:10 +0000 (13:29 +0000)
commit10515e5f7e38edbc4430e2599062a9ce6fdb42a8
tree8c59f0eba2c6a2f00ae17e8e7aad6264752303a3
parent4d470f48f7fb5e05fba1ca3a59fb4f85d910026e
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]

(From OE-Core rev: b3313a10a3eb93f0a3710a35de0404fb49cd6202)

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