diff mbox series

[2/2] kea: remove more host paths

Message ID 20251218205318.1605573-2-ross.burton@arm.com
State New
Headers show
Series [1/2] ofono: add missing mkdir when creating new files | expand

Commit Message

Ross Burton Dec. 18, 2025, 8:53 p.m. UTC
If ccache is in use then the full path to ccache is resolved, and ends
up in both config.report and then config_report.cc.  This results in
build paths in libkea-cfgrpt.so.3.0.0, so we should also remove
HOSTTOOLS_DIR from these files to ensure both reproducibility and no
host contamination.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/recipes-connectivity/kea/kea_3.0.1.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-connectivity/kea/kea_3.0.1.bb b/meta/recipes-connectivity/kea/kea_3.0.1.bb
index 8729b1162ea..a4950e3bc16 100644
--- a/meta/recipes-connectivity/kea/kea_3.0.1.bb
+++ b/meta/recipes-connectivity/kea/kea_3.0.1.bb
@@ -57,7 +57,9 @@  do_configure:prepend() {
 
 # patch out build host paths for reproducibility
 do_compile:prepend:class-target() {
-    sed -i -e "s,${WORKDIR},,g" ${B}/config.report
+    sed -i -e "s,${WORKDIR},,g" -e "s,${HOSTTOOLS_DIR}/,,g" \
+        ${B}/config.report \
+        ${B}/src/lib/process/cfgrpt/config_report.cc
 }
 
 do_install:append() {