Bug 239785

Summary: lang/rust-nightly: invalid version 3 on git_proxy_options; class=Invalid (3)
Product: Ports & Packages Reporter: Yuri Victorovich <yuri>
Component: Individual Port(s)Assignee: FreeBSD Rust Team <rust>
Status: Closed FIXED    
Severity: Affects Only Me CC: jbeich, yuri
Priority: --- Flags: tobik: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://github.com/rust-lang/rust/issues/63476

Description Yuri Victorovich freebsd_committer 2019-08-11 22:35:03 UTC
On FreeBSD 12 amd64 rust-nightly- fails:

$ cargo build
    Updating crates.io index
error: failed to load source for a dependency on `image`

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)

Project: https://github.com/Twinklebear/bspline
Comment 1 Tobias Kortkamp freebsd_committer 2019-08-12 08:43:46 UTC
Comment 2 commit-hook freebsd_committer 2019-08-17 21:04:58 UTC
A commit references this bug:

Author: jbeich
Date: Sat Aug 17 21:04:21 UTC 2019
New revision: 509173
URL: https://svnweb.freebsd.org/changeset/ports/509173

  lang/rust-nightly: unbreak cargo git fetch after r507928

  libgit2-sys 0.8.2 switched to libgit2 0.29 API without bumping minor
  version and adjusting pkg-config check. devel/libgit2 is still at
  0.28, so FFI silently fails with a confusing error e.g.,

    invalid version 3 on git_proxy_options; class=Invalid (3)

  USES=cargo consumers are affected but none use libgit2-sys 0.8.2 yet.

  PR:		239785
  Reported by:	yuri