1 |
> On 9 Feb 2023, at 20:04, Arsen Arsenović <arsen@g.o> wrote: |
2 |
> |
3 |
> This behavior is relied on elsewhere, for setting BDEPENDs correctly. |
4 |
> |
5 |
> Signed-off-by: Arsen Arsenović <arsen@g.o> |
6 |
> --- |
7 |
> Hi there, |
8 |
> |
9 |
> I was trying to merge GDC, and noticed that the non-selfhost BDEPEND is |
10 |
> missing for GCC 13. Specifically, the following block was never |
11 |
> enterred: |
12 |
> |
13 |
> # TODO: Add a pkg_setup & pkg_pretend check for whether the active compiler |
14 |
> # supports D. |
15 |
> if tc_has_feature d && tc_version_is_at_least 12.0 ; then |
16 |
> # D in 12+ is self-hosting and needs D to bootstrap. |
17 |
> # TODO: package some binary we can use, like for Ada |
18 |
> # bug #840182 |
19 |
> BDEPEND+=" d? ( || ( sys-devel/gcc[d(-)] <sys-devel/gcc-12[d(-)] ) )" |
20 |
> fi |
21 |
> |
22 |
> This change enables the correct dependency to be emitted. |
23 |
> |
24 |
|
25 |
Can you add a Fixes: for the original commit where I added the D hack? |
26 |
|
27 |
> eclass/toolchain.eclass | 4 ++-- |
28 |
> 1 file changed, 2 insertions(+), 2 deletions(-) |
29 |
> |
30 |
> diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass |
31 |
> index 6d8901d21812..06c044fd1d38 100644 |
32 |
> --- a/eclass/toolchain.eclass |
33 |
> +++ b/eclass/toolchain.eclass |
34 |
> @@ -1,4 +1,4 @@ |
35 |
> -# Copyright 1999-2022 Gentoo Authors |
36 |
> +# Copyright 1999-2023 Gentoo Authors |
37 |
> # Distributed under the terms of the GNU General Public License v2 |
38 |
> |
39 |
> # @ECLASS: toolchain.eclass |
40 |
> @@ -271,7 +271,7 @@ if [[ ${PN} != kgcc64 && ${PN} != gcc-* ]] ; then |
41 |
> tc_version_is_at_least 8.0 && |
42 |
> IUSE+=" systemtap" TC_FEATURES+=( systemtap ) |
43 |
> |
44 |
> - tc_version_is_at_least 9.0 && IUSE+=" d" |
45 |
> + tc_version_is_at_least 9.0 && IUSE+=" d" TC_FEATURES+=( d ) |
46 |
|
47 |
Thanks. I thought I'd checked for TC_FEATURES being populated. |
48 |
|
49 |
Please push once added Fixes:, cheers! |
50 |
|
51 |
Best, |
52 |
sam |