commit:     364aba6590c88f383fe6851fe6d25f7e5a150c2d
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 23 14:42:48 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Thu Oct 23 14:48:37 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=364aba65

dev-qt/qtquick3d: work around build failure with gcc-16 in 6.9.3

Could not reproduce using (masked) Qt 6.10.0, so I assume it is fixed
there. Still worth working around in 6.9.3 not to block gcc-16 testing
as there's still a while to go before 6.10.1 and unmasking.

Closes: https://bugs.gentoo.org/964252
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-qt/qtquick3d/qtquick3d-6.9.3.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dev-qt/qtquick3d/qtquick3d-6.9.3.ebuild 
b/dev-qt/qtquick3d/qtquick3d-6.9.3.ebuild
index f10d6b6008f9..a352db80d085 100644
--- a/dev-qt/qtquick3d/qtquick3d-6.9.3.ebuild
+++ b/dev-qt/qtquick3d/qtquick3d-6.9.3.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 QT6_HAS_STATIC_LIBS=1
-inherit qt6-build
+inherit flag-o-matic qt6-build toolchain-funcs
 
 DESCRIPTION="Qt module and API for defining 3D content in Qt QuickTools"
 
@@ -46,6 +46,9 @@ PATCHES=(
 )
 
 src_configure() {
+       tc-is-gcc && [[ $(gcc-major-version) -ge 16 ]] &&
+               append-cxxflags -fno-devirtualize-speculatively #964252
+
        local mycmakeargs=(
                # TODO: if someone wants it, openxr should likely have its own
                # USE and be packaged rather than use the bundled copy (if use

Reply via email to