From owner-svn-ports-head@freebsd.org Sat Aug 17 21:04:22 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 86C64B1CA1; Sat, 17 Aug 2019 21:04:22 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 469t3V2xCqz3HPB; Sat, 17 Aug 2019 21:04:22 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 25D681F887; Sat, 17 Aug 2019 21:04:22 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x7HL4L27090833; Sat, 17 Aug 2019 21:04:21 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x7HL4LcN090831; Sat, 17 Aug 2019 21:04:21 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201908172104.x7HL4LcN090831@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Sat, 17 Aug 2019 21:04:21 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r509173 - in head/lang/rust-nightly: . files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in head/lang/rust-nightly: . files X-SVN-Commit-Revision: 509173 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Aug 2019 21:04:22 -0000 Author: jbeich Date: Sat Aug 17 21:04:21 2019 New Revision: 509173 URL: https://svnweb.freebsd.org/changeset/ports/509173 Log: 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 Added: head/lang/rust-nightly/files/patch-vendor_libgit2-sys_lib.rs (contents, props changed) Modified: head/lang/rust-nightly/Makefile (contents, props changed) Modified: head/lang/rust-nightly/Makefile ============================================================================== --- head/lang/rust-nightly/Makefile Sat Aug 17 20:56:18 2019 (r509172) +++ head/lang/rust-nightly/Makefile Sat Aug 17 21:04:21 2019 (r509173) @@ -3,7 +3,7 @@ PORTVERSION= 1.39.0.${NIGHTLY_DATE:C,-,,g} # Always set PORTREVISION explicitly as otherwise it is inherited from lang/rust -PORTREVISION= 0 +PORTREVISION= 1 PKGNAMESUFFIX= -nightly DISTNAME= rustc-nightly-src Added: head/lang/rust-nightly/files/patch-vendor_libgit2-sys_lib.rs ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/rust-nightly/files/patch-vendor_libgit2-sys_lib.rs Sat Aug 17 21:04:21 2019 (r509173) @@ -0,0 +1,30 @@ +Revert to libgit2 0.28 API per https://github.com/rust-lang/git2-rs/issues/458 + +--- vendor/libgit2-sys/lib.rs.orig 2019-08-16 20:27:18.000000000 +0000 ++++ vendor/libgit2-sys/lib.rs 2019-08-17 19:47:11.087276682 +0000 +@@ -331,7 +331,6 @@ pub struct git_remote_callbacks { + pub push_negotiation: Option, + pub transport: Option, + pub payload: *mut c_void, +- pub resolve_url: Option, + } + + #[repr(C)] +@@ -385,8 +384,6 @@ pub type git_push_negotiation = + + pub type git_push_update_reference_cb = + extern "C" fn(*const c_char, *const c_char, *mut c_void) -> c_int; +-pub type git_url_resolve_cb = +- extern "C" fn(*mut git_buf, *const c_char, c_int, *mut c_void) -> c_int; + + #[repr(C)] + pub struct git_push_update { +@@ -2233,7 +2230,7 @@ extern "C" { + source: *const git_tree, + ) -> c_int; + pub fn git_treebuilder_clear(bld: *mut git_treebuilder); +- pub fn git_treebuilder_entrycount(bld: *mut git_treebuilder) -> size_t; ++ pub fn git_treebuilder_entrycount(bld: *mut git_treebuilder) -> c_uint; + pub fn git_treebuilder_free(bld: *mut git_treebuilder); + pub fn git_treebuilder_get( + bld: *mut git_treebuilder,