Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 12 Sep 2022 18:33:29
Message-Id: 1663007591.99e02b21ba6dd898a7680ad8ceb591efa142e7eb.sam@gentoo
1 commit: 99e02b21ba6dd898a7680ad8ceb591efa142e7eb
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 12 18:31:44 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 12 18:33:11 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99e02b21
7
8 toolchain.eclass: BDEPEND on an Ada compiler
9
10 Necessary but not sufficient. Needs a pkg_setup/pkg_pretend
11 check for whether the active compiler supports Ada still,
12 just like D needs this too (which isn't done either).
13
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 eclass/toolchain.eclass | 8 ++++++++
17 1 file changed, 8 insertions(+)
18
19 diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
20 index 4e023ffb65d0..71342765c78e 100644
21 --- a/eclass/toolchain.eclass
22 +++ b/eclass/toolchain.eclass
23 @@ -335,6 +335,14 @@ if tc_has_feature valgrind ; then
24 BDEPEND+=" valgrind? ( dev-util/valgrind )"
25 fi
26
27 +# TODO: Add a pkg_setup & pkg_pretend check for whether the active compiler
28 +# supports Ada.
29 +if tc_has_feature ada ; then
30 + BDEPEND+=" ada? ( || ( sys-devel/gcc[ada] dev-lang/gnat-gpl[ada] ) )"
31 +fi
32 +
33 +# TODO: Add a pkg_setup & pkg_pretend check for whether the active compiler
34 +# supports D.
35 if tc_has_feature d && tc_version_is_at_least 12.0 ; then
36 # D in 12+ is self-hosting and needs D to bootstrap.
37 # TODO: package some binary we can use, like for Ada