On Thu, Jan 7, 2021 at 3:42 AM Mart Raudsepp <l...@gentoo.org> wrote: > Ühel kenal päeval, K, 06.01.2021 kell 19:27, kirjutas Matt Turner: > > From: David Michael <fedora....@gmail.com> > > The vala dependencies are declared in BDEPEND since EAPI 7 so that > > the valac command is natively executable. With no arguments, the > > has_version function would look for a cross-compiled vala package > > in the target ROOT and always fail. > > I'm not exactly convinced that vapi stuff is arch independent and > belongs in BDEPEND over DEPEND. Vala ships a lot of .vapi files along > with valac that get used on compilation. Though the difference might be > only when different endianness or size_of int
If there are target-specific files that need to be installed via DEPEND, vala would still need to be installed in BDEPEND so that there is an executable valac command, right? In practice, I don't think DEPEND usage matters yet because vala support seems to require gobject-introspection, which is virtually impossible to cross-compile. (I plan to implement something like Void[0] locally to try it some time.) This patch is to fix packages like ibus[1] that depend on vala regardless of my disabling the USE flag, where the current eclass behavior unconditionally fails. Thanks. David [0] https://maxice8.github.io/8-cross-the-gir [1] https://github.com/gentoo/gentoo/blob/master/app-i18n/ibus/ibus-1.5.23.ebuild#L80