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