diff mbox series

apr: remove space before the -std=gnu23 from apr_rules.mk

Message ID 20260414124210.427846-1-martin.jansa@gmail.com
State Accepted, archived
Commit 274ce0c0d73fd82b63c522580aed9dbac51ba09c
Headers show
Series apr: remove space before the -std=gnu23 from apr_rules.mk | expand

Commit Message

Martin Jansa April 14, 2026, 12:42 p.m. UTC
From: Martin Jansa <martin.jansa@gmail.com>

When -std=gnu23 is added to CC_FOR_BUILD it's with additional space
we need to remove the space as well to avoid the difference between
the build where -std=gnu23 was added and removed by sed and wasn't
added at all like in:
https://valkyrie.yocto.io/pub/repro-fail/oe-reproducible-20260414-82oogy25/packages/diff-html/

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
---
 meta/recipes-support/apr/apr_1.7.6.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-support/apr/apr_1.7.6.bb b/meta/recipes-support/apr/apr_1.7.6.bb
index 9a7a8ddd74..8ad3756b3a 100644
--- a/meta/recipes-support/apr/apr_1.7.6.bb
+++ b/meta/recipes-support/apr/apr_1.7.6.bb
@@ -88,7 +88,7 @@  do_install:append() {
 	oe_multilib_header apr.h
 	install -d ${D}${datadir}/apr
 	# 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}${datadir}/build-1/apr_rules.mk
+	sed -i '/^CC_FOR_BUILD/s/\s-std=gnu23//g' ${D}${datadir}/build-1/apr_rules.mk
 }
 
 do_install:append:class-target() {