summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-02-22 22:12:53 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-02-24 00:19:38 +0000
commitc4baddc0d098562df6b197f32f9bf5f9f6a9bbaa (patch)
treec00a309c18828e43d580d0884919198a8e2c93d3 /meta/classes
parent7e9c2f33d4ea9f6449dd56d19ff4522a9ddc2df1 (diff)
downloadpoky-c4baddc0d098562df6b197f32f9bf5f9f6a9bbaa.tar.gz
reproducible: Improve SOURCE_DATE_EPOCH_FALLBACK handling
Ensure the fallback value if used is written to the SDE file and hence stored in sstate, reducing any confusion within the code over '0' values. Bump the HASHEQUIV_VERSION since we've had a ton of trouble with ensuring this rolls out correctly on the autobuilder so others may too, take a clean slate for it. (From OE-Core rev: 53ffffa32b76330835287dfc05d4e4796841af08) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/reproducible_build.bbclass4
1 files changed, 0 insertions, 4 deletions
diff --git a/meta/classes/reproducible_build.bbclass b/meta/classes/reproducible_build.bbclass
index 9e806c0b75..f06e00d70d 100644
--- a/meta/classes/reproducible_build.bbclass
+++ b/meta/classes/reproducible_build.bbclass
@@ -84,10 +84,6 @@ python create_source_date_epoch_stamp() {
84 84
85 source_date_epoch = oe.reproducible.get_source_date_epoch(d, d.getVar('S')) 85 source_date_epoch = oe.reproducible.get_source_date_epoch(d, d.getVar('S'))
86 86
87 if source_date_epoch == 0 :
88 bb.debug(1, "source_date_epoch is 0, using SOURCE_DATE_EPOCH_FALLBACK instead.")
89 source_date_epoch = int(d.getVar('SOURCE_DATE_EPOCH_FALLBACK'))
90
91 bb.debug(1, "SOURCE_DATE_EPOCH: %d" % source_date_epoch) 87 bb.debug(1, "SOURCE_DATE_EPOCH: %d" % source_date_epoch)
92 bb.utils.mkdirhier(d.getVar('SDE_DIR')) 88 bb.utils.mkdirhier(d.getVar('SDE_DIR'))
93 with open(epochfile, 'w') as f: 89 with open(epochfile, 'w') as f: