1 |
commit: c0718dbc84ed51edd184446fc0d9cde7195e25a0 |
2 |
Author: Dirkjan Ochtman <djc <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 19 16:41:47 2018 +0000 |
4 |
Commit: Dirkjan Ochtman <djc <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 19 16:42:01 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0718dbc |
7 |
|
8 |
dev-lang/rust: check reqs, ewarn about cargo symlink |
9 |
|
10 |
Fixes: https://bugs.gentoo.org/626134 |
11 |
Fixes: https://bugs.gentoo.org/626742 |
12 |
Fixes: https://bugs.gentoo.org/663354 |
13 |
Fixes: https://bugs.gentoo.org/671182 |
14 |
Signed-off-by: Dirkjan Ochtman <djc <AT> gentoo.org> |
15 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
16 |
|
17 |
dev-lang/rust/rust-1.30.1-r1.ebuild | 23 ++++++++++++++++++++++- |
18 |
1 file changed, 22 insertions(+), 1 deletion(-) |
19 |
|
20 |
diff --git a/dev-lang/rust/rust-1.30.1-r1.ebuild b/dev-lang/rust/rust-1.30.1-r1.ebuild |
21 |
index 620583b6ecb..5133dec80f5 100644 |
22 |
--- a/dev-lang/rust/rust-1.30.1-r1.ebuild |
23 |
+++ b/dev-lang/rust/rust-1.30.1-r1.ebuild |
24 |
@@ -5,7 +5,7 @@ EAPI=6 |
25 |
|
26 |
PYTHON_COMPAT=( python2_7 python3_{5,6} pypy ) |
27 |
|
28 |
-inherit eapi7-ver llvm multiprocessing multilib-build python-any-r1 rust-toolchain toolchain-funcs |
29 |
+inherit check-reqs eapi7-ver estack flag-o-matic llvm multiprocessing multilib-build python-any-r1 rust-toolchain toolchain-funcs |
30 |
|
31 |
if [[ ${PV} = *beta* ]]; then |
32 |
betaver=${PV//*beta} |
33 |
@@ -68,7 +68,24 @@ toml_usex() { |
34 |
usex "$1" true false |
35 |
} |
36 |
|
37 |
+pre_build_checks() { |
38 |
+ CHECKREQS_DISK_BUILD="7G" |
39 |
+ CHECKREQS_MEMORY="4G" |
40 |
+ eshopts_push -s extglob |
41 |
+ if is-flagq '-g?(gdb)?([1-9])'; then |
42 |
+ CHECKREQS_DISK_BUILD="10G" |
43 |
+ CHECKREQS_MEMORY="16G" |
44 |
+ fi |
45 |
+ eshopts_pop |
46 |
+ check-reqs_pkg_setup |
47 |
+} |
48 |
+ |
49 |
+pkg_pretend() { |
50 |
+ pre_build_checks |
51 |
+} |
52 |
+ |
53 |
pkg_setup() { |
54 |
+ pre_build_checks |
55 |
python-any-r1_pkg_setup |
56 |
llvm_pkg_setup |
57 |
} |
58 |
@@ -256,6 +273,10 @@ pkg_postinst() { |
59 |
elog "Rust installs a helper script for calling GDB and LLDB," |
60 |
elog "for your convenience it is installed under /usr/bin/rust-{gdb,lldb}-${PV}." |
61 |
|
62 |
+ ewarn "cargo is now installed from dev-lang/rust{,-bin} instead of dev-util/cargo." |
63 |
+ ewarn "This might have resulted in a dangling symlink for /usr/bin/cargo on some" |
64 |
+ ewarn "systems. This can be resolved by calling 'sudo eselect rust set ${P}'." |
65 |
+ |
66 |
if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then |
67 |
elog "install app-emacs/rust-mode to get emacs support for rust." |
68 |
fi |