Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 707746 - dev-lang/rust-1.41.0 has broken "cargo update" : invalid version 3 on git_proxy_options; class=Invalid
Summary: dev-lang/rust-1.41.0 has broken "cargo update" : invalid version 3 on git_pro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-01 10:00 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2020-04-25 06:13 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2020-02-01 10:00:33 UTC
dev-lang/rust-bin-1.41.0 has no issues.

dev-lang/rust-1.41.0 barfs with messages like the following when it tries to connect to github:

----
cargo +system update -v
    Updating crates.io index
error: failed to load source for a dependency on `proc-macro2`

Caused by:
  Unable to update registry `https://github.com/rust-lang/crates.io-index`

Caused by:
  failed to fetch `https://github.com/rust-lang/crates.io-index`

Caused by:
  invalid version 3 on git_proxy_options; class=Invalid (3)
----

If you `eselect rust set` to rust-bin, and re-run the same cargo command, it will sync to git just fine.

Just be aware, after doing that, if you `eselect rust set` back to 'rust', the problem will appear to vanish because the failing call gets elided by caching.

Setting fire to various things in ~/.cargo can subsequently trip this mechanic to happening.

----

dev-lang/rust-1.41.0::gentoo was built with the following:
USE="clippy rls rustfmt system-bootstrap wasm -debug -doc -libressl -nightly -parallel-compiler -system-llvm" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="sse2" LLVM_TARGETS="BPF NVPTX WebAssembly (X86) -AArch64 -AMDGPU -ARM -Hexagon -Lanai -MSP430 -Mips -PowerPC -RISCV -Sparc -SystemZ -XCore"


dev-lang/rust-bin-1.41.0::gentoo was built with the following:
USE="-clippy -doc -libressl -rustfmt" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="sse2"


Rust-Bin:

 /usr/bin/rustc --verbose --version
rustc 1.41.0 (5e1a79984 2020-01-27)
binary: rustc
commit-hash: 5e1a799842ba6ed4a57e91f7ab9435947482f7d8
commit-date: 2020-01-27
host: x86_64-unknown-linux-gnu
release: 1.41.0
LLVM version: 9.0


Rust:

/usr/bin/rustc --verbose --version
rustc 1.41.0
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-linux-gnu
release: 1.41.0
LLVM version: 9.0
Comment 1 Larry the Git Cow gentoo-dev 2020-02-01 11:48:27 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0edd089556150f6d507c4c98487458e55e4720bb

commit 0edd089556150f6d507c4c98487458e55e4720bb
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-02-01 11:47:10 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-02-01 11:48:01 +0000

    dev-lang/rust: fix libgit2 breakage in 1.41.0
    
    use bundled crate version for now.
    "amazing" libgit2-sys upstream uses ABI from master and
    does not work with 0.28.x releases.
    
    Bug: https://bugs.gentoo.org/707746
    Package-Manager: Portage-2.3.86, Repoman-2.3.20
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-lang/rust/rust-1.41.0.ebuild | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
Comment 2 Georgy Yakovlev archtester gentoo-dev 2020-02-01 11:49:27 UTC
quick and dirty inplace fix for everyone who hasn't updated yet.
will do a revbump later with abit rollback and proper deps.
Comment 3 Larry the Git Cow gentoo-dev 2020-04-25 06:13:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cff84737fa33c9186b8549c66ecda830382fba36

commit cff84737fa33c9186b8549c66ecda830382fba36
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-04-25 03:35:51 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-04-25 06:05:51 +0000

    dev-lang/rust: bump to 1.43.0
    
    use system libgit2
    initial src_test support (thanks smaeul)
    clean-up ebuild code a bit
    
    Closes: https://bugs.gentoo.org/707746
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-lang/rust/Manifest                             |  15 +
 ...12-Ignore-broken-and-non-applicable-tests.patch |  89 +++++
 ....0-llvm10-LLVMTimeTraceProfilerInitialize.patch |  26 ++
 dev-lang/rust/files/1.43.0-llvm10.patch            | 194 ++++++++++
 dev-lang/rust/rust-1.43.0.ebuild                   | 413 +++++++++++++++++++++
 5 files changed, 737 insertions(+)