commit: dbb84af6533b0c940d1973199fbe6d84e25589d1 Author: steveo314 <sschaefering <AT> gmail <DOT> com> AuthorDate: Tue Dec 3 14:48:28 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Dec 7 01:26:44 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbb84af6
app-text/mupdf: fix build w/ GCC 15 Patch to allow this version of mupdf to compile using gcc15/C23 as unprototyped functions were removed, so this onflicted with the definition in fg_init_x11.c. Closes: https://github.com/gentoo/gentoo/pull/39590 Closes: https://bugs.gentoo.org/944028 Signed-off-by: steveo314 <sschaefering <AT> gmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> app-text/mupdf/files/mupdf-1.24.8-c23.patch | 17 +++++++++++++++++ app-text/mupdf/mupdf-1.24.8.ebuild | 1 + 2 files changed, 18 insertions(+) diff --git a/app-text/mupdf/files/mupdf-1.24.8-c23.patch b/app-text/mupdf/files/mupdf-1.24.8-c23.patch new file mode 100644 index 000000000000..bfb6b16acd9b --- /dev/null +++ b/app-text/mupdf/files/mupdf-1.24.8-c23.patch @@ -0,0 +1,17 @@ +From aaf110d35ea191ef75407e6af6c9d142c123b6ad Mon Sep 17 00:00:00 2001 +From: Tor Andersson <[email protected]> +Date: Tue, 26 Nov 2024 20:16:35 +0100 +Subject: [PATCH] egl: fix fgPlatformDestroyContext prototype for C23 + +C23 removes unprototyped functions, so this conflicted with the definition +in fg_init_x11.c. +--- a/thirdparty/freeglut/src/egl/fg_init_egl.h ++++ b/thirdparty/freeglut/src/egl/fg_init_egl.h +@@ -28,6 +28,6 @@ + + extern void fghPlatformInitializeEGL(); + extern void fghPlatformCloseDisplayEGL(); +-extern void fgPlatformDestroyContext(); ++extern void fgPlatformDestroyContext(SFG_PlatformDisplay pDisplay, SFG_WindowContextType MContext); + + #endif diff --git a/app-text/mupdf/mupdf-1.24.8.ebuild b/app-text/mupdf/mupdf-1.24.8.ebuild index 591a55b5259c..47ef1b036bfd 100644 --- a/app-text/mupdf/mupdf-1.24.8.ebuild +++ b/app-text/mupdf/mupdf-1.24.8.ebuild @@ -57,6 +57,7 @@ PATCHES=( "${FILESDIR}"/${PN}-1.24.1-openssl-x11.patch # General cross fixes from Debian (refreshed) "${FILESDIR}"/${PN}-1.21.1-fix-aliasing-violation.patch + "${FILESDIR}"/${PN}-1.24.8-c23.patch ) src_prepare() {
