Skip to contentSkip to conversation

gphoto2: Move the sed op on config.h to do_compile

PATCH New Khem Raj 1 participant 1 message May 11, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 gphoto2: Move the sed op on config.h to do_compile

Current code still fails on some AB nodes.

---
 meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb +2 -2
index 7b0f0df2e5..63993bfbeb 100644
@@ -19,6 +19,6 @@ EXTRA_OECONF += "--with-jpeg-prefix=${STAGING_INCDIR} \
                  --without-cdk \
 "
 
-do_configure:append() {
-	sed -i -E "s/--sysroot=[^'\" ]+//g" ${B}/config.h
+do_compile:prepend() {
+	sed -i -e 's/--sysroot=[^ "]*//g' ${B}/config.h
 }