Created attachment 895007 [details, diff] set (CMAKE_CXX_STANDARD 20) Poppler changed to c++20 around 3 months ago: https://gitlab.freedesktop.org/poppler/poppler/-/commit/d8ae3ba659c71b4f5913ecf74d525461bb831366 Last month GooString was switched from it's own startsWith/endsWith to the std::string functions new in c++20. https://gitlab.freedesktop.org/poppler/poppler/-/commit/fbb64544e5ea25ac9b1bd25b48043d074efe9cd9 This was released as part of poppler-24.05 and now everything not yet switched to c++20 is broken. See also: Bug 931917 - same thing happend to inkscape. Fix for calligra is easy: Just switch to c++20 in CMakeLists.txt, similar to the already included c++17 patch. After adding the attached patch to /etc/portage/patches calligra was successfully build with gcc-14, no further changes needed.
https://invent.kde.org/office/calligra/-/commit/7ef44c6864cc77abb529e11f83e01ae7dc7d5061
Created attachment 895155 [details, diff] calligra-3.2.1-poppler-24.05-lut_7ef44c6864cc77abb529e11f83e01ae7dc7d5061.patch Upstream commit 7ef44c6864cc77abb529e11f83e01ae7dc7d5061 does not apply cleanly, I adjusted it.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87e54ac491002dcb3fa18a57110d700c12dcb7a7 commit 87e54ac491002dcb3fa18a57110d700c12dcb7a7 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2024-06-06 17:45:07 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2024-06-06 18:09:25 +0000 app-office/calligra: Fix build with >=app-text/poppler-24.05 Thanks-to: Attila Tóth Closes: https://bugs.gentoo.org/933490 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> app-office/calligra/calligra-3.2.1-r9.ebuild | 1 + .../files/calligra-3.2.1-poppler-24.05.0.patch | 42 ++++++++++++++++++++++ 2 files changed, 43 insertions(+)