]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
kea: remove more host paths
authorRoss Burton <ross.burton@arm.com>
Thu, 18 Dec 2025 20:53:18 +0000 (20:53 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 22 Dec 2025 17:54:58 +0000 (17:54 +0000)
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>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/kea/kea_3.0.1.bb

index 8729b1162ea04c1ce62b1d1dc86f254591906806..a4950e3bc16ce1bf87694486f6ba3b8166120ce8 100644 (file)
@@ -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() {