summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsteveo314 <sschaefering@gmail.com>2024-12-03 14:48:28 +0000
committerSam James <sam@gentoo.org>2024-12-07 01:26:44 +0000
commitdbb84af6533b0c940d1973199fbe6d84e25589d1 (patch)
tree6d6da2076aa7d1613e17a3baa0595568832c143e /app-text
parentdev-util/diffoscope: add 284 (diff)
downloadgentoo-dbb84af6533b0c940d1973199fbe6d84e25589d1.tar.gz
gentoo-dbb84af6533b0c940d1973199fbe6d84e25589d1.tar.bz2
gentoo-dbb84af6533b0c940d1973199fbe6d84e25589d1.zip
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@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r--app-text/mupdf/files/mupdf-1.24.8-c23.patch17
-rw-r--r--app-text/mupdf/mupdf-1.24.8.ebuild1
2 files changed, 18 insertions, 0 deletions
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 <tor@ccxvii.net>
+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() {