]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
apr: remove space before the -std=gnu23 from apr_rules.mk master
authorMartin Jansa <martin.jansa@gmail.com>
Tue, 14 Apr 2026 12:42:10 +0000 (14:42 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 14 Apr 2026 13:27:26 +0000 (14:27 +0100)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/apr/apr_1.7.6.bb

index 9a7a8ddd74bdd9266f399dfa99c8134373967684..8ad3756b3a0dfb55ba0b65bd139b51459d97810f 100644 (file)
@@ -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() {