From dbb84af6533b0c940d1973199fbe6d84e25589d1 Mon Sep 17 00:00:00 2001 From: steveo314 Date: Tue, 3 Dec 2024 14:48:28 +0000 Subject: 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 Signed-off-by: Sam James --- 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(+) create mode 100644 app-text/mupdf/files/mupdf-1.24.8-c23.patch (limited to 'app-text') 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 +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() { -- cgit v1.2.3-65-gdbad