From 51143f93debf35fb8c878bf09cbb63342ab596c4 Mon Sep 17 00:00:00 2001 From: NRK Date: Mon, 10 Mar 2025 13:53:55 +0000 Subject: [PATCH] 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 Closes: https://github.com/gentoo/gentoo/pull/40998 Signed-off-by: Sam James --- 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 71f4e7f3518f3..de92e4d8306bf 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 4aff172e02f63..871332b4c96c2 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)" \