From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: raj.khem@gmail.com, openembedded-core@lists.openembedded.org
Cc: Khem Raj <khem.raj@oss.qualcomm.com>
Subject: Re: [OE-core] [PATCH] strace: Remove -std=gnu23 from ptests makefile to fix reproducibility
Date: Tue, 14 Apr 2026 12:05:55 +0100 [thread overview]
Message-ID: <0a4b6eeedf06877e96bc7508327d76305bf0ce7f.camel@linuxfoundation.org> (raw)
In-Reply-To: <20260414093340.4166638-1-khem.raj@oss.qualcomm.com>
On Tue, 2026-04-14 at 02:33 -0700, Khem Raj via lists.openembedded.org wrote:
> 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
Sadly this doesn't quite work since " -std=gnu23" gets added to the
line and hence there would still a whitespace difference :(.
I've send another version of this which handles the whitespace (and
combines with the previous sed).
Cheers,
Richard
prev parent reply other threads:[~2026-04-14 11:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-14 9:33 [PATCH] strace: Remove -std=gnu23 from ptests makefile to fix reproducibility Khem Raj
2026-04-14 11:05 ` Richard Purdie [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0a4b6eeedf06877e96bc7508327d76305bf0ce7f.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=khem.raj@oss.qualcomm.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=raj.khem@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox