Skip to contentSkip to conversation

cluster-glue: improve reproducibility

PATCH Superseded Yu, Mingli 1 participant 1 message Sep 27, 2020

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Yu, Mingli

author
#0 lore raw

PATCH 1/1 cluster-glue: improve reproducibility

From: Mingli Yu <[email protected]>

Remove the build path info from the files such as drac5, kdumpcheck and etc to improve reproducibility.

---
 .../recipes-cgl/cluster-glue/cluster-glue_1.0.12.bb        | 7 +++++++
 1 file changed, 7 insertions(+)
meta-cgl-common/recipes-cgl/cluster-glue/cluster-glue_1.0.12.bb +7 -0
index d9df83b..1e4529d 100644
@@ -62,6 +62,13 @@ do_install_append() {
 	install -d ${D}${sysconfdir}/tmpfiles.d
 	install -m 0644 ${WORKDIR}/tmpfiles ${D}${sysconfdir}/tmpfiles.d/${PN}.conf
 
+	# remove buildpath
+	tempdirs=$(grep -Rn ${HOSTTOOLS_DIR} ${D}/* | awk -F: '{print $1}' | uniq)
+	for temdir in $tempdirs
+	do
+	    sed -i "s:${HOSTTOOLS_DIR}/::g" $temdir
+	done
+
     oe_multilib_header heartbeat/glue_config.h
 }
 
Signature · 1 line
2.26.2