right now, any attempt to cross compile media-video/rav1e pulls in cargo-c and friends into the prefix: emerge-aarch64-unknown-linux-gnu -pv rav1e These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] net-libs/libssh2-1.9.0_p20200614::gentoo to /usr/aarch64-unknown-linux-gnu/ USE="zlib -gcrypt (-libressl) -mbedtls" 472 KiB [ebuild N ] net-libs/nghttp2-1.41.0:0/1.14::gentoo to /usr/aarch64-unknown-linux-gnu/ USE="threads -cxx -debug -hpack-tools -jemalloc (-libressl) -static-libs -test -utils -xml" 1.603 KiB [ebuild N ] net-misc/curl-7.74.0-r2::gentoo to /usr/aarch64-unknown-linux-gnu/ USE="ftp http2 imap ipv6 openssl pop3 progress-meter smtp ssl tftp -adns -alt-svc -brotli -gnutls -gopher -hsts -idn -kerberos -ldap (-libressl) -mbedtls -metalink (-nghttp3) -nss (-quiche) -rtmp -samba -ssh -static-libs -telnet -test -threads (-winssl) -zstd" CURL_SSL="openssl -gnutls (-libressl) -mbedtls -nss (-winssl)" 2.345 KiB [ebuild N ] dev-util/cargo-c-0.6.2::gentoo to /usr/aarch64-unknown-linux-gnu/ USE="-debug (-libressl)" 17.204 KiB [ebuild N ] media-video/rav1e-0.3.4::gentoo to /usr/aarch64-unknown-linux-gnu/ USE="capi -debug" 10.134 KiB this should not happen, because first of all because dev-util/cargo-c doesn't cross compile itself and thus blocks media-video/rav1e. But also if it did cross compile, it's a binary (usr/bin/cargo-c) and needs to be in the hosts arch to be helpfull in any cross compile attempts. the media-libs/rav1e ebuilds are in eapi7, so please use BDEPEND instead of RDEPEND ; this way dev-util/cargo-c is not pulled into the dep graph. thank you very much
when ebuild patched locally with: BDEPEND="capi? ( dev-util/cargo-c )" / # emerge-aarch64-unknown-linux-gnu -pv rav1e These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] dev-util/cargo-c-0.6.2::gentoo USE="-debug (-libressl)" 0 KiB [ebuild N ] media-video/rav1e-0.3.4::gentoo to /usr/aarch64-unknown-linux-gnu/ USE="capi -debug" 10.134 KiB this is correct, as cargo-c isn't yet installed on the host and thus it will be first pulled in there, and later rav1e gets compiled.
Created attachment 686598 [details] output from emerge --info (cross-target)
fixed in https://github.com/gentoo/gentoo/commit/943bd3f7836bee4a4a49d10321e5a98b7e02e673