[oe-commits] [openembedded-core] 09/22: package_rpm.bbclass: clamp timestamps

git at git.openembedded.org git at git.openembedded.org
Fri Jan 5 12:03:28 UTC 2018


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

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

commit 225a7156d1fb2fbffadf38e4f4e491f053358082
Author: Juro Bystricky <juro.bystricky at intel.com>
AuthorDate: Thu Jan 4 12:01:13 2018 -0800

    package_rpm.bbclass: clamp timestamps
    
    Improve binary reproducibility of RPM packages.
    Ensure timestamps in RPM packages are not later than the value
    of SOURCE_DATE_EPOCH. If SOURCE_DATE_EPOCH is not set,
    timestamps are not clamped.
    
    Signed-off-by: Juro Bystricky <juro.bystricky at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 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 1deaf83..b08608c 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -668,6 +668,7 @@ python do_package_rpm () {
     cmd = cmd + " --define '_build_id_links none'"
     cmd = cmd + " --define '_binary_payload w6T.xzdio'"
     cmd = cmd + " --define '_source_payload w6T.xzdio'"
+    cmd = cmd + " --define 'clamp_mtime_to_source_date_epoch 1'"
     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