From nobody Sat Dec 4 12:09:05 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7A83618BE73D; Sat, 4 Dec 2021 12:09:06 +0000 (UTC) (envelope-from git@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J5pQ96cQxz3lDX; Sat, 4 Dec 2021 12:09:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C12EB23DC7; Sat, 4 Dec 2021 12:09:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1B4C95k7077706; Sat, 4 Dec 2021 12:09:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B4C957Q077705; Sat, 4 Dec 2021 12:09:05 GMT (envelope-from git) Date: Sat, 4 Dec 2021 12:09:05 GMT Message-Id: <202112041209.1B4C957Q077705@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Matthias Fechner Subject: git: 5c8d1c24f862 - main - devel/libgit2: Update to 1.3.0 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mfechner X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5c8d1c24f8622f77acc3b999bf5c58ed63ea9c61 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638619746; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=49bKxrCzgt3KqPpbsXrZKeJ2giyxYW83Ey7Y4tN2u5o=; b=LrnwqtRRzfiuKPljUlNkAACkX1jd6TiW7iHWxEMr+pQcB2nu9qzsfiuC5MVErcUoyBfnGn j6Cs0iYd92btNQEgopOkWJ8YdtVOJvorgE91o/TAMkYig3QLQe+7Weq/NBcCesKnzo4dkG XL0vvqvULyqevZbwXPt6bJJl8NG3+MS3VdPLKCRFnINUGdcnNTigCPfa8PYkk3Hu3phUuB I9GNRyek+9Cy5Kxis+4Jg2V6ppzl1J/mWRbltJbFMo2RR0rEevRegSZhh/4gBEi5kry3nB dtdn/7+2mP945pAqGDvRYy3RSdapC2QKs+gfnpu5BE7mTzq8LYMKJtiraOxcJA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638619746; a=rsa-sha256; cv=none; b=xgN8crjl7AOmgo/JhETA8sU7S4MFe8jvXLcD2MlTrGGgQXlUzSvufkztOH1pHEo2xxf7QM doJ/YUq34dTQRZLaTcUU0goAxo81HlbE7qnKRmceQSEZKdJJsKK+uHC2GH1+x5YaYJRe6M Jr+/NPmYc7UB/AKDqIWYoNH152igHTJf1ulWRBz+5dVacQICGcLUnOLN9zlx+HImaLJHFk HsbQq40aK644zLWn1I+IR4H8htJ4RlvCbUChPrFNPPD1Xn4ESWpKLW2WF/OZ0l/cyMBL8K CvY/Cvc+5Qvs7NFgc1sNfpjCpF9cylo9nlC7p2H3fMQoJUHpQZ8z92RT0gnH1g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mfechner: URL: https://cgit.FreeBSD.org/ports/commit/?id=5c8d1c24f8622f77acc3b999bf5c58ed63ea9c61 commit 5c8d1c24f8622f77acc3b999bf5c58ed63ea9c61 Author: Daniel Engberg AuthorDate: 2021-10-01 13:34:48 +0000 Commit: Matthias Fechner CommitDate: 2021-12-04 12:07:23 +0000 devel/libgit2: Update to 1.3.0 Use DISTVERSION and USE_GIT to follow Porter's Handbook more closely Use PCRE2 by default instead of PCRE(1) Use http-parser library from ports rather than bundled version as per recommendation in Porter's Handbook Import patch to remove incompatible tests Reference: https://github.com/archlinux/svntogit-packages/blob/packages/libgit2/trunk/libgit2-1.2.0-remove_http-parse_incompatible_tests.patch (see commit history) PR: 258484 --- devel/libgit2/Makefile | 16 +-- devel/libgit2/distinfo | 6 +- .../libgit2/files/patch-tests_network_url_parse.c | 116 +++++++++++++++++++++ devel/libgit2/pkg-plist | 6 +- 4 files changed, 134 insertions(+), 10 deletions(-) diff --git a/devel/libgit2/Makefile b/devel/libgit2/Makefile index 1867b158ba18..ce0c11f8bb9e 100644 --- a/devel/libgit2/Makefile +++ b/devel/libgit2/Makefile @@ -4,23 +4,27 @@ # Tools/scripts/search_lib_depends_and_bump.sh devel/libgit2 PORTNAME= libgit2 -PORTVERSION= 1.1.1 +DISTVERSIONPREFIX= v +DISTVERSION= 1.3.0 CATEGORIES= devel -MASTER_SITES= https://github.com/libgit2/libgit2/archive/refs/tags/v${PORTVERSION}${EXTRACT_SUFX}/?dummy=/ MAINTAINER= mfechner@FreeBSD.org COMMENT= Portable, pure C implementation of the Git core LICENSE= GPLv2 -LIB_DEPENDS= libpcre.so:devel/pcre +LIB_DEPENDS= libpcre2-8.so:devel/pcre2 \ + libhttp_parser.so:www/http-parser USES= cmake cpe pkgconfig ssl +USE_GITHUB= yes USE_LDCONFIG= yes + +CMAKE_ARGS= -DREGEX_BACKEND=pcre2 -DUSE_HTTP_PARSER=system CMAKE_OFF= BUILD_CLAR -PLIST_SUB= PORTVERSION=${PORTVERSION} \ - SHLIB_VER=${PORTVERSION:R} +PLIST_SUB= DISTVERSION=${DISTVERSION} \ + SHLIB_VER=${DISTVERSION:R} OPTIONS_DEFINE= SSH THREADS OPTIONS_DEFAULT=SSH THREADS @@ -43,6 +47,6 @@ do-test: ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} \ -DBUILD_CLAR=ON ${CMAKE_SOURCE_PATH} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ - ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test + ${SETENV} ${MAKE_ENV} CTEST_OUTPUT_ON_FAILURE=1 ${MAKE_CMD} ${MAKE_ARGS} test .include diff --git a/devel/libgit2/distinfo b/devel/libgit2/distinfo index 5ea4143cd8ef..9945f2cbf032 100644 --- a/devel/libgit2/distinfo +++ b/devel/libgit2/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1629884756 -SHA256 (libgit2-1.1.1.tar.gz) = 13a525373f64c711a00a058514d890d1512080265f98e0935ab279393f21a620 -SIZE (libgit2-1.1.1.tar.gz) = 5451203 +TIMESTAMP = 1633050062 +SHA256 (libgit2-libgit2-v1.3.0_GH0.tar.gz) = 192eeff84596ff09efb6b01835a066f2df7cd7985e0991c79595688e6b36444e +SIZE (libgit2-libgit2-v1.3.0_GH0.tar.gz) = 5599575 diff --git a/devel/libgit2/files/patch-tests_network_url_parse.c b/devel/libgit2/files/patch-tests_network_url_parse.c new file mode 100644 index 000000000000..d466cb1ce18f --- /dev/null +++ b/devel/libgit2/files/patch-tests_network_url_parse.c @@ -0,0 +1,116 @@ +--- tests/network/url/parse.c.orig 2021-09-27 20:09:50 UTC ++++ tests/network/url/parse.c +@@ -63,18 +63,6 @@ void test_network_url_parse__hostname_implied_root_cus + cl_assert_equal_i(git_net_url_is_default_port(&conndata), 0); + } + +-void test_network_url_parse__hostname_implied_root_empty_port(void) +-{ +- cl_git_pass(git_net_url_parse(&conndata, "http://example.com:")); +- cl_assert_equal_s(conndata.scheme, "http"); +- cl_assert_equal_s(conndata.host, "example.com"); +- cl_assert_equal_s(conndata.port, "80"); +- cl_assert_equal_s(conndata.path, "/"); +- cl_assert_equal_p(conndata.username, NULL); +- cl_assert_equal_p(conndata.password, NULL); +- cl_assert_equal_i(git_net_url_is_default_port(&conndata), 1); +-} +- + void test_network_url_parse__hostname_encoded_password(void) + { + cl_git_pass(git_net_url_parse(&conndata, +@@ -129,18 +117,6 @@ void test_network_url_parse__hostname_port(void) + cl_assert_equal_i(git_net_url_is_default_port(&conndata), 0); + } + +-void test_network_url_parse__hostname_empty_port(void) +-{ +- cl_git_pass(git_net_url_parse(&conndata, "http://example.com:/resource")); +- cl_assert_equal_s(conndata.scheme, "http"); +- cl_assert_equal_s(conndata.host, "example.com"); +- cl_assert_equal_s(conndata.port, "80"); +- cl_assert_equal_s(conndata.path, "/resource"); +- cl_assert_equal_p(conndata.username, NULL); +- cl_assert_equal_p(conndata.password, NULL); +- cl_assert_equal_i(git_net_url_is_default_port(&conndata), 1); +-} +- + void test_network_url_parse__hostname_user_port(void) + { + /* user@hostname.tld:port/resource */ +@@ -219,18 +195,6 @@ void test_network_url_parse__ipv4_implied_root_custom_ + cl_assert_equal_i(git_net_url_is_default_port(&conndata), 0); + } + +-void test_network_url_parse__ipv4_implied_root_empty_port(void) +-{ +- cl_git_pass(git_net_url_parse(&conndata, "http://192.168.1.1:")); +- cl_assert_equal_s(conndata.scheme, "http"); +- cl_assert_equal_s(conndata.host, "192.168.1.1"); +- cl_assert_equal_s(conndata.port, "80"); +- cl_assert_equal_s(conndata.path, "/"); +- cl_assert_equal_p(conndata.username, NULL); +- cl_assert_equal_p(conndata.password, NULL); +- cl_assert_equal_i(git_net_url_is_default_port(&conndata), 1); +-} +- + void test_network_url_parse__ipv4_encoded_password(void) + { + cl_git_pass(git_net_url_parse(&conndata, +@@ -283,18 +247,6 @@ void test_network_url_parse__ipv4_port(void) + cl_assert_equal_i(git_net_url_is_default_port(&conndata), 0); + } + +-void test_network_url_parse__ipv4_empty_port(void) +-{ +- cl_git_pass(git_net_url_parse(&conndata, "http://192.168.1.1:/resource")); +- cl_assert_equal_s(conndata.scheme, "http"); +- cl_assert_equal_s(conndata.host, "192.168.1.1"); +- cl_assert_equal_s(conndata.port, "80"); +- cl_assert_equal_s(conndata.path, "/resource"); +- cl_assert_equal_p(conndata.username, NULL); +- cl_assert_equal_p(conndata.password, NULL); +- cl_assert_equal_i(git_net_url_is_default_port(&conndata), 1); +-} +- + void test_network_url_parse__ipv4_user_port(void) + { + cl_git_pass(git_net_url_parse(&conndata, +@@ -371,18 +323,6 @@ void test_network_url_parse__ipv6_implied_root_custom_ + cl_assert_equal_i(git_net_url_is_default_port(&conndata), 0); + } + +-void test_network_url_parse__ipv6_implied_root_empty_port(void) +-{ +- cl_git_pass(git_net_url_parse(&conndata, "http://[fe80::dcad:beff:fe00:0001]:")); +- cl_assert_equal_s(conndata.scheme, "http"); +- cl_assert_equal_s(conndata.host, "fe80::dcad:beff:fe00:0001"); +- cl_assert_equal_s(conndata.port, "80"); +- cl_assert_equal_s(conndata.path, "/"); +- cl_assert_equal_p(conndata.username, NULL); +- cl_assert_equal_p(conndata.password, NULL); +- cl_assert_equal_i(git_net_url_is_default_port(&conndata), 1); +-} +- + void test_network_url_parse__ipv6_encoded_password(void) + { + cl_git_pass(git_net_url_parse(&conndata, +@@ -433,18 +373,6 @@ void test_network_url_parse__ipv6_port(void) + cl_assert_equal_p(conndata.username, NULL); + cl_assert_equal_p(conndata.password, NULL); + cl_assert_equal_i(git_net_url_is_default_port(&conndata), 0); +-} +- +-void test_network_url_parse__ipv6_empty_port(void) +-{ +- cl_git_pass(git_net_url_parse(&conndata, "http://[fe80::dcad:beff:fe00:0001]:/resource")); +- cl_assert_equal_s(conndata.scheme, "http"); +- cl_assert_equal_s(conndata.host, "fe80::dcad:beff:fe00:0001"); +- cl_assert_equal_s(conndata.port, "80"); +- cl_assert_equal_s(conndata.path, "/resource"); +- cl_assert_equal_p(conndata.username, NULL); +- cl_assert_equal_p(conndata.password, NULL); +- cl_assert_equal_i(git_net_url_is_default_port(&conndata), 1); + } + + void test_network_url_parse__ipv6_user_port(void) diff --git a/devel/libgit2/pkg-plist b/devel/libgit2/pkg-plist index 410b648a62b9..a1b85dce32c1 100644 --- a/devel/libgit2/pkg-plist +++ b/devel/libgit2/pkg-plist @@ -19,6 +19,7 @@ include/git2/credential_helpers.h include/git2/deprecated.h include/git2/describe.h include/git2/diff.h +include/git2/email.h include/git2/errors.h include/git2/filter.h include/git2/global.h @@ -59,15 +60,18 @@ include/git2/strarray.h include/git2/submodule.h include/git2/sys/alloc.h include/git2/sys/commit.h +include/git2/sys/commit_graph.h include/git2/sys/config.h include/git2/sys/cred.h include/git2/sys/credential.h include/git2/sys/diff.h +include/git2/sys/email.h include/git2/sys/filter.h include/git2/sys/hashsig.h include/git2/sys/index.h include/git2/sys/mempack.h include/git2/sys/merge.h +include/git2/sys/midx.h include/git2/sys/odb_backend.h include/git2/sys/openssl.h include/git2/sys/path.h @@ -86,6 +90,6 @@ include/git2/types.h include/git2/version.h include/git2/worktree.h lib/libgit2.so -lib/libgit2.so.%%PORTVERSION%% +lib/libgit2.so.%%DISTVERSION%% lib/libgit2.so.%%SHLIB_VER%% libdata/pkgconfig/libgit2.pc