From bdbc71f61a86b598fc72bcc167e6bf1f7cc33b08 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 6 Feb 2025 21:49:06 -0800 Subject: [PATCH] gphoto: Fix regex to remove --sysroot from CC in config.h Ensure that the string --syroot=/a/b/c is deleted but not the closing quote This fixes QA Issue: File /usr/bin/gphoto2 in package gphoto2 contains reference to TMPDIR [buildpaths] Signed-off-by: Khem Raj --- meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb b/meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb index 1dc2a1fc34..c53504378a 100644 --- a/meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb +++ b/meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb @@ -20,5 +20,5 @@ EXTRA_OECONF += "--with-jpeg-prefix=${STAGING_INCDIR} \ " do_configure:append() { - sed -i -e 's#${RECIPE_SYSROOT}##g' ${B}/config.h + sed -i -E 's/--sysroot=[^ "]*([" ])/\1/g' ${B}/config.h }