[oe-commits] [openembedded-core] 17/31: package_rpm.bbclass: improve reproducibility of RPM packages

git at git.openembedded.org git at git.openembedded.org
Sun Jan 28 10:27:13 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit bb8363bb6bdeef74ae699a7b2ee87bc001c16f74
Author: Juro Bystricky <juro.bystricky at intel.com>
AuthorDate: Thu Jan 25 17:03:11 2018 -0800

    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 <juro.bystricky at intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/package_rpm.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 34ef88a..af64ef6 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 + "'"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list