Skip to contentSkip to conversation

gobject-introspection: improve reproducibility

PATCH New Juro Bystricky 1 participant 1 message Oct 24, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gobject-introspection: improve reproducibility

Remove cross-compiler wrappers from the package, these contain numerous build host references.
The wrappers are only needed for cross-compiling.

[YOCTO #11705]

---
 .../gobject-introspection/gobject-introspection_1.52.1.bb        | 9 +++++++++
 1 file changed, 9 insertions(+)
meta/recipes-gnome/gobject-introspection/gobject-introspection_1.52.1.bb +9 -0
index 605f02e..3fe71a3 100644
@@ -177,3 +177,12 @@ gi_ldsoconf_sysroot_preprocess () {
 	echo "echo ${libdir} >> ${STAGING_DIR_TARGET}${sysconfdir}/ld.so.conf" >> $dest
 	chmod 755 $dest
 }
+
+# Remove wrapper files from the package, only used for cross-compiling
+PACKAGE_PREPROCESS_FUNCS += "gi_package_preprocess"
+gi_package_preprocess() {
+	rm -f ${PKGD}${bindir}/g-ir-scanner-qemuwrapper
+	rm -f ${PKGD}${bindir}/g-ir-scanner-wrapper
+	rm -f ${PKGD}${bindir}/g-ir-compiler-wrapper
+	rm -f ${PKGD}${bindir}/g-ir-scanner-lddwrapper
+}
Signature · 1 line
2.7.4