commit:     420196d3ea6c3610a6858ade463fd79a838941e6
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 22 19:43:39 2024 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Apr 22 20:31:12 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=420196d3

app-emulation/wine-vanilla: "fix" build with gcc-14 for old branches

Unsure how much is broken, but for wine-7+8 it doesn't seem worth
the effort to backport. No issues I can see with wine-9.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 app-emulation/wine-vanilla/wine-vanilla-7.0.2.ebuild | 4 ++++
 app-emulation/wine-vanilla/wine-vanilla-8.0.2.ebuild | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/app-emulation/wine-vanilla/wine-vanilla-7.0.2.ebuild 
b/app-emulation/wine-vanilla/wine-vanilla-7.0.2.ebuild
index ed678fefaa02..88eaa6f3c226 100644
--- a/app-emulation/wine-vanilla/wine-vanilla-7.0.2.ebuild
+++ b/app-emulation/wine-vanilla/wine-vanilla-7.0.2.ebuild
@@ -265,6 +265,10 @@ src_configure() {
        [[ $($(tc-getCC) ${LDFLAGS} -Wl,--version 2>/dev/null) == mold* ]] &&
                append-ldflags -fuse-ld=bfd
 
+       # >=wine-vanilla-9 has proper fixes and builds with gcc-14, but
+       # would rather not have to worry about fixing old branches
+       append-cflags $(test-flags-CC -Wno-error=incompatible-pointer-types)
+
        # build using upstream's way (--with-wine64)
        # order matters: configure+compile 64->32, install 32->64
        local -i bits

diff --git a/app-emulation/wine-vanilla/wine-vanilla-8.0.2.ebuild 
b/app-emulation/wine-vanilla/wine-vanilla-8.0.2.ebuild
index 972a6b64c743..f0641aa921fe 100644
--- a/app-emulation/wine-vanilla/wine-vanilla-8.0.2.ebuild
+++ b/app-emulation/wine-vanilla/wine-vanilla-8.0.2.ebuild
@@ -259,6 +259,10 @@ src_configure() {
        [[ $($(tc-getCC) ${LDFLAGS} -Wl,--version 2>/dev/null) == mold* ]] &&
                append-ldflags -fuse-ld=bfd
 
+       # >=wine-vanilla-9 has proper fixes and builds with gcc-14, but
+       # would rather not have to worry about fixing old branches
+       append-cflags $(test-flags-CC -Wno-error=incompatible-pointer-types)
+
        # build using upstream's way (--with-wine64)
        # order matters: configure+compile 64->32, install 32->64
        local -i bits

Reply via email to