1 |
Ühel kenal päeval, K, 06.01.2021 kell 19:27, kirjutas Matt Turner: |
2 |
> From: David Michael <fedora.dm0@×××××.com> |
3 |
> |
4 |
> The vala dependencies are declared in BDEPEND since EAPI 7 so that |
5 |
> the valac command is natively executable. With no arguments, the |
6 |
> has_version function would look for a cross-compiled vala package |
7 |
> in the target ROOT and always fail. |
8 |
|
9 |
I'm not exactly convinced that vapi stuff is arch independent and |
10 |
belongs in BDEPEND over DEPEND. Vala ships a lot of .vapi files along |
11 |
with valac that get used on compilation. Though the difference might be |
12 |
only when different endianness or size_of int |
13 |
|
14 |
|
15 |
Mart |
16 |
|
17 |
> Signed-off-by: David Michael <fedora.dm0@×××××.com> |
18 |
> Signed-off-by: Matt Turner <mattst88@g.o> |
19 |
> --- |
20 |
> eclass/vala.eclass | 4 ++-- |
21 |
> 1 file changed, 2 insertions(+), 2 deletions(-) |
22 |
> |
23 |
> diff --git a/eclass/vala.eclass b/eclass/vala.eclass |
24 |
> index 52899f163dc..88c5231286a 100644 |
25 |
> --- a/eclass/vala.eclass |
26 |
> +++ b/eclass/vala.eclass |
27 |
> @@ -102,7 +102,7 @@ vala_best_api_version() { |
28 |
> u=$(_vala_use_depend) |
29 |
> |
30 |
> for v in $(vala_api_versions); do |
31 |
> - has_version "dev-lang/vala:${v}${u}" && echo "${v}" |
32 |
> && return |
33 |
> + has_version $([[ $EAPI == [1-6] ]] || echo -b) "dev- |
34 |
> lang/vala:${v}${u}" && echo "${v}" && return |
35 |
> done |
36 |
> } |
37 |
> |
38 |
> @@ -136,7 +136,7 @@ vala_src_prepare() { |
39 |
> fi |
40 |
> |
41 |
> if [[ ${version} ]]; then |
42 |
> - has_version "dev-lang/vala:${version}" || die "No |
43 |
> installed vala:${version}" |
44 |
> + has_version $([[ $EAPI == [1-6] ]] || echo -b) "dev- |
45 |
> lang/vala:${version}" || die "No installed vala:${version}" |
46 |
> else |
47 |
> version=$(vala_best_api_version) |
48 |
> [[ ${version} ]] || die "No installed vala in |
49 |
> $(vala_depend)" |