commit:     2b34111aa5099e78aa73a9fd574255c090d02700
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 16 09:33:40 2022 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Sep 16 09:34:21 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b34111a

mail-client/thunderbird: add a rust version check to 102

 - apparently it's easier to have two different rust versions installed than I
   had thought.

Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 mail-client/thunderbird/thunderbird-102.2.2-r1.ebuild | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/mail-client/thunderbird/thunderbird-102.2.2-r1.ebuild 
b/mail-client/thunderbird/thunderbird-102.2.2-r1.ebuild
index b9386e16e062..8de2284563ba 100644
--- a/mail-client/thunderbird/thunderbird-102.2.2-r1.ebuild
+++ b/mail-client/thunderbird/thunderbird-102.2.2-r1.ebuild
@@ -416,6 +416,13 @@ pkg_setup() {
                        fi
                fi
 
+               if ver_test $(rustc -V | cut -d" " -f2) -ge "1.63"; then
+                       ewarn "Rust-1.63 is currently unsupported for building 
Thunderbird-102."
+                       ewarn "Please use 'eselect rust' to switch to a lower 
version, then resume"
+                       ewarn "building Thunderbird."
+                       die "Rust-1.63 detected. Use eselect rust to choose 
<1.63"
+               fi
+
                python-any-r1_pkg_setup
 
                # Avoid PGO profiling problems due to enviroment leakage

Reply via email to