From: Douglas Royds Date: Fri, 14 Sep 2018 02:58:16 +0000 (+1200) Subject: reproducible: Don't enforce existence of ${S} dir X-Git-Tag: uninative-2.3~271 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=75d5a9d72566aca7a9f08bea21523b3c66bddeae;p=openembedded-core.git reproducible: Don't enforce existence of ${S} dir Unnecessary. Signed-off-by: Douglas Royds Signed-off-by: Ross Burton --- diff --git a/meta/classes/reproducible_build.bbclass b/meta/classes/reproducible_build.bbclass index 42cb37b042..a81f249790 100644 --- a/meta/classes/reproducible_build.bbclass +++ b/meta/classes/reproducible_build.bbclass @@ -122,16 +122,12 @@ def get_source_date_epoch_from_youngest_file(d, sourcedir): return source_date_epoch python do_create_source_date_epoch_stamp() { - sourcedir = d.getVar('S') - if not os.path.isdir(sourcedir): - bb.warn("Unable to determine source_date_epoch! path:%s" % sourcedir) - return - epochfile = d.getVar('SDE_FILE') if os.path.isfile(epochfile): bb.debug(1, " path: %s reusing __source_date_epoch.txt" % epochfile) return + sourcedir = d.getVar('S') source_date_epoch = ( get_source_date_epoch_from_git(d, sourcedir) or get_source_date_epoch_from_known_files(d, sourcedir) or