public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/mupdf/, app-text/mupdf/files/
Date: Sat,  7 Dec 2024 01:30:23 +0000 (UTC)	[thread overview]
Message-ID: <1733534804.dbb84af6533b0c940d1973199fbe6d84e25589d1.sam@gentoo> (raw)

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 <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() {


             reply	other threads:[~2024-12-07  1:30 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-07  1:30 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-28  6:11 [gentoo-commits] repo/gentoo:master commit in: app-text/mupdf/, app-text/mupdf/files/ Joonas Niilola
2024-08-28  6:11 Joonas Niilola
2024-05-25  7:06 Arthur Zamarin
2024-05-25  7:06 Arthur Zamarin
2023-02-26  7:02 Joonas Niilola
2023-01-04  5:50 Sam James
2022-12-29 20:50 Florian Schmaus
2022-12-29 20:50 Florian Schmaus
2022-07-19  7:41 Florian Schmaus
2022-06-30 13:33 Florian Schmaus
2021-12-04  8:20 Joonas Niilola
2021-04-14 22:03 Sam James
2020-10-13 23:21 Sam James
2020-08-14  4:21 Sam James
2020-01-21 23:04 Sergei Trofimovich
2019-11-26 14:25 Jory Pratt
2019-05-07  2:39 Virgil Dupras
2019-02-19 21:02 Virgil Dupras
2018-12-16 20:24 Virgil Dupras
2018-08-27 19:53 Virgil Dupras
2018-04-12  1:03 Thomas Deutschmann
2018-01-28  9:53 Michael Weber
2017-03-06 22:12 Michael Weber
2017-02-09 21:10 Michael Weber
2017-01-23  0:31 Michael Weber
2016-06-04 19:46 Michael Weber
2015-08-10 22:52 Michael Weber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1733534804.dbb84af6533b0c940d1973199fbe6d84e25589d1.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox