summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2018-01-25 17:03:11 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-29 08:49:50 +0000
commitfb8087ab072ab49d467d8751b4fa42fbc5a4873a (patch)
tree45621d3a59d57eab04ce0edf21d556b2e8c7dfae /meta/classes
parent6dae7fae8be8641cbc79a6bcda4723e2b2725fcf (diff)
downloadpoky-fb8087ab072ab49d467d8751b4fa42fbc5a4873a.tar.gz
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". (From OE-Core rev: f3beb683380ec0d9efa0d6af83205350afd1b2de) Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package_rpm.bbclass1
1 files changed, 1 insertions, 0 deletions
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 () {
678 cmd = cmd + " --define '_binary_payload w6T.xzdio'" 678 cmd = cmd + " --define '_binary_payload w6T.xzdio'"
679 cmd = cmd + " --define '_source_payload w6T.xzdio'" 679 cmd = cmd + " --define '_source_payload w6T.xzdio'"
680 cmd = cmd + " --define 'clamp_mtime_to_source_date_epoch 1'" 680 cmd = cmd + " --define 'clamp_mtime_to_source_date_epoch 1'"
681 cmd = cmd + " --define '_buildhost reproducible'"
681 if perfiledeps: 682 if perfiledeps:
682 cmd = cmd + " --define '__find_requires " + outdepends + "'" 683 cmd = cmd + " --define '__find_requires " + outdepends + "'"
683 cmd = cmd + " --define '__find_provides " + outprovides + "'" 684 cmd = cmd + " --define '__find_provides " + outprovides + "'"