Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 770433 - media-video/rav1e should not pull in dev-util/cargo-c during cross compile
Summary: media-video/rav1e should not pull in dev-util/cargo-c during cross compile
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-14 08:28 UTC by tt_1
Modified: 2021-02-14 15:29 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
output from emerge --info (cross-target) (cross-emerge-info,4.93 KB, text/plain)
2021-02-14 08:52 UTC, tt_1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tt_1 2021-02-14 08:28:52 UTC
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
Comment 1 tt_1 2021-02-14 08:30:54 UTC
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.
Comment 2 tt_1 2021-02-14 08:52:38 UTC
Created attachment 686598 [details]
output from emerge --info (cross-target)