commit:     4e846acf550c7c510a2ccbd04f546c3baa225789
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Oct  6 16:14:26 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Oct  6 16:20:01 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qt.git/commit/?id=4e846acf

dev-qt/qtwebengine: fix has_version default-libcxx test for Clang

We moved the flag to sys-devel/clang-common to prepare for proper
config file support (which is backported to 15.0.2, although it's
going to be better in 16.x).

Go for the hack for now, but keep the bug open as we want to
switch to the proper link test from the LLVM ebuilds.

Bug: https://bugs.gentoo.org/875641
Bug: https://bugs.gentoo.org/875563
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-qt/qtwebengine/qtwebengine-5.15.6.9999.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dev-qt/qtwebengine/qtwebengine-5.15.6.9999.ebuild 
b/dev-qt/qtwebengine/qtwebengine-5.15.6.9999.ebuild
index d817b83e..6a89caec 100644
--- a/dev-qt/qtwebengine/qtwebengine-5.15.6.9999.ebuild
+++ b/dev-qt/qtwebengine/qtwebengine-5.15.6.9999.ebuild
@@ -199,8 +199,10 @@ src_prepare() {
        fi
 
        # src/3rdparty/gn fails with libc++ due to passing of 
`-static-libstdc++`
-       if tc-is-clang && has_version 'sys-devel/clang[default-libcxx]'; then
-               eapply "${FILESDIR}/${PN}-5.15.2_p20210521-clang-libc++.patch"
+       if tc-is-clang ; then
+               if has_version 'sys-devel/clang[default-libcxx(-)]' || 
has_version 'sys-devel/clang-common[default-libcxx(-)]' ; then
+                       eapply 
"${FILESDIR}/${PN}-5.15.2_p20210521-clang-libc++.patch"
+               fi
        fi
 
        if use system-ffmpeg && has_version '>=media-video/ffmpeg-5'; then

Reply via email to