When building Rust, it compiles the curl-sys crate. This crate has a test that causes it to ignore the system curl and compile a builtin static version if it can't detect HTTP2 support. https://github.com/alexcrichton/curl-rust/blob/master/curl-sys/build.rs#L482-L505 Can the dependency be changed to require this configuration so that it uses the system curl consistently? (This is not high priority, so I'll just force USE=http2 locally if this isn't something that should be a hard-coded dependency ... and I'll live with the fact that in sysroot builds, build.rs links against the library in the sysroot but tests /usr/bin/curl-config for HTTP2 support.) Reproducible: Always --- a/dev-lang/rust/rust-1.44.1.ebuild +++ b/dev-lang/rust/rust-1.44.1.ebuild @@ -65,7 +65,7 @@ >=dev-libs/libgit2-0.99:= net-libs/libssh2:= net-libs/http-parser:= - net-misc/curl:=[ssl] + net-misc/curl:=[http2,ssl] sys-libs/zlib:= !libressl? ( dev-libs/openssl:0= ) libressl? ( dev-libs/libressl:0= )
good catch. amazing that most of the -sys crate problems come from the same source. I'll add it on next bump.
This is still an issue with dev-lang/rust-1.45.0.
thanks for checking, unfortunately I've lost some changes saved in git stash...
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2c2eddbfdcc2f3e6dbccdb99b13f45d3c2f74ad commit b2c2eddbfdcc2f3e6dbccdb99b13f45d3c2f74ad Author: Georgy Yakovlev <gyakovlev@gentoo.org> AuthorDate: 2020-07-24 23:35:34 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2020-07-24 23:36:06 +0000 dev-lang/rust: depend on curl[http2] No revbump, spare users a rebuild. Bug: https://bugs.gentoo.org/732222 Package-Manager: Portage-3.0.0, Repoman-2.3.23 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> dev-lang/rust/rust-1.45.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
leaving open until next stable lands.
Please actually arrange for curl to default enable USE=http2 then with its maintainer, so that users don't need to immediately add package.use entries when they need to install librsvg or firefox. Or alternatively, do I to fix this only for gnome profiles?
(In reply to Mart Raudsepp from comment #6) > Please actually arrange for curl to default enable USE=http2 then with its > maintainer, so that users don't need to immediately add package.use entries > when they need to install librsvg or firefox. > Or alternatively, do I to fix this only for gnome profiles? blueness has done this with curl ebuild IUSE default in bug 736744 before requesting stabilization
1.45.2 stable curl defaults to [http2] useflag. thanks all, closing.