[PATCH] cluster-glue: improve reproducibility


Yu, Mingli
 

From: Mingli Yu <mingli.yu@...>

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

Signed-off-by: Mingli Yu <mingli.yu@...>
---
.../recipes-cgl/cluster-glue/cluster-glue_1.0.12.bb | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/meta-cgl-common/recipes-cgl/cluster-glue/cluster-glue_1.0.12.bb b/meta-cgl-common/recipes-cgl/cluster-glue/cluster-glue_1.0.12.bb
index d9df83b..1e4529d 100644
--- a/meta-cgl-common/recipes-cgl/cluster-glue/cluster-glue_1.0.12.bb
+++ b/meta-cgl-common/recipes-cgl/cluster-glue/cluster-glue_1.0.12.bb
@@ -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
}

--
2.26.2

Join {yocto@lists.yoctoproject.org to automatically receive all group messages.