From: tranzystorekk <tranzystorekk@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: libgit2-1.9-1.9.0
Date: Sun, 05 Jan 2025 20:42:46 +0100 [thread overview]
Message-ID: <20250105194246.EA8812C65F@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-53740@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1267 bytes --]
There is an updated pull request by tranzystorekk against master on the void-packages repository
https://github.com/tranzystorekk/void-packages libgit2-1.9
https://github.com/void-linux/void-packages/pull/53740
New package: libgit2-1.9-1.9.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/53740.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libgit2-1.9-53740.patch --]
[-- Type: text/x-diff, Size: 3841 bytes --]
From 2879aafeb8ca9ac48d194820c6f0e1b84acd3177 Mon Sep 17 00:00:00 2001
From: tranzystorekk <tranzystorek.io@protonmail.com>
Date: Sat, 28 Dec 2024 20:08:02 +0100
Subject: [PATCH] New package: libgit2-1.9-1.9.0
---
common/shlibs | 1 +
srcpkgs/libgit2-1.9-devel | 1 +
...test-validate_current_user_ownership.patch | 13 ++++++
srcpkgs/libgit2-1.9/template | 45 +++++++++++++++++++
4 files changed, 60 insertions(+)
create mode 120000 srcpkgs/libgit2-1.9-devel
create mode 100644 srcpkgs/libgit2-1.9/patches/disable-test-validate_current_user_ownership.patch
create mode 100644 srcpkgs/libgit2-1.9/template
diff --git a/common/shlibs b/common/shlibs
index 70f3de1b1ceb07..ef2757a52122a4 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -1347,6 +1347,7 @@ libmicrohttpd.so.12 libmicrohttpd-0.9.73_1
libmicrodns.so.1 libmicrodns-0.2.0_1
libgit2.so.1.7 libgit2-1.7.2_1
libgit2.so.1.8 libgit2-1.8-1.8.1_1
+libgit2.so.1.9 libgit2-1.9-1.9.0_1
libgit2-glib-1.0.so.0 libgit2-glib-1.2.0_1
libagg.so.2 agg-2.5_1
libzzip-0.so.13 zziplib-0.13.62_1
diff --git a/srcpkgs/libgit2-1.9-devel b/srcpkgs/libgit2-1.9-devel
new file mode 120000
index 00000000000000..c9346bf001a10b
--- /dev/null
+++ b/srcpkgs/libgit2-1.9-devel
@@ -0,0 +1 @@
+libgit2-1.9
\ No newline at end of file
diff --git a/srcpkgs/libgit2-1.9/patches/disable-test-validate_current_user_ownership.patch b/srcpkgs/libgit2-1.9/patches/disable-test-validate_current_user_ownership.patch
new file mode 100644
index 00000000000000..33be4ac91e397c
--- /dev/null
+++ b/srcpkgs/libgit2-1.9/patches/disable-test-validate_current_user_ownership.patch
@@ -0,0 +1,13 @@
+diff --git a/tests/util/path/core.c b/tests/util/path/core.c
+index d1935a8..3d98f35 100644
+--- a/tests/util/path/core.c
++++ b/tests/util/path/core.c
+@@ -761,7 +761,7 @@ void test_path_core__validate_current_user_ownership(void)
+ cl_git_fail(git_fs_path_owner_is_current_user(&is_cur, "c:\\path\\does\\not\\exist"));
+ #else
+ cl_git_pass(git_fs_path_owner_is_current_user(&is_cur, "/"));
+- cl_assert_equal_i(is_cur, (geteuid() == 0));
++ /* cl_assert_equal_i(is_cur, (geteuid() == 0)); xbps-src chroot belongs to $USER, not root */
+
+ cl_git_fail(git_fs_path_owner_is_current_user(&is_cur, "/path/does/not/exist"));
+ #endif
diff --git a/srcpkgs/libgit2-1.9/template b/srcpkgs/libgit2-1.9/template
new file mode 100644
index 00000000000000..63ba69489b0d4e
--- /dev/null
+++ b/srcpkgs/libgit2-1.9/template
@@ -0,0 +1,45 @@
+# Template file for 'libgit2-1.9'
+pkgname=libgit2-1.9
+version=1.9.0
+revision=1
+build_style=cmake
+configure_args="-DENABLE_REPRODUCIBLE_BUILDS=ON -DBUILD_CLI=OFF -DUSE_SSH=exec -DUSE_HTTP_PARSER=llhttp"
+hostmakedepends="python3 pkg-config"
+makedepends="zlib-devel openssl-devel llhttp-devel"
+depends="openssh"
+short_desc="Git linkable library ${pkgname#libgit2-}"
+maintainer="tranzystorekk <tranzystorek.io@protonmail.com>"
+license="GPL-2.0-only WITH GCC-exception-2.0"
+homepage="https://libgit2.org"
+distfiles="https://github.com/libgit2/libgit2/archive/refs/tags/v${version}.tar.gz"
+checksum=75b27d4d6df44bd34e2f70663cfd998f5ec41e680e1e593238bbe517a84c7ed2
+
+if [ -z "$XBPS_CHECK_PKGS" ]; then
+ configure_args+=" -DBUILD_TESTS=OFF"
+fi
+
+CFLAGS="-D_LARGE_FILE_SOURCE=1 -D_FILE_OFFSET_BITS=64"
+
+post_patch() {
+ # no online tests
+ vsed \
+ -i tests/libgit2/CMakeLists.txt \
+ -e '/-sonline/s/^/#/'
+}
+
+post_install() {
+ vlicense COPYING
+}
+
+libgit2-1.9-devel_package() {
+ depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
+ provides="virtual-libgit2-devel-${version}_${revision}"
+ conflicts="virtual-libgit2-devel"
+ short_desc+=" - development files"
+ pkg_install() {
+ vmove usr/include
+ vmove usr/lib/cmake
+ vmove usr/lib/pkgconfig
+ vmove "usr/lib/*.so"
+ }
+}
next prev parent reply other threads:[~2025-01-05 19:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-28 20:20 [PR PATCH] " tranzystorekk
2025-01-05 19:42 ` tranzystorekk [this message]
2025-01-09 9:47 ` [PR PATCH] [Merged]: " tranzystorekk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250105194246.EA8812C65F@inbox.vuxu.org \
--to=tranzystorekk@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).