libgit2 is...
licensed under a very permissive license so you can use it anywhere
faster than any other Git library
written in standards compliant C99
completely multi-platform: Windows, Linux, Mac OS X, xBSD
compiled natively under all platforms (yes, even MSVC on Windows)
re-entrant, with sane error handling
designed with a solid and consistent API
available as bindings for all major scripting languages
===> The following configuration options are available for libgit2-1.9.7:
SSH=on: Enable SSH support through libssh2
===> Use 'make config' to modify these settings
devel/libgit2: Fix handling for SSH option
Needs to be specified as USE_SSH=libssh2. Also remove the THREADSAFE
option, this is no longer relevant.
PR: 283006
devel/libgit2: update to 1.6.4
Required for gitlab-ce 16.3.
Bump of pending ports will be done in another commit.
Changelog:
https://github.com/libgit2/libgit2/tags
devel/libgit2: fix build with clang 16
Clang 16 has a new error about incompatible function types, which shows
up when building devel/libgit2:
/wrkdirs/usr/ports/devel/libgit2/work/libgit2-1.5.2/src/util/util.c:731:28:
error: incompatible function pointer types passing 'int (void *, const void *,
const void *)' to parameter of type 'int (*)(const void *, const void *, void
*)' [-Wincompatible-function-pointer-types]
qsort_s(els, nel, elsize, git__qsort_r_glue_cmp, &glue);
^~~~~~~~~~~~~~~~~~~~~
/usr/include/stdlib.h:397:11: note: passing argument to parameter here
int (*)(const void *, const void *, void *), void *);
^
Clang is indeed right, as the version of qsort_s(3) in FreeBSD 13 and
later has the 'void *payload' parameter last:
(Only the first 15 lines of the commit message are shown above )
devel/libgit2: update to 1.5.2
Changelog:
This is a bugfix release to improve the SSH key handling functionality that was
introduced in v1.5.1.
libgit2 can now read the known_hosts file on Windows.
libgit2 will now examine all keys for a particular host in the known_hosts
file for matches, to support remote hosts with multiple key types.
All users of the v1.5 release line are recommended to upgrade.
https://github.com/libgit2/libgit2/blob/v1.5.2/docs/changelog.md
devel/libgit2: Add python as a build dep to fix NINJA_DEFAULT=samurai
Normally, python is brought in from ninja. When NINJA_DEFAULT=samurai,
that dependency is missing.
-- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE)
CMake Error at tests/libgit2/CMakeLists.txt:7 (message):
Could not find a python interpreter, which is needed to build the tests.
Make sure python is available, or pass -DBUILD_TESTS=OFF to skip building
the tests
Note that python is only used to build tests, so no PORTREVISION bump is
needed here.
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
devel/libgit2: security update to 1.3.2
Changelog:
https://github.com/libgit2/libgit2/releases/tag/v1.3.2
This is a security release with multiple changes.
This provides compatibility with git's changes to address CVE 2022-29187. As
a follow up to CVE 2022-24765, now not only is the working directory of a
non-bare repository examined for its ownership, but the .git directory and the
.git file (if present) are also examined for their ownership.
A fix for compatibility with git's (new) behavior for CVE 2022-24765 allows
users on POSIX systems to access a git repository that is owned by them when
they are running in sudo.
A fix for further compatibility with git's (existing) behavior for CVE
2022-24765 allows users on Windows to access a git repository that is owned by
the Administrator when running with escalated privileges (using runas
Administrator).
The bundled zlib is updated to v1.2.12, as prior versions had memory
corruption bugs. It is not known that there is a security vulnerability in
libgit2 based on these bugs, but we are updating to be cautious.
MFH: 2022Q3
Security update of devel/libgit2 and depending ports to fix seceurity
vulnerabilities.
For more details see here:
https://github.com/libgit2/libgit2/releases/tag/v0.27.5
Approved by: mentors (implicit)
MFC after: 1d
MFH: 2018Q4
Security: 8c08ab4c-d06c-11e8-b35c-001b217b3468
Update libgit2 to 0.27.2 and removed obsolete patches from it as it is fixed
upstream now.
Update devel/rubygem-rugged to 0.27.2 and took maintainer-ship for it as it is a
core module required for gitlab.
Added comment suggest by mat that some ports should be updated together.
Reviewed by: mat, swills (mentor)
Approved by: swills (mentor)
Differential Revision: https://reviews.freebsd.org/D15901
devel/libgit2-glib: Unbreak with libgit2 0.27.
The fix is two-fold:
* Adjust the path for the sed call in devel/libgit2 so that we leave out
openssl from libgit2.pc's Requires.private line, otherwise libgit2-glib will
look for openssl.pc, which does not exist when OpenSSL from base is used.
* Reset libgit2-glib back to 0.26, and import a patch both Arch Linux and
openSUSE have been carrying to fix the build with libgit2 0.27. PORTEPOCH was
not set because there is no libgit2-glib 0.27 and no package could have
possibly been built after r469930.
Approved by: mfechner, gnome (kwm)
Differential Revision: https://reviews.freebsd.org/D15437
Update devel/libgit2 to 0.27.0 required for gitlab 10.7.x
Updated patches to match new file locations.
Reviewed by: swills (mentor), wg (maintainer)
Approved by: swills (mentor), wg (maintainer)
Differential Revision: https://reviews.freebsd.org/D15320
Use USES=pathfix where applicable.
PR: 213195
Submitted by: mat
Exp-run by: antoine
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D8093
Fix usage of WITH_OPENSSL_BASE, WITH_OPENSSL_PORT and OPENSSL_PORT.
WITH_OPENSSL_* can't be set after bsd.port.pre.mk.
Fold all other usage into using SSL_DEFAULT == foo
PR: 210149
Submitted by: mat
Exp-run by: antoine
Sponsored by: The FreeBSD Foundation, Absolight
Differential Revision: https://reviews.freebsd.org/D6577
Update libgit2 to 0.22.1. [1]
Update libgit2-glib to 0.22.8.
Update gitg to 3.16.1.
Update py-pygit2 to 0.22.0. [1][3]
Update rubygem-rugged to 0.22.1b1. [2]
This is done in one commit due to API/ABI breakage in libgit2.
PR: 196176 (based on)
Differential Revision: https://reviews.freebsd.org/D2468
Submitted by: lightside@gmx.com
Approved by: maintainer (wg@ blanked) [1], ruby (swills@)[2]
Reviewed by: koobs@ [3]
Fix USE_GITHUB in combinaison with MASTER_SITE= GHC which breaks WRKSRC
PR: ports/177316
Submitted by: William Grzybowski <william88@gmail.com>
Reported by: miwi
Remove CMAKE_USE_PTHREAD from the ports using it.
This setting has not had any effect since r1.13 to bsd.cmake.mk, as it
was only useful when we supported FreeBSD < 7.
Approved by: avilla (mentor), portmgr (miwi)
Feature safe: yes
libgit2 is...
licensed under a very permissive license so you can use it anywhere
faster than any other Git library
written in standards compilant C99
completely multi-platform: Windows, Linux, Mac OS X, xBSD
compiled natively under all platforms (yes, even MSVC on Windows)
re-entrant, with sane error handling
designed with a solid and consistent API
available as bindings for all major scripting languages
WWW: http://libgit2.github.com/