1 |
For FORTRAN_NEEDED=test we need both the compiler and the test binaries |
2 |
to run on the build host only, hence new EAPIs only set BDEPEND here; |
3 |
|
4 |
For other modes (other than "no", of course), we need a Fortran compiler |
5 |
running on the build host as well as the runtime libraries built for the |
6 |
target arch, necessitating the use of both DEPEND and BDEPEND on newer |
7 |
EAPIs. |
8 |
|
9 |
Closes: https://bugs.gentoo.org/802153 |
10 |
Signed-off-by: Marek Szuba <marecki@g.o> |
11 |
--- |
12 |
eclass/fortran-2.eclass | 12 +++++++++++- |
13 |
1 file changed, 11 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/eclass/fortran-2.eclass b/eclass/fortran-2.eclass |
16 |
index 9d0c71703e4..2409cfcda5b 100644 |
17 |
--- a/eclass/fortran-2.eclass |
18 |
+++ b/eclass/fortran-2.eclass |
19 |
@@ -69,6 +69,9 @@ if [[ ! ${_FORTRAN_2_CLASS} ]]; then |
20 |
for _f_use in ${FORTRAN_NEEDED}; do |
21 |
case ${_f_use} in |
22 |
always) |
23 |
+ if [[ ${EAPI} != [56] ]]; then |
24 |
+ BDEPEND+=" virtual/fortran" |
25 |
+ fi |
26 |
DEPEND+=" virtual/fortran" |
27 |
RDEPEND+=" virtual/fortran" |
28 |
break |
29 |
@@ -77,9 +80,16 @@ for _f_use in ${FORTRAN_NEEDED}; do |
30 |
break |
31 |
;; |
32 |
test) |
33 |
- DEPEND+=" ${_f_use}? ( virtual/fortran )" |
34 |
+ if [[ ${EAPI} != [56] ]]; then |
35 |
+ BDEPEND+=" ${_f_use}? ( virtual/fortran )" |
36 |
+ else |
37 |
+ DEPEND+=" ${_f_use}? ( virtual/fortran )" |
38 |
+ fi |
39 |
;; |
40 |
*) |
41 |
+ if [[ ${EAPI} != [56] ]]; then |
42 |
+ BDEPEND+=" ${_f_use}? ( virtual/fortran )" |
43 |
+ fi |
44 |
DEPEND+=" ${_f_use}? ( virtual/fortran )" |
45 |
RDEPEND+=" ${_f_use}? ( virtual/fortran )" |
46 |
;; |
47 |
-- |
48 |
2.31.1 |