commit:     51143f93debf35fb8c878bf09cbb63342ab596c4
Author:     NRK <nrk <AT> disroot <DOT> org>
AuthorDate: Mon Mar 10 13:53:55 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar 11 02:16:20 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51143f93

dev-lang/uasm: fix build on newer gcc

ideally the source should be fixed upstream. but many of the
existing fixes have already been reported to upstream, both by
myself and others [1] [2] and upstream has not been responsive.
so just patch it up with -std=gnu17 for now.

1: https://github.com/Terraspace/UASM/issues/197
2: https://github.com/Terraspace/UASM/pulls
Closes: https://bugs.gentoo.org/951108
Signed-off-by: NRK <nrk <AT> disroot.org>
Closes: https://github.com/gentoo/gentoo/pull/40998
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-lang/uasm/uasm-2.56.2.ebuild | 2 ++
 dev-lang/uasm/uasm-2.57.ebuild   | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/dev-lang/uasm/uasm-2.56.2.ebuild b/dev-lang/uasm/uasm-2.56.2.ebuild
index 71f4e7f3518f..de92e4d8306b 100644
--- a/dev-lang/uasm/uasm-2.56.2.ebuild
+++ b/dev-lang/uasm/uasm-2.56.2.ebuild
@@ -30,6 +30,8 @@ src_compile() {
        append-cflags -fcommon
        # https://github.com/Terraspace/UASM/issues/197
        append-cflags -Wno-error=incompatible-pointer-types
+       # BUG: 951108
+       append-cflags -std=gnu17
 
        emake -f gccLinux64.mak \
                CC="$(tc-getCC)" \

diff --git a/dev-lang/uasm/uasm-2.57.ebuild b/dev-lang/uasm/uasm-2.57.ebuild
index 4aff172e02f6..871332b4c96c 100644
--- a/dev-lang/uasm/uasm-2.57.ebuild
+++ b/dev-lang/uasm/uasm-2.57.ebuild
@@ -31,6 +31,8 @@ src_compile() {
        append-cflags -fcommon
        # BUG: https://github.com/Terraspace/UASM/issues/197
        append-cflags -Wno-error=incompatible-pointer-types
+       # BUG: 951108
+       append-cflags -std=gnu17
 
        emake -f Makefile-Linux-GCC-64.mak \
                CC="$(tc-getCC)" \

Reply via email to