Skip to contentSkip to conversation

package_rpm.bbclass: improve reproducibility of RPM packages

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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".

---
 meta/classes/package_rpm.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/package_rpm.bbclass +1 -0
index b08608c..15fed01 100644
@@ -669,6 +669,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 + "'"
Signature · 1 line
2.7.4