Skip to contentSkip to conversation

package_rpm.bbclass: clamp timestamps

PATCH New Juro Bystricky 1 participant 1 message Jan 4, 2018

lore
Share & tools
lore
#0 lore raw

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.

---
 meta/classes/package_rpm.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/package_rpm.bbclass +1 -0
index 1deaf83..b08608c 100644
@@ -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