]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
vala: Fix on target wrapper buildpaths issue
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Jul 2022 16:34:19 +0000 (17:34 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Jul 2022 23:07:50 +0000 (00:07 +0100)
The on target wrapper contains paths from the host build. Remove them.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/vala/vala.inc

index 90e0b77de0cb365953a093174f724714b106f3ac..974baa33f5b021320531768c24123b74eebbbb97 100644 (file)
@@ -60,3 +60,9 @@ vapigen_sysroot_preprocess() {
 }
 
 SSTATE_SCAN_FILES += "vapigen-wrapper"
+
+PACKAGE_PREPROCESS_FUNCS += "vala_package_preprocess"
+
+vala_package_preprocess () {
+       sed -i -e 's:${RECIPE_SYSROOT}::g;' ${PKGD}${bindir}/vapigen-wrapper
+}