From f3beb683380ec0d9efa0d6af83205350afd1b2de Mon Sep 17 00:00:00 2001 From: Juro Bystricky Date: Thu, 25 Jan 2018 17:03:11 -0800 Subject: package_rpm.bbclass: improve reproducibility of RPM packages The RPM packages contain BUILDHOST based on the current build host. This breaks reproducibility if the same package is build on two different hosts. To improve reproducible builds, we always set BUILDHOST as "reproducible". Signed-off-by: Juro Bystricky Signed-off-by: Ross Burton --- meta/classes/package_rpm.bbclass | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/classes/package_rpm.bbclass') diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 34ef88a1fb..af64ef62c5 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass @@ -678,6 +678,7 @@ python do_package_rpm () { cmd = cmd + " --define '_binary_payload w6T.xzdio'" cmd = cmd + " --define '_source_payload w6T.xzdio'" cmd = cmd + " --define 'clamp_mtime_to_source_date_epoch 1'" + cmd = cmd + " --define '_buildhost reproducible'" if perfiledeps: cmd = cmd + " --define '__find_requires " + outdepends + "'" cmd = cmd + " --define '__find_provides " + outprovides + "'" -- cgit 1.2.3-korg