diff options
author | Dirkjan Ochtman <djc@gentoo.org> | 2018-11-19 17:41:47 +0100 |
---|---|---|
committer | Dirkjan Ochtman <djc@gentoo.org> | 2018-11-19 17:42:01 +0100 |
commit | c0718dbc84ed51edd184446fc0d9cde7195e25a0 (patch) | |
tree | 3ffd7862a5c292206a54e8aafe3be046b75193a4 /dev-lang/rust | |
parent | sci-physics/root: drop old (diff) | |
download | gentoo-c0718dbc84ed51edd184446fc0d9cde7195e25a0.tar.gz gentoo-c0718dbc84ed51edd184446fc0d9cde7195e25a0.tar.bz2 gentoo-c0718dbc84ed51edd184446fc0d9cde7195e25a0.zip |
dev-lang/rust: check reqs, ewarn about cargo symlink
Fixes: https://bugs.gentoo.org/626134
Fixes: https://bugs.gentoo.org/626742
Fixes: https://bugs.gentoo.org/663354
Fixes: https://bugs.gentoo.org/671182
Signed-off-by: Dirkjan Ochtman <djc@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-lang/rust')
-rw-r--r-- | dev-lang/rust/rust-1.30.1-r1.ebuild | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/dev-lang/rust/rust-1.30.1-r1.ebuild b/dev-lang/rust/rust-1.30.1-r1.ebuild index 620583b6ecb9..5133dec80f51 100644 --- a/dev-lang/rust/rust-1.30.1-r1.ebuild +++ b/dev-lang/rust/rust-1.30.1-r1.ebuild @@ -5,7 +5,7 @@ EAPI=6 PYTHON_COMPAT=( python2_7 python3_{5,6} pypy ) -inherit eapi7-ver llvm multiprocessing multilib-build python-any-r1 rust-toolchain toolchain-funcs +inherit check-reqs eapi7-ver estack flag-o-matic llvm multiprocessing multilib-build python-any-r1 rust-toolchain toolchain-funcs if [[ ${PV} = *beta* ]]; then betaver=${PV//*beta} @@ -68,7 +68,24 @@ toml_usex() { usex "$1" true false } +pre_build_checks() { + CHECKREQS_DISK_BUILD="7G" + CHECKREQS_MEMORY="4G" + eshopts_push -s extglob + if is-flagq '-g?(gdb)?([1-9])'; then + CHECKREQS_DISK_BUILD="10G" + CHECKREQS_MEMORY="16G" + fi + eshopts_pop + check-reqs_pkg_setup +} + +pkg_pretend() { + pre_build_checks +} + pkg_setup() { + pre_build_checks python-any-r1_pkg_setup llvm_pkg_setup } @@ -256,6 +273,10 @@ pkg_postinst() { elog "Rust installs a helper script for calling GDB and LLDB," elog "for your convenience it is installed under /usr/bin/rust-{gdb,lldb}-${PV}." + ewarn "cargo is now installed from dev-lang/rust{,-bin} instead of dev-util/cargo." + ewarn "This might have resulted in a dangling symlink for /usr/bin/cargo on some" + ewarn "systems. This can be resolved by calling 'sudo eselect rust set ${P}'." + if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then elog "install app-emacs/rust-mode to get emacs support for rust." fi |