mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 00:32:13 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
6dae7fae8b
commit
fb8087ab07
@@ -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 + "'"
|
||||
|
||||
Reference in New Issue
Block a user