summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_rpm.bbclass
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2018-01-04 12:01:13 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-05 11:55:35 +0000
commit528ea78fb289d88f0a75f41d59eaad924b4590f2 (patch)
treee30abeaae3fcbbf5b05aacc6f44392733ab4b4c8 /meta/classes/package_rpm.bbclass
parent5c7f48c9c03f73c0379302206880cc3e7443ec67 (diff)
downloadpoky-528ea78fb289d88f0a75f41d59eaad924b4590f2.tar.gz
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. (From OE-Core rev: 225a7156d1fb2fbffadf38e4f4e491f053358082) Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-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 1deaf832da..b08608c846 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -668,6 +668,7 @@ python do_package_rpm () {
668 cmd = cmd + " --define '_build_id_links none'" 668 cmd = cmd + " --define '_build_id_links none'"
669 cmd = cmd + " --define '_binary_payload w6T.xzdio'" 669 cmd = cmd + " --define '_binary_payload w6T.xzdio'"
670 cmd = cmd + " --define '_source_payload w6T.xzdio'" 670 cmd = cmd + " --define '_source_payload w6T.xzdio'"
671 cmd = cmd + " --define 'clamp_mtime_to_source_date_epoch 1'"
671 if perfiledeps: 672 if perfiledeps:
672 cmd = cmd + " --define '__find_requires " + outdepends + "'" 673 cmd = cmd + " --define '__find_requires " + outdepends + "'"
673 cmd = cmd + " --define '__find_provides " + outprovides + "'" 674 cmd = cmd + " --define '__find_provides " + outprovides + "'"