diff mbox series

[meta-lts-mixins,scarthgap/rust,05/37] libgit2: backport libgit2 1.9.4

Message ID 652b2340e8b7a7bcf241ad7053d1dd3735fe8bdc.1789156653.git.scott.murray@konsulko.com
State New
Headers show
Series Update to 1.98.1 | expand

Commit Message

Scott Murray Sept. 11, 2026, 8:12 p.m. UTC
libgit2 was not included in the original set of backported packages,
but cargo-c does depend on it, and 1.9.x will be required going
forward.  Backport the 1.9.4 recipe as of openembedded-core master
branch commit d4de7d0256 to serve as the starting point for future
backport efforts.  No other significant packages depend upon libgit2,
so side effects should be minimal.

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
---
 recipes-support/libgit2/libgit2_1.9.4.bb | 25 ++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 recipes-support/libgit2/libgit2_1.9.4.bb
diff mbox series

Patch

diff --git a/recipes-support/libgit2/libgit2_1.9.4.bb b/recipes-support/libgit2/libgit2_1.9.4.bb
new file mode 100644
index 0000000..dbd60aa
--- /dev/null
+++ b/recipes-support/libgit2/libgit2_1.9.4.bb
@@ -0,0 +1,25 @@ 
+SUMMARY = "the Git linkable library"
+HOMEPAGE = "http://libgit2.github.com/"
+LICENSE = "GPL-2.0-with-GCC-exception & MIT & OpenSSL & BSD-3-Clause & Zlib & ISC & LGPL-2.1-or-later & CC0-1.0 & BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://COPYING;md5=8eacfdc17c8f4d219e131a073973b97d"
+
+DEPENDS = "curl openssl zlib libssh2 libgcrypt libpcre2"
+
+SRC_URI = "git://github.com/libgit2/libgit2.git;branch=maint/v1.9;protocol=https"
+SRCREV = "f7164261c9bc0a7e0ebf767c584e5192810a8b24"
+
+S = "${WORKDIR}/git"
+
+inherit cmake
+
+EXTRA_OECMAKE = "\
+    -DBUILD_TESTS=OFF \
+    -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+    -DREGEX_BACKEND='pcre2' \
+"
+
+BBCLASSEXTEND = "native"
+
+do_install:append() {
+    sed -i -e 's,${RECIPE_SYSROOT},,g' ${D}${libdir}/cmake/libgit2/libgit2Targets.cmake
+}