1 |
On Thu, Jan 7, 2021 at 3:42 AM Mart Raudsepp <leio@g.o> wrote: |
2 |
> Ühel kenal päeval, K, 06.01.2021 kell 19:27, kirjutas Matt Turner: |
3 |
> > From: David Michael <fedora.dm0@×××××.com> |
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 |
If there are target-specific files that need to be installed via |
15 |
DEPEND, vala would still need to be installed in BDEPEND so that there |
16 |
is an executable valac command, right? |
17 |
|
18 |
In practice, I don't think DEPEND usage matters yet because vala |
19 |
support seems to require gobject-introspection, which is virtually |
20 |
impossible to cross-compile. (I plan to implement something like |
21 |
Void[0] locally to try it some time.) |
22 |
|
23 |
This patch is to fix packages like ibus[1] that depend on vala |
24 |
regardless of my disabling the USE flag, where the current eclass |
25 |
behavior unconditionally fails. |
26 |
|
27 |
Thanks. |
28 |
|
29 |
David |
30 |
|
31 |
[0] https://maxice8.github.io/8-cross-the-gir |
32 |
[1] https://github.com/gentoo/gentoo/blob/master/app-i18n/ibus/ibus-1.5.23.ebuild#L80 |