commit:     bb8bc1ef97092820084ae19a97c06732e22b5837
Author:     Z. Liu <zhixu.liu <AT> gmail <DOT> com>
AuthorDate: Tue Dec 10 08:39:45 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Dec 11 02:47:36 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb8bc1ef

sys-process/runit: build w/ -std=gnu17

workaround for gcc 15, will remove after gcc 15 is released officially.

Closes: https://bugs.gentoo.org/946137
Signed-off-by: Z. Liu <zhixu.liu <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/39659
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-process/runit/runit-2.1.2-r6.ebuild | 1 +
 sys-process/runit/runit-2.2.0.ebuild    | 1 +
 2 files changed, 2 insertions(+)

diff --git a/sys-process/runit/runit-2.1.2-r6.ebuild 
b/sys-process/runit/runit-2.1.2-r6.ebuild
index 968540e0b513..3cc37408a6ee 100644
--- a/sys-process/runit/runit-2.1.2-r6.ebuild
+++ b/sys-process/runit/runit-2.1.2-r6.ebuild
@@ -45,6 +45,7 @@ src_prepare() {
 src_configure() {
        use static && append-ldflags -static
 
+       append-flags -std=gnu17  # XXX https://bugs.gentoo.org/946137, 
workaround for gcc15
        echo "$(tc-getCC) ${CFLAGS}"  > conf-cc || die
        echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die
        sed -i -e "s:ar cr:$(tc-getAR) cr:" print-ar.sh || die

diff --git a/sys-process/runit/runit-2.2.0.ebuild 
b/sys-process/runit/runit-2.2.0.ebuild
index f4f1af1d4246..5f369e745738 100644
--- a/sys-process/runit/runit-2.2.0.ebuild
+++ b/sys-process/runit/runit-2.2.0.ebuild
@@ -37,6 +37,7 @@ src_prepare() {
 src_configure() {
        use static && append-ldflags -static
 
+       append-flags -std=gnu17  # XXX https://bugs.gentoo.org/946137, 
workaround for gcc15
        echo "$(tc-getCC) ${CFLAGS}"  > conf-cc || die
        echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die
        sed -i -e "s:ar cr:$(tc-getAR) cr:" print-ar.sh || die

Reply via email to