diff mbox series

[scarthgap,v2,2/2] jq: Stick to C17 until next release

Message ID 20260429073334.3587116-2-mikko.rapeli@linaro.org
State Under Review
Delegated to: Anuj Mittal
Headers show
Series [scarthgap,v2,1/2] onig: fix gcc 15 build | expand

Commit Message

Mikko Rapeli April 29, 2026, 7:33 a.m. UTC
From: Khem Raj <raj.khem@gmail.com>

Patches are sprinkled in master branch of jq but the backports
regresses tests, so its better to keep it at C17 for now.

Backport: changed from += to :append to apply to all target, native
and nativesdk builds.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
---
 meta-oe/recipes-devtools/jq/jq_1.7.1.bb | 3 +++
 1 file changed, 3 insertions(+)

v3: changed to -std=gnu17 patch instead of the in master reverted patch,
    changed from += to :append to apply to both target and native builds
diff mbox series

Patch

diff --git a/meta-oe/recipes-devtools/jq/jq_1.7.1.bb b/meta-oe/recipes-devtools/jq/jq_1.7.1.bb
index dfc8dda7ee..3b717ea99e 100644
--- a/meta-oe/recipes-devtools/jq/jq_1.7.1.bb
+++ b/meta-oe/recipes-devtools/jq/jq_1.7.1.bb
@@ -30,6 +30,9 @@  PACKAGECONFIG[oniguruma] = "--with-oniguruma,--without-oniguruma,onig"
 # enable if you want ptest running under valgrind
 PACKAGECONFIG[valgrind] = "--enable-valgrind,--disable-valgrind,valgrind"
 
+# Gets going with gcc-15 but See if it can be removed with next upgrade
+CFLAGS:append = " -std=gnu17"
+
 do_configure:append() {
 	sed -i -e "/^ac_cs_config=/ s:${WORKDIR}::g" ${B}/config.status
 }