commit: 0085d53ad5ebce2b62daf7927e3814f46f021257 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Fri Jun 20 13:54:46 2025 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Fri Jun 20 14:02:35 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0085d53a
app-office/lyx: fix compilation with GCC 15 Closes: https://bugs.gentoo.org/958491 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> app-office/lyx/files/lyx-2.4.3-fix-gcc15.patch | 21 +++++++++++++++++++++ app-office/lyx/lyx-2.4.3.ebuild | 3 ++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/app-office/lyx/files/lyx-2.4.3-fix-gcc15.patch b/app-office/lyx/files/lyx-2.4.3-fix-gcc15.patch new file mode 100644 index 000000000000..2724f3cbdfe8 --- /dev/null +++ b/app-office/lyx/files/lyx-2.4.3-fix-gcc15.patch @@ -0,0 +1,21 @@ +https://src.fedoraproject.org/rpms/lyx/blob/rawhide/f/0002-Fix-compilation-on-gcc-15.patch +From: =?UTF-8?q?Jos=C3=A9=20Matos?= <[email protected]> +Date: Fri, 17 Jan 2025 07:39:51 +0000 +Subject: [PATCH] Fix compilation on gcc-15 + +Suggested by gcc itself. :-) + +(cherry picked from commit 527d3d669cf60d306f6c6a08a880fa4609df2262) +--- a/src/mathed/MathParser.cpp ++++ b/src/mathed/MathParser.cpp +@@ -78,6 +78,7 @@ following hack as starting point to write some macros: + #include "support/debug.h" + #include "support/docstream.h" + ++#include <cstdint> + #include <sstream> + + //#define FILEDEBUG +-- +2.48.1 + diff --git a/app-office/lyx/lyx-2.4.3.ebuild b/app-office/lyx/lyx-2.4.3.ebuild index 84dc15f7a88f..d28780cf47f6 100644 --- a/app-office/lyx/lyx-2.4.3.ebuild +++ b/app-office/lyx/lyx-2.4.3.ebuild @@ -3,7 +3,7 @@ EAPI=8 -PYTHON_COMPAT=( python3_{10..13} ) +PYTHON_COMPAT=( python3_{11..13} ) inherit desktop font optfeature python-single-r1 cmake xdg @@ -90,6 +90,7 @@ FONT_SUFFIX="ttf" PATCHES=( "${FILESDIR}"/lyx-2.4.0-fix-hunspell.patch + "${FILESDIR}"/lyx-2.4.3-fix-gcc15.patch # Try first with xdg-open before hardcoded commands # Patch from Debian using a similar approach to Fedora "${FILESDIR}"/lyx-2.4.0-prefer-xdg-open.patch
