package_rpm.bbclass: clamp timestamps
PATCH v2 1/1 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 <[email protected]>
--- meta/classes/package_rpm.bbclass | 1 + 1 file changed, 1 insertion(+)
meta/classes/package_rpm.bbclass +1 -0
@@ -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 + "'"
Signature · 1 line
2.7.4