public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] strace: Remove -std=gnu23 from ptests makefile to fix reproducibility
@ 2026-04-14  9:33 Khem Raj
  2026-04-14 11:05 ` [OE-core] " Richard Purdie
  0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2026-04-14  9:33 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

with updated ax_prog_cc_for_build.m4 macros, -std=gnu23 can be added to
CC_FOR_BUILD based upon what autoconf-2.73 detects gcc on host to support
which could vary depending upon build host. This gets into Makefile which
is shipped with ptests on tatget. Since we are on gcc-15 this option is
not really needed on target as gcc15 defaults to c23

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta/recipes-devtools/strace/strace_6.19.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/strace/strace_6.19.bb b/meta/recipes-devtools/strace/strace_6.19.bb
index 9dcf9d14d5..e7c96262ce 100644
--- a/meta/recipes-devtools/strace/strace_6.19.bb
+++ b/meta/recipes-devtools/strace/strace_6.19.bb
@@ -52,6 +52,8 @@ do_install_ptest() {
 	sed -e 's/^srcdir = .*/srcdir = ..\/..\/ptest\/tests/' \
 	    -e "/^TEST_LOG_DRIVER =/s|(top_srcdir)|(top_builddir)|" \
 	    -i ${D}/${PTEST_PATH}/${TESTDIR}/Makefile
+	# avoid reproducibility issue, -std=gnu23 is used only on hosts with gcc-14 and newer
+	sed -i '/^CC_FOR_BUILD=/s/-std=gnu23//g' ${D}/${PTEST_PATH}/${TESTDIR}/Makefile
 }
 
 RDEPENDS:${PN}-ptest += "make coreutils grep gawk sed locale-base-en-us"


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-04-14 11:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-14  9:33 [PATCH] strace: Remove -std=gnu23 from ptests makefile to fix reproducibility Khem Raj
2026-04-14 11:05 ` [OE-core] " Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox