gphoto: Fix the sed expression to remove --sysroot from config.h
PATCH 1/1 gphoto: Fix the sed expression to remove --sysroot from config.h
--- meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb +1 -1
@@ -20,5 +20,5 @@ EXTRA_OECONF += "--with-jpeg-prefix=${STAGING_INCDIR} \ " do_configure:append() { - sed -i -E 's/--sysroot=[^ "]*([" ])/\1/g' ${B}/config.h + sed -i 's/--sysroot[^ "]*//g' ${B}/config.h }
Hi Khem Raj,
I want to ask If --sysroot= empty, what does it affect? Does it cause any build/runtime errors? I just want to know to backport your patch to our layers.
and do you plan to backport this patch to Scarthgap and Styhead?
Thanks.
Quoted 5 lines · Hieu Van Nguyen via lists.openembedded.org
Hi Khem Raj,
I want to ask If --sysroot= empty, what does it affect? Does it cause any build/runtime errors?
Yes it causes errors because it also deletes terminating quote character of BUILD_CC String
Quoted 3 lines
I just want to know to backport your patch to our layers. and do you plan to backport this patch to Scarthgap and Styhead?
I am not planning to but if you need to then test it there and send a backport patch
Quoted 13 lines
Thanks.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#115543):
https://lists.openembedded.org/g/openembedded-devel/message/115543
Mute This Topic: https://lists.openembedded.org/mt/111328249/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
oh sorry, I understand this patch is to fix your commit before:
https://git.openembedded.org/meta-openembedded/commit/meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb?id=bdbc71f61a86b598fc72bcc167e6bf1f7cc33b08
I meant do we really need to remove "--sysrooot="? What happens when I remove ${RECIPE_SYSROOT} only?
Quoted 3 lines
#define
HAVE_CC"...... -Werror=format-security --sysroot="
Quoted 7 lines · Hieu Van Nguyen via lists.openembedded.org
oh sorry, I understand this patch is to fix your commit before:
https://git.openembedded.org/meta-openembedded/commit/meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb?id=bdbc71f61a86b598fc72bcc167e6bf1f7cc33b08
I meant do we really need to remove "--sysrooot="? What happens when I remove ${RECIPE_SYSROOT} only?#define HAVE_CC "...... -Werror=format-security --sysroot="
At the first sight it looks like it used only as part of the string output when invoking "gphoto2 -v" - otherwise this macro seems to be unused.