summaryrefslogtreecommitdiffstats
path: root/meta/classes/reproducible_build.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-14 12:04:46 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-03 11:18:56 +0000
commitabcb68effdbd3440acef35684b1c6ec9a534d955 (patch)
tree95b8b2a35190c19f2944cee42fe9e3b113262d92 /meta/classes/reproducible_build.bbclass
parent59ad5783a596e2d1cd281f5134c06cb2f1f87949 (diff)
downloadpoky-abcb68effdbd3440acef35684b1c6ec9a534d955.tar.gz
reproducible_build: Drop obsolete sstate workaround
sstate has been sufficiently invalidated since this change was made, drop the workaround now. (From OE-Core rev: 81b602eaab686fa5a523c023285f8ffd7050888d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 7a497d8f30f21bafc78d0f22f3442a9cc99544cb) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/reproducible_build.bbclass')
-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 62655c2a5b..b44053d076 100644
--- a/meta/classes/reproducible_build.bbclass
+++ b/meta/classes/reproducible_build.bbclass
@@ -104,10 +104,6 @@ def get_source_date_epoch_value(d):
104 s = f.read() 104 s = f.read()
105 try: 105 try:
106 source_date_epoch = int(s) 106 source_date_epoch = int(s)
107 # workaround for old sstate with SDE_FILE content being 0 - use SOURCE_DATE_EPOCH_FALLBACK
108 if source_date_epoch == 0 :
109 source_date_epoch = int(d.getVar('SOURCE_DATE_EPOCH_FALLBACK'))
110 bb.warn("SOURCE_DATE_EPOCH value from sstate '%s' is deprecated/invalid. Reverting to SOURCE_DATE_EPOCH_FALLBACK '%s'" % (s, source_date_epoch))
111 except ValueError: 107 except ValueError:
112 bb.warn("SOURCE_DATE_EPOCH value '%s' is invalid. Reverting to SOURCE_DATE_EPOCH_FALLBACK" % s) 108 bb.warn("SOURCE_DATE_EPOCH value '%s' is invalid. Reverting to SOURCE_DATE_EPOCH_FALLBACK" % s)
113 source_date_epoch = int(d.getVar('SOURCE_DATE_EPOCH_FALLBACK')) 109 source_date_epoch = int(d.getVar('SOURCE_DATE_EPOCH_FALLBACK'))