Skip to contentSkip to conversation

e2fsprogs_1.43.8.bb: improve reproducibility

PATCH New Juro Bystricky 1 participant 1 message Mar 3, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 e2fsprogs_1.43.8.bb: improve reproducibility

Various builds of e2fsprogs 1.43.7 package locales which may or may not have POT-Creation-Date removed. There is no obvious pattern, it affects different locales each time, the build being non-deterministic.

The root cause was tracked to non-deterministic time stamps (as GIT does not preserve file mktime), so some "make" rules sometimes fired, sometimes did not.

The remedy is to explicitly "touch" files that cause non-deterministic build.

[YOCTO #12516]

---
 meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.8.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.8.bb +3 -0
index ceaf171..4fa976d 100644
@@ -25,6 +25,9 @@ EXTRA_OECONF_darwin = "--libdir=${base_libdir} --sbindir=${base_sbindir} --enabl
 PACKAGECONFIG ??= ""
 PACKAGECONFIG[fuse] = '--enable-fuse2fs,--disable-fuse2fs,fuse'
 
+do_compile_prepend (){
+	find ${S}/po -type f -name "*.po" -exec touch {} +
+}
 
 do_install () {
 	oe_runmake 'DESTDIR=${D}' install
Signature · 1 line
2.7.4