summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2020-07-20 15:28:31 +0200
committerThomas Deutschmann <whissi@gentoo.org>2020-07-20 15:46:08 +0200
commitdcf68147d38b237eb9d852beafa4a7aa1b0543ca (patch)
tree5c0da248b4343a9d9df1dff01115595b30d70c69 /mail-client
parentmail-client/thunderbird: check requirements only for non-binary merges (diff)
downloadgentoo-dcf68147d38b237eb9d852beafa4a7aa1b0543ca.tar.gz
gentoo-dcf68147d38b237eb9d852beafa4a7aa1b0543ca.tar.bz2
gentoo-dcf68147d38b237eb9d852beafa4a7aa1b0543ca.zip
mail-client/thunderbird: check rust version in pkg_pretend
Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'mail-client')
-rw-r--r--mail-client/thunderbird/thunderbird-68.10.0.ebuild9
1 files changed, 9 insertions, 0 deletions
diff --git a/mail-client/thunderbird/thunderbird-68.10.0.ebuild b/mail-client/thunderbird/thunderbird-68.10.0.ebuild
index 684386fa5412..42387e59ccef 100644
--- a/mail-client/thunderbird/thunderbird-68.10.0.ebuild
+++ b/mail-client/thunderbird/thunderbird-68.10.0.ebuild
@@ -217,6 +217,15 @@ llvm_check_deps() {
pkg_pretend() {
if [[ ${MERGE_TYPE} != binary ]] ; then
+ local rustc_version=( $(eselect --brief rust show 2>/dev/null) )
+ rustc_version=${rustc_version[0]/rust-bin-/}
+ rustc_version=${rustc_version/rust-/}
+ [[ -z "${rustc_version}" ]] && die "Failed to determine rustc version!"
+
+ if ver_test "${rustc_version}" -ge "1.45.0" ; then
+ die "Rust >=1.45.0 is not supported. Please use 'eselect rust' to switch to <rust-1.45.0!"
+ fi
+
if use pgo ; then
if ! has usersandbox $FEATURES ; then
die "You must enable usersandbox as X server can not run as root!"