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 <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2025-02-06 21:49:06 -08:00
parent 625c74321c
commit bdbc71f61a
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -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
}