Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: sequoia-git-0.1.0
@ 2023-12-09 17:21 jcgruenhage
  2023-12-09 18:52 ` [PR REVIEW] " tranzystorekk
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: jcgruenhage @ 2023-12-09 17:21 UTC (permalink / raw)
  To: ml

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

There is a new pull request by jcgruenhage against master on the void-packages repository

https://github.com/jcgruenhage/void-packages sequoia-git-0.1.0_1
https://github.com/void-linux/void-packages/pull/47663

New package: sequoia-git-0.1.0
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### 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/47663.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sequoia-git-0.1.0_1-47663.patch --]
[-- Type: text/x-diff, Size: 3548 bytes --]

From 39a539c7217f08673b6735d5949a5481132ebc69 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 9 Dec 2023 18:20:30 +0100
Subject: [PATCH] New package: sequoia-git-0.1.0

---
 ...mpletion-artifacts-to-reasonable-dir.patch | 50 +++++++++++++++++++
 srcpkgs/sequoia-git/template                  | 25 ++++++++++
 2 files changed, 75 insertions(+)
 create mode 100644 srcpkgs/sequoia-git/patches/0001-write-man-and-completion-artifacts-to-reasonable-dir.patch
 create mode 100644 srcpkgs/sequoia-git/template

diff --git a/srcpkgs/sequoia-git/patches/0001-write-man-and-completion-artifacts-to-reasonable-dir.patch b/srcpkgs/sequoia-git/patches/0001-write-man-and-completion-artifacts-to-reasonable-dir.patch
new file mode 100644
index 0000000000000..90de0c91131af
--- /dev/null
+++ b/srcpkgs/sequoia-git/patches/0001-write-man-and-completion-artifacts-to-reasonable-dir.patch
@@ -0,0 +1,50 @@
+From 54d7807a275d544b42ca509786c32e458c4307ae Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
+ <jan.christian@gruenhage.xyz>
+Date: Sat, 9 Dec 2023 15:05:01 +0100
+Subject: [PATCH] write man and completion artifacts to reasonable directories
+
+---
+ build.rs | 19 ++-----------------
+ 1 file changed, 2 insertions(+), 17 deletions(-)
+
+diff --git a/build.rs b/build.rs
+index 1b950a6..a501d3d 100644
+--- a/build.rs
++++ b/build.rs
+@@ -49,14 +49,7 @@ fn git_version() {
+ 
+ fn completions() {
+     // Generate shell completions
+-    let outdir = match std::env::var_os("CARGO_TARGET_DIR") {
+-        None => {
+-            println!("cargo:warning=Not generating completion files, \
+-                      environment variable CARGO_TARGET_DIR not set");
+-            return;
+-        }
+-        Some(outdir) => outdir,
+-    };
++    let outdir = PathBuf::from("completions");
+ 
+     std::fs::create_dir_all(&outdir).unwrap();
+ 
+@@ -72,15 +65,7 @@ fn completions() {
+ 
+ fn man_pages() {
+     // Man page support.
+-    let outdir = match std::env::var_os("CARGO_TARGET_DIR") {
+-        None => {
+-            println!("cargo:warning=Not generating man pages, \
+-                      environment variable CARGO_TARGET_DIR not set");
+-            return;
+-        }
+-        Some(outdir) => PathBuf::from(outdir),
+-    };
+-
++    let outdir = PathBuf::from("man");
+     std::fs::create_dir_all(&outdir).unwrap();
+ 
+     let cli = cli::Cli::command();
+-- 
+2.43.0
+
diff --git a/srcpkgs/sequoia-git/template b/srcpkgs/sequoia-git/template
new file mode 100644
index 0000000000000..2bca6b04e5910
--- /dev/null
+++ b/srcpkgs/sequoia-git/template
@@ -0,0 +1,25 @@
+# Template file for 'sequoia-git'
+pkgname=sequoia-git
+version=0.1.0
+revision=1
+build_style=cargo
+build_helper=qemu
+_deps="nettle-devel openssl-devel sqlite-devel"
+hostmakedepends="pkg-config llvm clang ${_deps}"
+makedepends="${_deps}"
+checkdepends="git gnupg"
+short_desc="Tool to verify git commit signatures based on a policy"
+maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
+license="LGPL-2.0-or-later"
+homepage="https://gitlab.com/sequoia-pgp/sequoia-git"
+distfiles="https://gitlab.com/sequoia-pgp/sequoia-git/-/archive/v${version}/sequoia-git-v${version}.tar.gz"
+checksum=c1f7d2647538f3335dab8862a9c4b78bac8c41bb22a3917ec45989849fd035dd
+
+post_install() {
+	for page in man/*; do
+		vman ${page}
+	done
+	vcompletion completions/sq-git.bash bash
+	vcompletion completions/sq-git.fish fish
+	vcompletion completions/_sq-git zsh
+}

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

* Re: [PR REVIEW] New package: sequoia-git-0.1.0
  2023-12-09 17:21 [PR PATCH] New package: sequoia-git-0.1.0 jcgruenhage
@ 2023-12-09 18:52 ` tranzystorekk
  2023-12-10 12:36 ` jcgruenhage
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: tranzystorekk @ 2023-12-09 18:52 UTC (permalink / raw)
  To: ml

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

New review comment by tranzystorekk on void-packages repository

https://github.com/void-linux/void-packages/pull/47663#discussion_r1421506016

Comment:
probably missing libgit2-devel (+ git2 crate patch) and bzip2-devel

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

* Re: [PR REVIEW] New package: sequoia-git-0.1.0
  2023-12-09 17:21 [PR PATCH] New package: sequoia-git-0.1.0 jcgruenhage
  2023-12-09 18:52 ` [PR REVIEW] " tranzystorekk
@ 2023-12-10 12:36 ` jcgruenhage
  2023-12-10 12:42 ` tranzystorekk
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jcgruenhage @ 2023-12-10 12:36 UTC (permalink / raw)
  To: ml

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

New review comment by jcgruenhage on void-packages repository

https://github.com/void-linux/void-packages/pull/47663#discussion_r1421742613

Comment:
Thanks for catching these! Will rebase onto #45976, because it complains about libgit2 being too old. Is that the patch you were talking about?

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

* Re: [PR REVIEW] New package: sequoia-git-0.1.0
  2023-12-09 17:21 [PR PATCH] New package: sequoia-git-0.1.0 jcgruenhage
  2023-12-09 18:52 ` [PR REVIEW] " tranzystorekk
  2023-12-10 12:36 ` jcgruenhage
@ 2023-12-10 12:42 ` tranzystorekk
  2023-12-10 12:48 ` [PR PATCH] [Updated] " jcgruenhage
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: tranzystorekk @ 2023-12-10 12:42 UTC (permalink / raw)
  To: ml

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

New review comment by tranzystorekk on void-packages repository

https://github.com/void-linux/void-packages/pull/47663#discussion_r1421743507

Comment:
That one I'm not sure when I'll finish, I meant a downgrade patch like in e.g. https://github.com/void-linux/void-packages/tree/e53d2e9b28a449ad4e52bc0d4520454293873e4a/srcpkgs/cocogitto (patch that bumps down git2 version in Cargo.toml + a `post_patch()` with `cargo update --package git2@0.18.0 --precise 0.17.2`)

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

* Re: [PR PATCH] [Updated] New package: sequoia-git-0.1.0
  2023-12-09 17:21 [PR PATCH] New package: sequoia-git-0.1.0 jcgruenhage
                   ` (2 preceding siblings ...)
  2023-12-10 12:42 ` tranzystorekk
@ 2023-12-10 12:48 ` jcgruenhage
  2023-12-10 12:51 ` [PR REVIEW] " jcgruenhage
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jcgruenhage @ 2023-12-10 12:48 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by jcgruenhage against master on the void-packages repository

https://github.com/jcgruenhage/void-packages sequoia-git-0.1.0_1
https://github.com/void-linux/void-packages/pull/47663

New package: sequoia-git-0.1.0
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### 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/47663.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sequoia-git-0.1.0_1-47663.patch --]
[-- Type: text/x-diff, Size: 10676 bytes --]

From 0f6e47a829f45dc9e6001fa1f75362186729bb01 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Tue, 22 Aug 2023 15:00:53 +0200
Subject: [PATCH 1/4] libgit2: update to 1.7.1

---
 common/shlibs                                 |  2 +-
 .../patches/fix-missing-oid-type.patch        | 24 -------------------
 srcpkgs/libgit2/template                      |  8 +++----
 3 files changed, 5 insertions(+), 29 deletions(-)
 delete mode 100644 srcpkgs/libgit2/patches/fix-missing-oid-type.patch

diff --git a/common/shlibs b/common/shlibs
index 863776568fb91..7a8890d385146 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -1341,7 +1341,7 @@ libunwind-ppc64.so.8 libunwind-1.5.0_3
 libunwind-setjmp.so.0 libunwind-1.5.0_3
 libmicrohttpd.so.12 libmicrohttpd-0.9.73_1
 libmicrodns.so.1 libmicrodns-0.2.0_1
-libgit2.so.1.6 libgit2-1.6.4_1
+libgit2.so.1.7 libgit2-1.7.1_1
 libgit2-glib-1.0.so.0 libgit2-glib-0.23.4_1
 libagg.so.2 agg-2.5_1
 libzzip-0.so.13 zziplib-0.13.62_1
diff --git a/srcpkgs/libgit2/patches/fix-missing-oid-type.patch b/srcpkgs/libgit2/patches/fix-missing-oid-type.patch
deleted file mode 100644
index 8d24809f244a1..0000000000000
--- a/srcpkgs/libgit2/patches/fix-missing-oid-type.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-From 47ebf589250159d6a98bd91625aefd2e1383ec26 Mon Sep 17 00:00:00 2001
-From: Oliver Reiche <oliver.reiche@gmail.com>
-Date: Wed, 3 May 2023 12:57:06 +0200
-Subject: [PATCH] Fix missing oid type for "fake" repositories
-
-... otherwise git_tree__parse_raw() will fail to obtain
-the correct oid size, which causes the entire parse to fail.
----
- src/libgit2/repository.c | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/src/libgit2/repository.c b/src/libgit2/repository.c
-index 804e436abeb..c45c5855058 100644
---- a/src/libgit2/repository.c
-+++ b/src/libgit2/repository.c
-@@ -1152,6 +1152,8 @@ int git_repository_wrap_odb(git_repository **repo_out, git_odb *odb)
- 	repo = repository_alloc();
- 	GIT_ERROR_CHECK_ALLOC(repo);
- 
-+	repo->oid_type = GIT_OID_DEFAULT;
-+
- 	git_repository_set_odb(repo, odb);
- 	*repo_out = repo;
- 
diff --git a/srcpkgs/libgit2/template b/srcpkgs/libgit2/template
index 035b2cebae821..c73d550f11321 100644
--- a/srcpkgs/libgit2/template
+++ b/srcpkgs/libgit2/template
@@ -1,9 +1,9 @@
 # Template file for 'libgit2'
 pkgname=libgit2
-version=1.6.4
-revision=2
+version=1.7.1
+revision=1
 build_style=cmake
-configure_args="-DENABLE_REPRODUCIBLE_BUILDS=ON -DUSE_SSH=ON"
+configure_args="-DENABLE_REPRODUCIBLE_BUILDS=ON -DUSE_SSH=ON -DUSE_HTTP_PARSER=system"
 hostmakedepends="python3 pkg-config"
 makedepends="zlib-devel openssl-devel http-parser-devel libssh2-devel"
 short_desc="Git linkable library"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="custom:GPL-2.0-or-later WITH GCC-exception-2.0"
 homepage="https://libgit2.org"
 distfiles="https://github.com/libgit2/libgit2/archive/refs/tags/v${version}.tar.gz"
-checksum=d25866a4ee275a64f65be2d9a663680a5cf1ed87b7ee4c534997562c828e500d
+checksum=17d2b292f21be3892b704dddff29327b3564f96099a1c53b00edc23160c71327
 
 if [ "$XBPS_CHECK_PKGS" ]; then
 	configure_args+=" -DBUILD_TESTS=ON"

From d85e0d4122b8099403d16c10ad1fefb3b77b3de8 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Tue, 22 Aug 2023 16:46:36 +0200
Subject: [PATCH 2/4] common/build-helper/rust.sh: force using system libgit2
 library

---
 common/build-helper/rust.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/common/build-helper/rust.sh b/common/build-helper/rust.sh
index 460aad6a12e12..c906a89f99547 100644
--- a/common/build-helper/rust.sh
+++ b/common/build-helper/rust.sh
@@ -67,3 +67,6 @@ export RUSTONIG_SYSTEM_LIBONIG=1
 
 # libsqlite3-sys
 export LIBSQLITE3_SYS_USE_PKG_CONFIG=1
+
+# libgit2-sys
+export LIBGIT2_NO_VENDOR=1

From e10bf811937a5c377eb88ed1c5c3bec40d5f8e95 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Thu, 30 Nov 2023 10:27:06 +0100
Subject: [PATCH 3/4] cargo: rebuild for libgit2-1.7

---
 srcpkgs/cargo/patches/downgrade-git2.patch | 67 ----------------------
 srcpkgs/cargo/template                     |  2 +-
 2 files changed, 1 insertion(+), 68 deletions(-)
 delete mode 100644 srcpkgs/cargo/patches/downgrade-git2.patch

diff --git a/srcpkgs/cargo/patches/downgrade-git2.patch b/srcpkgs/cargo/patches/downgrade-git2.patch
deleted file mode 100644
index ace10e7702981..0000000000000
--- a/srcpkgs/cargo/patches/downgrade-git2.patch
+++ /dev/null
@@ -1,67 +0,0 @@
-diff --git a/Cargo.lock b/Cargo.lock
-index cc0cb9a..f6de424 100644
---- a/Cargo.lock
-+++ b/Cargo.lock
-@@ -1006,11 +1006,11 @@ dependencies = [
- 
- [[package]]
- name = "git2"
--version = "0.18.0"
-+version = "0.17.2"
- source = "registry+https://github.com/rust-lang/crates.io-index"
--checksum = "12ef350ba88a33b4d524b1d1c79096c9ade5ef8c59395df0e60d1e1889414c0e"
-+checksum = "7b989d6a7ca95a362cf2cfc5ad688b3a467be1f87e480b8dad07fee8c79b0044"
- dependencies = [
-- "bitflags 2.3.3",
-+ "bitflags 1.3.2",
-  "libc",
-  "libgit2-sys",
-  "log",
-@@ -1021,9 +1021,9 @@ dependencies = [
- 
- [[package]]
- name = "git2-curl"
--version = "0.19.0"
-+version = "0.18.0"
- source = "registry+https://github.com/rust-lang/crates.io-index"
--checksum = "78e26b61608c573ffd26fc79061a823aa5147449a1afe1f61679a21e2031f7c3"
-+checksum = "f8f8b7432b72928cff76f69e59ed5327f94a52763731e71274960dee72fe5f8c"
- dependencies = [
-  "curl",
-  "git2",
-@@ -2003,9 +2003,9 @@ checksum = "9cdc71e17332e86d2e1d38c1f99edcb6288ee11b815fb1a4b049eaa2114d369b"
- 
- [[package]]
- name = "libgit2-sys"
--version = "0.16.1+1.7.1"
-+version = "0.15.2+1.6.4"
- source = "registry+https://github.com/rust-lang/crates.io-index"
--checksum = "f2a2bb3680b094add03bb3732ec520ece34da31a8cd2d633d1389d0f0fb60d0c"
-+checksum = "a80df2e11fb4a61f4ba2ab42dbe7f74468da143f1a75c74e11dee7c813f694fa"
- dependencies = [
-  "cc",
-  "libc",
-diff --git a/Cargo.toml b/Cargo.toml
-index 4403044..1d50590 100644
---- a/Cargo.toml
-+++ b/Cargo.toml
-@@ -40,8 +40,8 @@ curl = "0.4.44"
- curl-sys = "0.4.68"
- filetime = "0.2.22"
- flate2 = { version = "1.0.27", default-features = false, features = ["zlib"] }
--git2 = "0.18.0"
--git2-curl = "0.19.0"
-+git2 = "0.17.2"
-+git2-curl = "0.18.0"
- gix = { version = "0.54.1", default-features = false, features = ["blocking-http-transport-curl", "progress-tree", "revision"] }
- gix-features-for-configuration-only = { version = "0.35.0", package = "gix-features", features = [ "parallel" ] }
- glob = "0.3.1"
-@@ -58,7 +58,7 @@ itertools = "0.10.0"
- jobserver = "0.1.26"
- lazycell = "1.3.0"
- libc = "0.2.148"
--libgit2-sys = "0.16.1"
-+libgit2-sys = "0.15.2"
- libloading = "0.8.0"
- memchr = "2.6.2"
- miow = "0.6.0"
diff --git a/srcpkgs/cargo/template b/srcpkgs/cargo/template
index 208c18818d570..b6b1154e2d8bd 100644
--- a/srcpkgs/cargo/template
+++ b/srcpkgs/cargo/template
@@ -1,7 +1,7 @@
 # Template file for 'cargo'
 pkgname=cargo
 version=1.74.0
-revision=1
+revision=2
 _cargo_revision=0.75.0
 build_helper=rust
 hostmakedepends="cargo-bootstrap rust python3 curl pkg-config zlib-devel"

From 5e2efeec89b3d99e68d9183b3518d11c2e162232 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 9 Dec 2023 18:20:30 +0100
Subject: [PATCH 4/4] New package: sequoia-git-0.1.0

---
 ...mpletion-artifacts-to-reasonable-dir.patch | 50 +++++++++++++++++++
 srcpkgs/sequoia-git/template                  | 25 ++++++++++
 2 files changed, 75 insertions(+)
 create mode 100644 srcpkgs/sequoia-git/patches/0001-write-man-and-completion-artifacts-to-reasonable-dir.patch
 create mode 100644 srcpkgs/sequoia-git/template

diff --git a/srcpkgs/sequoia-git/patches/0001-write-man-and-completion-artifacts-to-reasonable-dir.patch b/srcpkgs/sequoia-git/patches/0001-write-man-and-completion-artifacts-to-reasonable-dir.patch
new file mode 100644
index 0000000000000..90de0c91131af
--- /dev/null
+++ b/srcpkgs/sequoia-git/patches/0001-write-man-and-completion-artifacts-to-reasonable-dir.patch
@@ -0,0 +1,50 @@
+From 54d7807a275d544b42ca509786c32e458c4307ae Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
+ <jan.christian@gruenhage.xyz>
+Date: Sat, 9 Dec 2023 15:05:01 +0100
+Subject: [PATCH] write man and completion artifacts to reasonable directories
+
+---
+ build.rs | 19 ++-----------------
+ 1 file changed, 2 insertions(+), 17 deletions(-)
+
+diff --git a/build.rs b/build.rs
+index 1b950a6..a501d3d 100644
+--- a/build.rs
++++ b/build.rs
+@@ -49,14 +49,7 @@ fn git_version() {
+ 
+ fn completions() {
+     // Generate shell completions
+-    let outdir = match std::env::var_os("CARGO_TARGET_DIR") {
+-        None => {
+-            println!("cargo:warning=Not generating completion files, \
+-                      environment variable CARGO_TARGET_DIR not set");
+-            return;
+-        }
+-        Some(outdir) => outdir,
+-    };
++    let outdir = PathBuf::from("completions");
+ 
+     std::fs::create_dir_all(&outdir).unwrap();
+ 
+@@ -72,15 +65,7 @@ fn completions() {
+ 
+ fn man_pages() {
+     // Man page support.
+-    let outdir = match std::env::var_os("CARGO_TARGET_DIR") {
+-        None => {
+-            println!("cargo:warning=Not generating man pages, \
+-                      environment variable CARGO_TARGET_DIR not set");
+-            return;
+-        }
+-        Some(outdir) => PathBuf::from(outdir),
+-    };
+-
++    let outdir = PathBuf::from("man");
+     std::fs::create_dir_all(&outdir).unwrap();
+ 
+     let cli = cli::Cli::command();
+-- 
+2.43.0
+
diff --git a/srcpkgs/sequoia-git/template b/srcpkgs/sequoia-git/template
new file mode 100644
index 0000000000000..2bca6b04e5910
--- /dev/null
+++ b/srcpkgs/sequoia-git/template
@@ -0,0 +1,25 @@
+# Template file for 'sequoia-git'
+pkgname=sequoia-git
+version=0.1.0
+revision=1
+build_style=cargo
+build_helper=qemu
+_deps="nettle-devel openssl-devel sqlite-devel"
+hostmakedepends="pkg-config llvm clang ${_deps}"
+makedepends="${_deps}"
+checkdepends="git gnupg"
+short_desc="Tool to verify git commit signatures based on a policy"
+maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
+license="LGPL-2.0-or-later"
+homepage="https://gitlab.com/sequoia-pgp/sequoia-git"
+distfiles="https://gitlab.com/sequoia-pgp/sequoia-git/-/archive/v${version}/sequoia-git-v${version}.tar.gz"
+checksum=c1f7d2647538f3335dab8862a9c4b78bac8c41bb22a3917ec45989849fd035dd
+
+post_install() {
+	for page in man/*; do
+		vman ${page}
+	done
+	vcompletion completions/sq-git.bash bash
+	vcompletion completions/sq-git.fish fish
+	vcompletion completions/_sq-git zsh
+}

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

* Re: [PR REVIEW] New package: sequoia-git-0.1.0
  2023-12-09 17:21 [PR PATCH] New package: sequoia-git-0.1.0 jcgruenhage
                   ` (3 preceding siblings ...)
  2023-12-10 12:48 ` [PR PATCH] [Updated] " jcgruenhage
@ 2023-12-10 12:51 ` jcgruenhage
  2023-12-10 19:44 ` [PR PATCH] [Updated] " jcgruenhage
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jcgruenhage @ 2023-12-10 12:51 UTC (permalink / raw)
  To: ml

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

New review comment by jcgruenhage on void-packages repository

https://github.com/void-linux/void-packages/pull/47663#discussion_r1421744925

Comment:
I'm in no hurry when it comes to this package being merged. I've locally installed a version with a vendored libgit2 for now.

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

* Re: [PR PATCH] [Updated] New package: sequoia-git-0.1.0
  2023-12-09 17:21 [PR PATCH] New package: sequoia-git-0.1.0 jcgruenhage
                   ` (4 preceding siblings ...)
  2023-12-10 12:51 ` [PR REVIEW] " jcgruenhage
@ 2023-12-10 19:44 ` jcgruenhage
  2023-12-11 14:26 ` jcgruenhage
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jcgruenhage @ 2023-12-10 19:44 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by jcgruenhage against master on the void-packages repository

https://github.com/jcgruenhage/void-packages sequoia-git-0.1.0_1
https://github.com/void-linux/void-packages/pull/47663

New package: sequoia-git-0.1.0
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### 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/47663.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sequoia-git-0.1.0_1-47663.patch --]
[-- Type: text/x-diff, Size: 10702 bytes --]

From 0f6e47a829f45dc9e6001fa1f75362186729bb01 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Tue, 22 Aug 2023 15:00:53 +0200
Subject: [PATCH 1/4] libgit2: update to 1.7.1

---
 common/shlibs                                 |  2 +-
 .../patches/fix-missing-oid-type.patch        | 24 -------------------
 srcpkgs/libgit2/template                      |  8 +++----
 3 files changed, 5 insertions(+), 29 deletions(-)
 delete mode 100644 srcpkgs/libgit2/patches/fix-missing-oid-type.patch

diff --git a/common/shlibs b/common/shlibs
index 863776568fb91..7a8890d385146 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -1341,7 +1341,7 @@ libunwind-ppc64.so.8 libunwind-1.5.0_3
 libunwind-setjmp.so.0 libunwind-1.5.0_3
 libmicrohttpd.so.12 libmicrohttpd-0.9.73_1
 libmicrodns.so.1 libmicrodns-0.2.0_1
-libgit2.so.1.6 libgit2-1.6.4_1
+libgit2.so.1.7 libgit2-1.7.1_1
 libgit2-glib-1.0.so.0 libgit2-glib-0.23.4_1
 libagg.so.2 agg-2.5_1
 libzzip-0.so.13 zziplib-0.13.62_1
diff --git a/srcpkgs/libgit2/patches/fix-missing-oid-type.patch b/srcpkgs/libgit2/patches/fix-missing-oid-type.patch
deleted file mode 100644
index 8d24809f244a1..0000000000000
--- a/srcpkgs/libgit2/patches/fix-missing-oid-type.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-From 47ebf589250159d6a98bd91625aefd2e1383ec26 Mon Sep 17 00:00:00 2001
-From: Oliver Reiche <oliver.reiche@gmail.com>
-Date: Wed, 3 May 2023 12:57:06 +0200
-Subject: [PATCH] Fix missing oid type for "fake" repositories
-
-... otherwise git_tree__parse_raw() will fail to obtain
-the correct oid size, which causes the entire parse to fail.
----
- src/libgit2/repository.c | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/src/libgit2/repository.c b/src/libgit2/repository.c
-index 804e436abeb..c45c5855058 100644
---- a/src/libgit2/repository.c
-+++ b/src/libgit2/repository.c
-@@ -1152,6 +1152,8 @@ int git_repository_wrap_odb(git_repository **repo_out, git_odb *odb)
- 	repo = repository_alloc();
- 	GIT_ERROR_CHECK_ALLOC(repo);
- 
-+	repo->oid_type = GIT_OID_DEFAULT;
-+
- 	git_repository_set_odb(repo, odb);
- 	*repo_out = repo;
- 
diff --git a/srcpkgs/libgit2/template b/srcpkgs/libgit2/template
index 035b2cebae821..c73d550f11321 100644
--- a/srcpkgs/libgit2/template
+++ b/srcpkgs/libgit2/template
@@ -1,9 +1,9 @@
 # Template file for 'libgit2'
 pkgname=libgit2
-version=1.6.4
-revision=2
+version=1.7.1
+revision=1
 build_style=cmake
-configure_args="-DENABLE_REPRODUCIBLE_BUILDS=ON -DUSE_SSH=ON"
+configure_args="-DENABLE_REPRODUCIBLE_BUILDS=ON -DUSE_SSH=ON -DUSE_HTTP_PARSER=system"
 hostmakedepends="python3 pkg-config"
 makedepends="zlib-devel openssl-devel http-parser-devel libssh2-devel"
 short_desc="Git linkable library"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="custom:GPL-2.0-or-later WITH GCC-exception-2.0"
 homepage="https://libgit2.org"
 distfiles="https://github.com/libgit2/libgit2/archive/refs/tags/v${version}.tar.gz"
-checksum=d25866a4ee275a64f65be2d9a663680a5cf1ed87b7ee4c534997562c828e500d
+checksum=17d2b292f21be3892b704dddff29327b3564f96099a1c53b00edc23160c71327
 
 if [ "$XBPS_CHECK_PKGS" ]; then
 	configure_args+=" -DBUILD_TESTS=ON"

From d85e0d4122b8099403d16c10ad1fefb3b77b3de8 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Tue, 22 Aug 2023 16:46:36 +0200
Subject: [PATCH 2/4] common/build-helper/rust.sh: force using system libgit2
 library

---
 common/build-helper/rust.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/common/build-helper/rust.sh b/common/build-helper/rust.sh
index 460aad6a12e12..c906a89f99547 100644
--- a/common/build-helper/rust.sh
+++ b/common/build-helper/rust.sh
@@ -67,3 +67,6 @@ export RUSTONIG_SYSTEM_LIBONIG=1
 
 # libsqlite3-sys
 export LIBSQLITE3_SYS_USE_PKG_CONFIG=1
+
+# libgit2-sys
+export LIBGIT2_NO_VENDOR=1

From e10bf811937a5c377eb88ed1c5c3bec40d5f8e95 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Thu, 30 Nov 2023 10:27:06 +0100
Subject: [PATCH 3/4] cargo: rebuild for libgit2-1.7

---
 srcpkgs/cargo/patches/downgrade-git2.patch | 67 ----------------------
 srcpkgs/cargo/template                     |  2 +-
 2 files changed, 1 insertion(+), 68 deletions(-)
 delete mode 100644 srcpkgs/cargo/patches/downgrade-git2.patch

diff --git a/srcpkgs/cargo/patches/downgrade-git2.patch b/srcpkgs/cargo/patches/downgrade-git2.patch
deleted file mode 100644
index ace10e7702981..0000000000000
--- a/srcpkgs/cargo/patches/downgrade-git2.patch
+++ /dev/null
@@ -1,67 +0,0 @@
-diff --git a/Cargo.lock b/Cargo.lock
-index cc0cb9a..f6de424 100644
---- a/Cargo.lock
-+++ b/Cargo.lock
-@@ -1006,11 +1006,11 @@ dependencies = [
- 
- [[package]]
- name = "git2"
--version = "0.18.0"
-+version = "0.17.2"
- source = "registry+https://github.com/rust-lang/crates.io-index"
--checksum = "12ef350ba88a33b4d524b1d1c79096c9ade5ef8c59395df0e60d1e1889414c0e"
-+checksum = "7b989d6a7ca95a362cf2cfc5ad688b3a467be1f87e480b8dad07fee8c79b0044"
- dependencies = [
-- "bitflags 2.3.3",
-+ "bitflags 1.3.2",
-  "libc",
-  "libgit2-sys",
-  "log",
-@@ -1021,9 +1021,9 @@ dependencies = [
- 
- [[package]]
- name = "git2-curl"
--version = "0.19.0"
-+version = "0.18.0"
- source = "registry+https://github.com/rust-lang/crates.io-index"
--checksum = "78e26b61608c573ffd26fc79061a823aa5147449a1afe1f61679a21e2031f7c3"
-+checksum = "f8f8b7432b72928cff76f69e59ed5327f94a52763731e71274960dee72fe5f8c"
- dependencies = [
-  "curl",
-  "git2",
-@@ -2003,9 +2003,9 @@ checksum = "9cdc71e17332e86d2e1d38c1f99edcb6288ee11b815fb1a4b049eaa2114d369b"
- 
- [[package]]
- name = "libgit2-sys"
--version = "0.16.1+1.7.1"
-+version = "0.15.2+1.6.4"
- source = "registry+https://github.com/rust-lang/crates.io-index"
--checksum = "f2a2bb3680b094add03bb3732ec520ece34da31a8cd2d633d1389d0f0fb60d0c"
-+checksum = "a80df2e11fb4a61f4ba2ab42dbe7f74468da143f1a75c74e11dee7c813f694fa"
- dependencies = [
-  "cc",
-  "libc",
-diff --git a/Cargo.toml b/Cargo.toml
-index 4403044..1d50590 100644
---- a/Cargo.toml
-+++ b/Cargo.toml
-@@ -40,8 +40,8 @@ curl = "0.4.44"
- curl-sys = "0.4.68"
- filetime = "0.2.22"
- flate2 = { version = "1.0.27", default-features = false, features = ["zlib"] }
--git2 = "0.18.0"
--git2-curl = "0.19.0"
-+git2 = "0.17.2"
-+git2-curl = "0.18.0"
- gix = { version = "0.54.1", default-features = false, features = ["blocking-http-transport-curl", "progress-tree", "revision"] }
- gix-features-for-configuration-only = { version = "0.35.0", package = "gix-features", features = [ "parallel" ] }
- glob = "0.3.1"
-@@ -58,7 +58,7 @@ itertools = "0.10.0"
- jobserver = "0.1.26"
- lazycell = "1.3.0"
- libc = "0.2.148"
--libgit2-sys = "0.16.1"
-+libgit2-sys = "0.15.2"
- libloading = "0.8.0"
- memchr = "2.6.2"
- miow = "0.6.0"
diff --git a/srcpkgs/cargo/template b/srcpkgs/cargo/template
index 208c18818d570..b6b1154e2d8bd 100644
--- a/srcpkgs/cargo/template
+++ b/srcpkgs/cargo/template
@@ -1,7 +1,7 @@
 # Template file for 'cargo'
 pkgname=cargo
 version=1.74.0
-revision=1
+revision=2
 _cargo_revision=0.75.0
 build_helper=rust
 hostmakedepends="cargo-bootstrap rust python3 curl pkg-config zlib-devel"

From e77770afa161ef97ef71e48c0ccae10afcc6657b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 9 Dec 2023 18:20:30 +0100
Subject: [PATCH 4/4] New package: sequoia-git-0.1.0

---
 ...mpletion-artifacts-to-reasonable-dir.patch | 50 +++++++++++++++++++
 srcpkgs/sequoia-git/template                  | 25 ++++++++++
 2 files changed, 75 insertions(+)
 create mode 100644 srcpkgs/sequoia-git/patches/0001-write-man-and-completion-artifacts-to-reasonable-dir.patch
 create mode 100644 srcpkgs/sequoia-git/template

diff --git a/srcpkgs/sequoia-git/patches/0001-write-man-and-completion-artifacts-to-reasonable-dir.patch b/srcpkgs/sequoia-git/patches/0001-write-man-and-completion-artifacts-to-reasonable-dir.patch
new file mode 100644
index 0000000000000..90de0c91131af
--- /dev/null
+++ b/srcpkgs/sequoia-git/patches/0001-write-man-and-completion-artifacts-to-reasonable-dir.patch
@@ -0,0 +1,50 @@
+From 54d7807a275d544b42ca509786c32e458c4307ae Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
+ <jan.christian@gruenhage.xyz>
+Date: Sat, 9 Dec 2023 15:05:01 +0100
+Subject: [PATCH] write man and completion artifacts to reasonable directories
+
+---
+ build.rs | 19 ++-----------------
+ 1 file changed, 2 insertions(+), 17 deletions(-)
+
+diff --git a/build.rs b/build.rs
+index 1b950a6..a501d3d 100644
+--- a/build.rs
++++ b/build.rs
+@@ -49,14 +49,7 @@ fn git_version() {
+ 
+ fn completions() {
+     // Generate shell completions
+-    let outdir = match std::env::var_os("CARGO_TARGET_DIR") {
+-        None => {
+-            println!("cargo:warning=Not generating completion files, \
+-                      environment variable CARGO_TARGET_DIR not set");
+-            return;
+-        }
+-        Some(outdir) => outdir,
+-    };
++    let outdir = PathBuf::from("completions");
+ 
+     std::fs::create_dir_all(&outdir).unwrap();
+ 
+@@ -72,15 +65,7 @@ fn completions() {
+ 
+ fn man_pages() {
+     // Man page support.
+-    let outdir = match std::env::var_os("CARGO_TARGET_DIR") {
+-        None => {
+-            println!("cargo:warning=Not generating man pages, \
+-                      environment variable CARGO_TARGET_DIR not set");
+-            return;
+-        }
+-        Some(outdir) => PathBuf::from(outdir),
+-    };
+-
++    let outdir = PathBuf::from("man");
+     std::fs::create_dir_all(&outdir).unwrap();
+ 
+     let cli = cli::Cli::command();
+-- 
+2.43.0
+
diff --git a/srcpkgs/sequoia-git/template b/srcpkgs/sequoia-git/template
new file mode 100644
index 0000000000000..3667e25451e98
--- /dev/null
+++ b/srcpkgs/sequoia-git/template
@@ -0,0 +1,25 @@
+# Template file for 'sequoia-git'
+pkgname=sequoia-git
+version=0.1.0
+revision=1
+build_style=cargo
+build_helper=qemu
+_deps="nettle-devel openssl-devel sqlite-devel libgit2-devel bzip2-devel"
+hostmakedepends="pkg-config llvm clang ${_deps}"
+makedepends="${_deps}"
+checkdepends="git gnupg"
+short_desc="Tool to verify git commit signatures based on a policy"
+maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
+license="LGPL-2.0-or-later"
+homepage="https://gitlab.com/sequoia-pgp/sequoia-git"
+distfiles="https://gitlab.com/sequoia-pgp/sequoia-git/-/archive/v${version}/sequoia-git-v${version}.tar.gz"
+checksum=c1f7d2647538f3335dab8862a9c4b78bac8c41bb22a3917ec45989849fd035dd
+
+post_install() {
+	for page in man/*; do
+		vman ${page}
+	done
+	vcompletion completions/sq-git.bash bash
+	vcompletion completions/sq-git.fish fish
+	vcompletion completions/_sq-git zsh
+}

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

* Re: [PR PATCH] [Updated] New package: sequoia-git-0.1.0
  2023-12-09 17:21 [PR PATCH] New package: sequoia-git-0.1.0 jcgruenhage
                   ` (5 preceding siblings ...)
  2023-12-10 19:44 ` [PR PATCH] [Updated] " jcgruenhage
@ 2023-12-11 14:26 ` jcgruenhage
  2023-12-11 14:28 ` [PR REVIEW] " jcgruenhage
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jcgruenhage @ 2023-12-11 14:26 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by jcgruenhage against master on the void-packages repository

https://github.com/jcgruenhage/void-packages sequoia-git-0.1.0_1
https://github.com/void-linux/void-packages/pull/47663

New package: sequoia-git-0.1.0
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### 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/47663.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sequoia-git-0.1.0_1-47663.patch --]
[-- Type: text/x-diff, Size: 7273 bytes --]

From 68a7369d6b68625fa0d2b97f4ee3f5326dd8d2bc Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Tue, 22 Aug 2023 16:46:36 +0200
Subject: [PATCH 1/2] common/build-helper/rust.sh: force using system libgit2
 library

---
 common/build-helper/rust.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/common/build-helper/rust.sh b/common/build-helper/rust.sh
index 460aad6a12e12..c906a89f99547 100644
--- a/common/build-helper/rust.sh
+++ b/common/build-helper/rust.sh
@@ -67,3 +67,6 @@ export RUSTONIG_SYSTEM_LIBONIG=1
 
 # libsqlite3-sys
 export LIBSQLITE3_SYS_USE_PKG_CONFIG=1
+
+# libgit2-sys
+export LIBGIT2_NO_VENDOR=1

From d01d74977cbecfb1e43b57506ff99f2543dc5d59 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 9 Dec 2023 18:20:30 +0100
Subject: [PATCH 2/2] New package: sequoia-git-0.1.0

---
 ...mpletion-artifacts-to-reasonable-dir.patch | 60 ++++++++++++++++
 ...-to-allow-for-older-libgit2-versions.patch | 70 +++++++++++++++++++
 srcpkgs/sequoia-git/template                  | 25 +++++++
 3 files changed, 155 insertions(+)
 create mode 100644 srcpkgs/sequoia-git/patches/0001-write-man-and-completion-artifacts-to-reasonable-dir.patch
 create mode 100644 srcpkgs/sequoia-git/patches/0002-downgrade-git2-to-allow-for-older-libgit2-versions.patch
 create mode 100644 srcpkgs/sequoia-git/template

diff --git a/srcpkgs/sequoia-git/patches/0001-write-man-and-completion-artifacts-to-reasonable-dir.patch b/srcpkgs/sequoia-git/patches/0001-write-man-and-completion-artifacts-to-reasonable-dir.patch
new file mode 100644
index 0000000000000..353bbe4aa477b
--- /dev/null
+++ b/srcpkgs/sequoia-git/patches/0001-write-man-and-completion-artifacts-to-reasonable-dir.patch
@@ -0,0 +1,60 @@
+From de4d124faa3e01d6d58f907eeb31c5942061d853 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
+ <jan.christian@gruenhage.xyz>
+Date: Sat, 9 Dec 2023 15:05:01 +0100
+Subject: [PATCH 1/2] write man and completion artifacts to reasonable
+ directories
+
+---
+ .gitignore |  2 ++
+ build.rs   | 19 ++-----------------
+ 2 files changed, 4 insertions(+), 17 deletions(-)
+
+diff --git a/.gitignore b/.gitignore
+index ea8c4bf..dfe6e54 100644
+--- a/.gitignore
++++ b/.gitignore
+@@ -1 +1,3 @@
+ /target
++/man
++/completions
+diff --git a/build.rs b/build.rs
+index 1b950a6..a501d3d 100644
+--- a/build.rs
++++ b/build.rs
+@@ -49,14 +49,7 @@ fn git_version() {
+ 
+ fn completions() {
+     // Generate shell completions
+-    let outdir = match std::env::var_os("CARGO_TARGET_DIR") {
+-        None => {
+-            println!("cargo:warning=Not generating completion files, \
+-                      environment variable CARGO_TARGET_DIR not set");
+-            return;
+-        }
+-        Some(outdir) => outdir,
+-    };
++    let outdir = PathBuf::from("completions");
+ 
+     std::fs::create_dir_all(&outdir).unwrap();
+ 
+@@ -72,15 +65,7 @@ fn completions() {
+ 
+ fn man_pages() {
+     // Man page support.
+-    let outdir = match std::env::var_os("CARGO_TARGET_DIR") {
+-        None => {
+-            println!("cargo:warning=Not generating man pages, \
+-                      environment variable CARGO_TARGET_DIR not set");
+-            return;
+-        }
+-        Some(outdir) => PathBuf::from(outdir),
+-    };
+-
++    let outdir = PathBuf::from("man");
+     std::fs::create_dir_all(&outdir).unwrap();
+ 
+     let cli = cli::Cli::command();
+-- 
+2.43.0
+
diff --git a/srcpkgs/sequoia-git/patches/0002-downgrade-git2-to-allow-for-older-libgit2-versions.patch b/srcpkgs/sequoia-git/patches/0002-downgrade-git2-to-allow-for-older-libgit2-versions.patch
new file mode 100644
index 0000000000000..05d484491dfc6
--- /dev/null
+++ b/srcpkgs/sequoia-git/patches/0002-downgrade-git2-to-allow-for-older-libgit2-versions.patch
@@ -0,0 +1,70 @@
+From 49c34e60cdea812cc8df11db0f5a397b154a8cee Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
+ <jan.christian@gruenhage.xyz>
+Date: Mon, 11 Dec 2023 10:17:56 +0100
+Subject: [PATCH 2/2] downgrade git2 to allow for older libgit2 versions
+
+---
+ Cargo.lock | 14 +++++++-------
+ Cargo.toml |  2 +-
+ 2 files changed, 8 insertions(+), 8 deletions(-)
+
+diff --git a/Cargo.lock b/Cargo.lock
+index da54f2e..fa78be6 100644
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -782,11 +782,11 @@ checksum = "6fb8d784f27acf97159b40fc4db5ecd8aa23b9ad5ef69cdd136d3bc80665f0c0"
+ 
+ [[package]]
+ name = "git2"
+-version = "0.18.0"
++version = "0.17.2"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "12ef350ba88a33b4d524b1d1c79096c9ade5ef8c59395df0e60d1e1889414c0e"
++checksum = "7b989d6a7ca95a362cf2cfc5ad688b3a467be1f87e480b8dad07fee8c79b0044"
+ dependencies = [
+- "bitflags 2.4.0",
++ "bitflags 1.3.2",
+  "libc",
+  "libgit2-sys",
+  "log",
+@@ -1111,9 +1111,9 @@ checksum = "9cdc71e17332e86d2e1d38c1f99edcb6288ee11b815fb1a4b049eaa2114d369b"
+ 
+ [[package]]
+ name = "libgit2-sys"
+-version = "0.16.1+1.7.1"
++version = "0.15.2+1.6.4"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "f2a2bb3680b094add03bb3732ec520ece34da31a8cd2d633d1389d0f0fb60d0c"
++checksum = "a80df2e11fb4a61f4ba2ab42dbe7f74468da143f1a75c74e11dee7c813f694fa"
+ dependencies = [
+  "cc",
+  "libc",
+@@ -2452,9 +2452,9 @@ checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
+ 
+ [[package]]
+ name = "vergen"
+-version = "8.2.5"
++version = "8.2.4"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "85e7dc29b3c54a2ea67ef4f953d5ec0c4085035c0ae2d325be1c0d2144bd9f16"
++checksum = "bbc5ad0d9d26b2c49a5ab7da76c3e79d3ee37e7821799f8223fcb8f2f391a2e7"
+ dependencies = [
+  "anyhow",
+  "git2",
+diff --git a/Cargo.toml b/Cargo.toml
+index a175848..80aca7c 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -23,7 +23,7 @@ anyhow = "1"
+ buffered-reader = "1"
+ clap = { version = "4.0", features = [ "cargo", "derive", "env", "string", "wrap_help" ] }
+ dirs = "5"
+-git2 = "0.18"
++git2 = "=0.17.2"
+ once_cell = "1"
+ toml = "0.8"
+ serde = { version = "1.0", features = ["derive"] }
+-- 
+2.43.0
+
diff --git a/srcpkgs/sequoia-git/template b/srcpkgs/sequoia-git/template
new file mode 100644
index 0000000000000..3667e25451e98
--- /dev/null
+++ b/srcpkgs/sequoia-git/template
@@ -0,0 +1,25 @@
+# Template file for 'sequoia-git'
+pkgname=sequoia-git
+version=0.1.0
+revision=1
+build_style=cargo
+build_helper=qemu
+_deps="nettle-devel openssl-devel sqlite-devel libgit2-devel bzip2-devel"
+hostmakedepends="pkg-config llvm clang ${_deps}"
+makedepends="${_deps}"
+checkdepends="git gnupg"
+short_desc="Tool to verify git commit signatures based on a policy"
+maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
+license="LGPL-2.0-or-later"
+homepage="https://gitlab.com/sequoia-pgp/sequoia-git"
+distfiles="https://gitlab.com/sequoia-pgp/sequoia-git/-/archive/v${version}/sequoia-git-v${version}.tar.gz"
+checksum=c1f7d2647538f3335dab8862a9c4b78bac8c41bb22a3917ec45989849fd035dd
+
+post_install() {
+	for page in man/*; do
+		vman ${page}
+	done
+	vcompletion completions/sq-git.bash bash
+	vcompletion completions/sq-git.fish fish
+	vcompletion completions/_sq-git zsh
+}

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

* Re: [PR REVIEW] New package: sequoia-git-0.1.0
  2023-12-09 17:21 [PR PATCH] New package: sequoia-git-0.1.0 jcgruenhage
                   ` (6 preceding siblings ...)
  2023-12-11 14:26 ` jcgruenhage
@ 2023-12-11 14:28 ` jcgruenhage
  2023-12-11 14:45 ` jcgruenhage
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jcgruenhage @ 2023-12-11 14:28 UTC (permalink / raw)
  To: ml

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

New review comment by jcgruenhage on void-packages repository

https://github.com/void-linux/void-packages/pull/47663#discussion_r1422543142

Comment:
I wanted to test something locally, so patching that was nearly no effort and I've done it anyway now.

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

* Re: New package: sequoia-git-0.1.0
  2023-12-09 17:21 [PR PATCH] New package: sequoia-git-0.1.0 jcgruenhage
                   ` (7 preceding siblings ...)
  2023-12-11 14:28 ` [PR REVIEW] " jcgruenhage
@ 2023-12-11 14:45 ` jcgruenhage
  2023-12-19 12:16 ` [PR PATCH] [Updated] " jcgruenhage
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jcgruenhage @ 2023-12-11 14:45 UTC (permalink / raw)
  To: ml

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

New comment by jcgruenhage on void-packages repository

https://github.com/void-linux/void-packages/pull/47663#issuecomment-1850222470

Comment:
For context as to why I'm pulling in the libgit2 commit from @tranzystorekk: I had originally missed the libgit2 dep, and with the change it would've failed instead of silently bundling the vendored library. Pulling in that commit even before we're pulling in #45976 would make sense IMO. If people disagree with that, I'm happy to drop that though.

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

* Re: [PR PATCH] [Updated] New package: sequoia-git-0.1.0
  2023-12-09 17:21 [PR PATCH] New package: sequoia-git-0.1.0 jcgruenhage
                   ` (8 preceding siblings ...)
  2023-12-11 14:45 ` jcgruenhage
@ 2023-12-19 12:16 ` jcgruenhage
  2024-03-14 11:45 ` [PR PATCH] [Closed]: " jcgruenhage
  2024-03-14 11:45 ` jcgruenhage
  11 siblings, 0 replies; 13+ messages in thread
From: jcgruenhage @ 2023-12-19 12:16 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by jcgruenhage against master on the void-packages repository

https://github.com/jcgruenhage/void-packages sequoia-git-0.1.0_1
https://github.com/void-linux/void-packages/pull/47663

New package: sequoia-git-0.1.0
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### 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/47663.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sequoia-git-0.1.0_1-47663.patch --]
[-- Type: text/x-diff, Size: 6610 bytes --]

From fc90267b033fe3190088c72fa4d7cf0429e11e6d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 9 Dec 2023 18:20:30 +0100
Subject: [PATCH] New package: sequoia-git-0.1.0

---
 ...mpletion-artifacts-to-reasonable-dir.patch | 60 ++++++++++++++++
 ...-to-allow-for-older-libgit2-versions.patch | 70 +++++++++++++++++++
 srcpkgs/sequoia-git/template                  | 25 +++++++
 3 files changed, 155 insertions(+)
 create mode 100644 srcpkgs/sequoia-git/patches/0001-write-man-and-completion-artifacts-to-reasonable-dir.patch
 create mode 100644 srcpkgs/sequoia-git/patches/0002-downgrade-git2-to-allow-for-older-libgit2-versions.patch
 create mode 100644 srcpkgs/sequoia-git/template

diff --git a/srcpkgs/sequoia-git/patches/0001-write-man-and-completion-artifacts-to-reasonable-dir.patch b/srcpkgs/sequoia-git/patches/0001-write-man-and-completion-artifacts-to-reasonable-dir.patch
new file mode 100644
index 0000000000000..353bbe4aa477b
--- /dev/null
+++ b/srcpkgs/sequoia-git/patches/0001-write-man-and-completion-artifacts-to-reasonable-dir.patch
@@ -0,0 +1,60 @@
+From de4d124faa3e01d6d58f907eeb31c5942061d853 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
+ <jan.christian@gruenhage.xyz>
+Date: Sat, 9 Dec 2023 15:05:01 +0100
+Subject: [PATCH 1/2] write man and completion artifacts to reasonable
+ directories
+
+---
+ .gitignore |  2 ++
+ build.rs   | 19 ++-----------------
+ 2 files changed, 4 insertions(+), 17 deletions(-)
+
+diff --git a/.gitignore b/.gitignore
+index ea8c4bf..dfe6e54 100644
+--- a/.gitignore
++++ b/.gitignore
+@@ -1 +1,3 @@
+ /target
++/man
++/completions
+diff --git a/build.rs b/build.rs
+index 1b950a6..a501d3d 100644
+--- a/build.rs
++++ b/build.rs
+@@ -49,14 +49,7 @@ fn git_version() {
+ 
+ fn completions() {
+     // Generate shell completions
+-    let outdir = match std::env::var_os("CARGO_TARGET_DIR") {
+-        None => {
+-            println!("cargo:warning=Not generating completion files, \
+-                      environment variable CARGO_TARGET_DIR not set");
+-            return;
+-        }
+-        Some(outdir) => outdir,
+-    };
++    let outdir = PathBuf::from("completions");
+ 
+     std::fs::create_dir_all(&outdir).unwrap();
+ 
+@@ -72,15 +65,7 @@ fn completions() {
+ 
+ fn man_pages() {
+     // Man page support.
+-    let outdir = match std::env::var_os("CARGO_TARGET_DIR") {
+-        None => {
+-            println!("cargo:warning=Not generating man pages, \
+-                      environment variable CARGO_TARGET_DIR not set");
+-            return;
+-        }
+-        Some(outdir) => PathBuf::from(outdir),
+-    };
+-
++    let outdir = PathBuf::from("man");
+     std::fs::create_dir_all(&outdir).unwrap();
+ 
+     let cli = cli::Cli::command();
+-- 
+2.43.0
+
diff --git a/srcpkgs/sequoia-git/patches/0002-downgrade-git2-to-allow-for-older-libgit2-versions.patch b/srcpkgs/sequoia-git/patches/0002-downgrade-git2-to-allow-for-older-libgit2-versions.patch
new file mode 100644
index 0000000000000..05d484491dfc6
--- /dev/null
+++ b/srcpkgs/sequoia-git/patches/0002-downgrade-git2-to-allow-for-older-libgit2-versions.patch
@@ -0,0 +1,70 @@
+From 49c34e60cdea812cc8df11db0f5a397b154a8cee Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
+ <jan.christian@gruenhage.xyz>
+Date: Mon, 11 Dec 2023 10:17:56 +0100
+Subject: [PATCH 2/2] downgrade git2 to allow for older libgit2 versions
+
+---
+ Cargo.lock | 14 +++++++-------
+ Cargo.toml |  2 +-
+ 2 files changed, 8 insertions(+), 8 deletions(-)
+
+diff --git a/Cargo.lock b/Cargo.lock
+index da54f2e..fa78be6 100644
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -782,11 +782,11 @@ checksum = "6fb8d784f27acf97159b40fc4db5ecd8aa23b9ad5ef69cdd136d3bc80665f0c0"
+ 
+ [[package]]
+ name = "git2"
+-version = "0.18.0"
++version = "0.17.2"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "12ef350ba88a33b4d524b1d1c79096c9ade5ef8c59395df0e60d1e1889414c0e"
++checksum = "7b989d6a7ca95a362cf2cfc5ad688b3a467be1f87e480b8dad07fee8c79b0044"
+ dependencies = [
+- "bitflags 2.4.0",
++ "bitflags 1.3.2",
+  "libc",
+  "libgit2-sys",
+  "log",
+@@ -1111,9 +1111,9 @@ checksum = "9cdc71e17332e86d2e1d38c1f99edcb6288ee11b815fb1a4b049eaa2114d369b"
+ 
+ [[package]]
+ name = "libgit2-sys"
+-version = "0.16.1+1.7.1"
++version = "0.15.2+1.6.4"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "f2a2bb3680b094add03bb3732ec520ece34da31a8cd2d633d1389d0f0fb60d0c"
++checksum = "a80df2e11fb4a61f4ba2ab42dbe7f74468da143f1a75c74e11dee7c813f694fa"
+ dependencies = [
+  "cc",
+  "libc",
+@@ -2452,9 +2452,9 @@ checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
+ 
+ [[package]]
+ name = "vergen"
+-version = "8.2.5"
++version = "8.2.4"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "85e7dc29b3c54a2ea67ef4f953d5ec0c4085035c0ae2d325be1c0d2144bd9f16"
++checksum = "bbc5ad0d9d26b2c49a5ab7da76c3e79d3ee37e7821799f8223fcb8f2f391a2e7"
+ dependencies = [
+  "anyhow",
+  "git2",
+diff --git a/Cargo.toml b/Cargo.toml
+index a175848..80aca7c 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -23,7 +23,7 @@ anyhow = "1"
+ buffered-reader = "1"
+ clap = { version = "4.0", features = [ "cargo", "derive", "env", "string", "wrap_help" ] }
+ dirs = "5"
+-git2 = "0.18"
++git2 = "=0.17.2"
+ once_cell = "1"
+ toml = "0.8"
+ serde = { version = "1.0", features = ["derive"] }
+-- 
+2.43.0
+
diff --git a/srcpkgs/sequoia-git/template b/srcpkgs/sequoia-git/template
new file mode 100644
index 0000000000000..3667e25451e98
--- /dev/null
+++ b/srcpkgs/sequoia-git/template
@@ -0,0 +1,25 @@
+# Template file for 'sequoia-git'
+pkgname=sequoia-git
+version=0.1.0
+revision=1
+build_style=cargo
+build_helper=qemu
+_deps="nettle-devel openssl-devel sqlite-devel libgit2-devel bzip2-devel"
+hostmakedepends="pkg-config llvm clang ${_deps}"
+makedepends="${_deps}"
+checkdepends="git gnupg"
+short_desc="Tool to verify git commit signatures based on a policy"
+maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
+license="LGPL-2.0-or-later"
+homepage="https://gitlab.com/sequoia-pgp/sequoia-git"
+distfiles="https://gitlab.com/sequoia-pgp/sequoia-git/-/archive/v${version}/sequoia-git-v${version}.tar.gz"
+checksum=c1f7d2647538f3335dab8862a9c4b78bac8c41bb22a3917ec45989849fd035dd
+
+post_install() {
+	for page in man/*; do
+		vman ${page}
+	done
+	vcompletion completions/sq-git.bash bash
+	vcompletion completions/sq-git.fish fish
+	vcompletion completions/_sq-git zsh
+}

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

* Re: [PR PATCH] [Closed]: New package: sequoia-git-0.1.0
  2023-12-09 17:21 [PR PATCH] New package: sequoia-git-0.1.0 jcgruenhage
                   ` (9 preceding siblings ...)
  2023-12-19 12:16 ` [PR PATCH] [Updated] " jcgruenhage
@ 2024-03-14 11:45 ` jcgruenhage
  2024-03-14 11:45 ` jcgruenhage
  11 siblings, 0 replies; 13+ messages in thread
From: jcgruenhage @ 2024-03-14 11:45 UTC (permalink / raw)
  To: ml

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

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

New package: sequoia-git-0.1.0
https://github.com/void-linux/void-packages/pull/47663

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### 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] 13+ messages in thread

* Re: New package: sequoia-git-0.1.0
  2023-12-09 17:21 [PR PATCH] New package: sequoia-git-0.1.0 jcgruenhage
                   ` (10 preceding siblings ...)
  2024-03-14 11:45 ` [PR PATCH] [Closed]: " jcgruenhage
@ 2024-03-14 11:45 ` jcgruenhage
  11 siblings, 0 replies; 13+ messages in thread
From: jcgruenhage @ 2024-03-14 11:45 UTC (permalink / raw)
  To: ml

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

New comment by jcgruenhage on void-packages repository

https://github.com/void-linux/void-packages/pull/47663#issuecomment-1997261696

Comment:
See #49286

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

end of thread, other threads:[~2024-03-14 11:45 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-09 17:21 [PR PATCH] New package: sequoia-git-0.1.0 jcgruenhage
2023-12-09 18:52 ` [PR REVIEW] " tranzystorekk
2023-12-10 12:36 ` jcgruenhage
2023-12-10 12:42 ` tranzystorekk
2023-12-10 12:48 ` [PR PATCH] [Updated] " jcgruenhage
2023-12-10 12:51 ` [PR REVIEW] " jcgruenhage
2023-12-10 19:44 ` [PR PATCH] [Updated] " jcgruenhage
2023-12-11 14:26 ` jcgruenhage
2023-12-11 14:28 ` [PR REVIEW] " jcgruenhage
2023-12-11 14:45 ` jcgruenhage
2023-12-19 12:16 ` [PR PATCH] [Updated] " jcgruenhage
2024-03-14 11:45 ` [PR PATCH] [Closed]: " jcgruenhage
2024-03-14 11:45 ` jcgruenhage

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