Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: libgit2-1.9-1.9.0
@ 2024-12-28 20:20 tranzystorekk
  2025-01-05 19:42 ` [PR PATCH] [Updated] " tranzystorekk
  2025-01-09  9:47 ` [PR PATCH] [Merged]: " tranzystorekk
  0 siblings, 2 replies; 3+ messages in thread
From: tranzystorekk @ 2024-12-28 20:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1262 bytes --]

There is a new 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: 3834 bytes --]

From 5c919963cd5366fe9ac8eb99874d2c757d47348f 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                  | 44 +++++++++++++++++++
 4 files changed, 59 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 1ef462e0278649..d6997d5666e87f 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -1349,6 +1349,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..fe3abeded335ef
--- /dev/null
+++ b/srcpkgs/libgit2-1.9/template
@@ -0,0 +1,44 @@
+# 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=ON -DUSE_HTTP_PARSER=llhttp"
+hostmakedepends="python3 pkg-config"
+makedepends="zlib-devel openssl-devel llhttp-devel libssh2-devel"
+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"
+	}
+}

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Updated] New package: libgit2-1.9-1.9.0
  2024-12-28 20:20 [PR PATCH] New package: libgit2-1.9-1.9.0 tranzystorekk
@ 2025-01-05 19:42 ` tranzystorekk
  2025-01-09  9:47 ` [PR PATCH] [Merged]: " tranzystorekk
  1 sibling, 0 replies; 3+ messages in thread
From: tranzystorekk @ 2025-01-05 19:42 UTC (permalink / raw)
  To: ml

[-- 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"
+	}
+}

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Merged]: New package: libgit2-1.9-1.9.0
  2024-12-28 20:20 [PR PATCH] New package: libgit2-1.9-1.9.0 tranzystorekk
  2025-01-05 19:42 ` [PR PATCH] [Updated] " tranzystorekk
@ 2025-01-09  9:47 ` tranzystorekk
  1 sibling, 0 replies; 3+ messages in thread
From: tranzystorekk @ 2025-01-09  9:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1095 bytes --]

There's a merged pull request on the void-packages repository

New package: libgit2-1.9-1.9.0
https://github.com/void-linux/void-packages/pull/53740

Description:
<!-- 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
-->


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-01-09  9:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-28 20:20 [PR PATCH] New package: libgit2-1.9-1.9.0 tranzystorekk
2025-01-05 19:42 ` [PR PATCH] [Updated] " tranzystorekk
2025-01-09  9:47 ` [PR PATCH] [Merged]: " tranzystorekk

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).