commit:     07da00e100b4c9ea0c6c5c790ce0c7d20aa1118f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Oct  6 16:09:57 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Oct  6 16:10:39 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07da00e1

dev-lang/rust: 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/875563
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-lang/rust/rust-1.62.1.ebuild    | 2 +-
 dev-lang/rust/rust-1.63.0-r1.ebuild | 2 +-
 dev-lang/rust/rust-1.64.0-r1.ebuild | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev-lang/rust/rust-1.62.1.ebuild b/dev-lang/rust/rust-1.62.1.ebuild
index fd5d2a9b6277..b951a931e407 100644
--- a/dev-lang/rust/rust-1.62.1.ebuild
+++ b/dev-lang/rust/rust-1.62.1.ebuild
@@ -310,7 +310,7 @@ src_configure() {
        # https://bugs.gentoo.org/732632
        if tc-is-clang; then
                local clang_slot="$(clang-major-version)"
-               if { has_version 
"sys-devel/clang:${clang_slot}[default-libcxx]" || is-flagq -stdlib=libc++; }; 
then
+               if { has_version 
"sys-devel/clang:${clang_slot}[default-libcxx(-)]" || has_version 
"sys-devel/clang-common:${clang_slot}[default-libcxx(-)]" || is-flagq 
-stdlib=libc++; }; then
                        use_libcxx="true"
                fi
        fi

diff --git a/dev-lang/rust/rust-1.63.0-r1.ebuild 
b/dev-lang/rust/rust-1.63.0-r1.ebuild
index b8cb10204eef..8f553b1aaac0 100644
--- a/dev-lang/rust/rust-1.63.0-r1.ebuild
+++ b/dev-lang/rust/rust-1.63.0-r1.ebuild
@@ -340,7 +340,7 @@ src_configure() {
        # https://bugs.gentoo.org/732632
        if tc-is-clang; then
                local clang_slot="$(clang-major-version)"
-               if { has_version 
"sys-devel/clang:${clang_slot}[default-libcxx]" || is-flagq -stdlib=libc++; }; 
then
+               if { has_version 
"sys-devel/clang:${clang_slot}[default-libcxx(-)]" || has_version 
"sys-devel/clang-common:${clang_slot}[default-libcxx(-)]" || is-flagq 
-stdlib=libc++; }; then
                        use_libcxx="true"
                fi
        fi

diff --git a/dev-lang/rust/rust-1.64.0-r1.ebuild 
b/dev-lang/rust/rust-1.64.0-r1.ebuild
index 92c592d49b21..436894d9af83 100644
--- a/dev-lang/rust/rust-1.64.0-r1.ebuild
+++ b/dev-lang/rust/rust-1.64.0-r1.ebuild
@@ -338,7 +338,7 @@ src_configure() {
        # https://bugs.gentoo.org/732632
        if tc-is-clang; then
                local clang_slot="$(clang-major-version)"
-               if { has_version 
"sys-devel/clang:${clang_slot}[default-libcxx]" || is-flagq -stdlib=libc++; }; 
then
+               if { has_version 
"sys-devel/clang:${clang_slot}[default-libcxx(-)]" || has_version 
"sys-devel/clang-common:${clang_slot}[default-libcxx(-)]" || is-flagq 
-stdlib=libc++; }; then
                        use_libcxx="true"
                fi
        fi

Reply via email to