From 40e866481ea8e6deebcac1cb28bbe6a9e33a4df9 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Sat, 31 Oct 2026 06:01:25 -0400 Subject: [PATCH] dev-qt/qttools: fix 6.12.x build with libcxx23 Signed-off-by: Ionen Wolkens --- .../qttools/files/qttools-6.12.0-litehtml-libcxx23.patch | 9 +++++++++ dev-qt/qttools/qttools-6.12.0.ebuild | 1 + dev-qt/qttools/qttools-6.12.9999.ebuild | 1 + dev-qt/qttools/qttools-6.9999.ebuild | 1 + 4 files changed, 12 insertions(+) create mode 100644 dev-qt/qttools/files/qttools-6.12.0-litehtml-libcxx23.patch diff --git a/dev-qt/qttools/files/qttools-6.12.0-litehtml-libcxx23.patch b/dev-qt/qttools/files/qttools-6.12.0-litehtml-libcxx23.patch new file mode 100644 index 0000000000000..caf579aa6d830 --- /dev/null +++ b/dev-qt/qttools/files/qttools-6.12.0-litehtml-libcxx23.patch @@ -0,0 +1,9 @@ +This worked for older qttools with libcxx23 because el_font.cpp used to +include html.h rather than document.h, which then transitively included +stdlib. +--- a/src/assistant/qlitehtml/src/3rdparty/litehtml/src/el_font.cpp ++++ b/src/assistant/qlitehtml/src/3rdparty/litehtml/src/el_font.cpp +@@ -1,2 +1,3 @@ ++#include + #include "el_font.h" + #include "document.h" diff --git a/dev-qt/qttools/qttools-6.12.0.ebuild b/dev-qt/qttools/qttools-6.12.0.ebuild index aebfcac88a560..1e8376a7684c6 100644 --- a/dev-qt/qttools/qttools-6.12.0.ebuild +++ b/dev-qt/qttools/qttools-6.12.0.ebuild @@ -68,6 +68,7 @@ DEPEND=" PATCHES=( "${FILESDIR}"/${PN}-6.12.0-litehtml-no-unity.patch + "${FILESDIR}"/${PN}-6.12.0-litehtml-libcxx23.patch ) src_prepare() { diff --git a/dev-qt/qttools/qttools-6.12.9999.ebuild b/dev-qt/qttools/qttools-6.12.9999.ebuild index ec864510aaaef..b91218e289b91 100644 --- a/dev-qt/qttools/qttools-6.12.9999.ebuild +++ b/dev-qt/qttools/qttools-6.12.9999.ebuild @@ -68,6 +68,7 @@ DEPEND=" PATCHES=( "${FILESDIR}"/${PN}-6.12.0-litehtml-no-unity.patch + "${FILESDIR}"/${PN}-6.12.0-litehtml-libcxx23.patch ) src_prepare() { diff --git a/dev-qt/qttools/qttools-6.9999.ebuild b/dev-qt/qttools/qttools-6.9999.ebuild index ec864510aaaef..b91218e289b91 100644 --- a/dev-qt/qttools/qttools-6.9999.ebuild +++ b/dev-qt/qttools/qttools-6.9999.ebuild @@ -68,6 +68,7 @@ DEPEND=" PATCHES=( "${FILESDIR}"/${PN}-6.12.0-litehtml-no-unity.patch + "${FILESDIR}"/${PN}-6.12.0-litehtml-libcxx23.patch ) src_prepare() {