Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well
@ 2023-04-03  6:50 jcgruenhage
  2023-04-03  6:59 ` [PR PATCH] [Updated] RFC: " jcgruenhage
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: jcgruenhage @ 2023-04-03  6:50 UTC (permalink / raw)
  To: ml

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

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

https://github.com/jcgruenhage/void-packages locked-cargo
https://github.com/void-linux/void-packages/pull/43233

common/build-style/cargo.sh: use --locked for build and check as well
#### 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/43233.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-locked-cargo-43233.patch --]
[-- Type: text/x-diff, Size: 1948 bytes --]

From 0e054635800fe510da231e16c461ee43c3f8f7a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sun, 2 Apr 2023 16:25:24 +0200
Subject: [PATCH 1/2] common/build-style/cargo.sh: use --locked for build and
 check as well

---
 common/build-style/cargo.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/build-style/cargo.sh b/common/build-style/cargo.sh
index 387e711060bc..d2f75dddc515 100644
--- a/common/build-style/cargo.sh
+++ b/common/build-style/cargo.sh
@@ -5,13 +5,13 @@
 do_build() {
 	: ${make_cmd:=cargo auditable}
 
-	${make_cmd} build --release --target ${RUST_TARGET} ${configure_args}
+	${make_cmd} build --release --locked --target ${RUST_TARGET} ${configure_args}
 }
 
 do_check() {
 	: ${make_cmd:=cargo auditable}
 
-	${make_check_pre} ${make_cmd} test --release --target ${RUST_TARGET} ${configure_args} \
+	${make_check_pre} ${make_cmd} test --release --locked --target ${RUST_TARGET} ${configure_args} \
 		${make_check_args}
 }
 

From b19ba795daa927d4bf50c37a622f3e1c478ef0ea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Mon, 3 Apr 2023 08:49:10 +0200
Subject: [PATCH 2/2] cargo-update: generate lockfile to fix build

---
 srcpkgs/cargo-update/template | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/srcpkgs/cargo-update/template b/srcpkgs/cargo-update/template
index ea2c25272a88..bbbd137af127 100644
--- a/srcpkgs/cargo-update/template
+++ b/srcpkgs/cargo-update/template
@@ -17,6 +17,13 @@ if [ "$XBPS_TARGET_MACHINE" == "i686" ]; then
 	make_check_args="-- --skip ops::assert_index_path"
 fi
 
+post_patch() {
+	# Upstream does not ship a lockfile and is very vocal about that being
+	# the right way:
+	# https://github.com/nabijaczleweli/cargo-update/issues/50
+	cargo generate-lockfile
+}
+
 post_install() {
 	vlicense LICENSE
 	vdoc README.md

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

* Re: [PR PATCH] [Updated] RFC: common/build-style/cargo.sh: use --locked for build and check as well
  2023-04-03  6:50 [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well jcgruenhage
@ 2023-04-03  6:59 ` jcgruenhage
  2023-04-03  9:00 ` stefankreutz
                   ` (20 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: jcgruenhage @ 2023-04-03  6:59 UTC (permalink / raw)
  To: ml

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

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

https://github.com/jcgruenhage/void-packages locked-cargo
https://github.com/void-linux/void-packages/pull/43233

RFC: common/build-style/cargo.sh: use --locked for build and check as well
#### 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/43233.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-locked-cargo-43233.patch --]
[-- Type: text/x-diff, Size: 1988 bytes --]

From c6c76bb80bbdba66aef5b140759820ae430ab930 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sun, 2 Apr 2023 16:25:24 +0200
Subject: [PATCH 1/2] common/build-style/cargo.sh: use --locked for build and
 check as well

---
 common/build-style/cargo.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/build-style/cargo.sh b/common/build-style/cargo.sh
index 387e711060bc..751911d8dbee 100644
--- a/common/build-style/cargo.sh
+++ b/common/build-style/cargo.sh
@@ -5,14 +5,14 @@
 do_build() {
 	: ${make_cmd:=cargo auditable}
 
-	${make_cmd} build --release --target ${RUST_TARGET} ${configure_args}
+	${make_cmd} build --release --locked --target ${RUST_TARGET} ${configure_args}
 }
 
 do_check() {
 	: ${make_cmd:=cargo auditable}
 
-	${make_check_pre} ${make_cmd} test --release --target ${RUST_TARGET} ${configure_args} \
-		${make_check_args}
+	${make_check_pre} ${make_cmd} test --release --locked --target ${RUST_TARGET} \
+		${configure_args} ${make_check_args}
 }
 
 do_install() {

From 3e910761af342f77a420ee6fd0d3f94625b2b578 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Mon, 3 Apr 2023 08:49:10 +0200
Subject: [PATCH 2/2] cargo-update: generate lockfile to fix build

---
 srcpkgs/cargo-update/template | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/srcpkgs/cargo-update/template b/srcpkgs/cargo-update/template
index ea2c25272a88..bbbd137af127 100644
--- a/srcpkgs/cargo-update/template
+++ b/srcpkgs/cargo-update/template
@@ -17,6 +17,13 @@ if [ "$XBPS_TARGET_MACHINE" == "i686" ]; then
 	make_check_args="-- --skip ops::assert_index_path"
 fi
 
+post_patch() {
+	# Upstream does not ship a lockfile and is very vocal about that being
+	# the right way:
+	# https://github.com/nabijaczleweli/cargo-update/issues/50
+	cargo generate-lockfile
+}
+
 post_install() {
 	vlicense LICENSE
 	vdoc README.md

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

* Re: RFC: common/build-style/cargo.sh: use --locked for build and check as well
  2023-04-03  6:50 [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well jcgruenhage
  2023-04-03  6:59 ` [PR PATCH] [Updated] RFC: " jcgruenhage
@ 2023-04-03  9:00 ` stefankreutz
  2023-04-03  9:57 ` jcgruenhage
                   ` (19 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: stefankreutz @ 2023-04-03  9:00 UTC (permalink / raw)
  To: ml

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

New comment by stefankreutz on void-packages repository

https://github.com/void-linux/void-packages/pull/43233#issuecomment-1493942005

Comment:
Maybe off topic: How do you handle outdated Cargo.lock files containing yanked crates or crates with RUSTSEC issues? I found that it's not too common for Rust crates to release updates in these cases. Is it ok to patch the Cargo.lock files in such cases? I haven't found any such patches in this repository.

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

* Re: RFC: common/build-style/cargo.sh: use --locked for build and check as well
  2023-04-03  6:50 [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well jcgruenhage
  2023-04-03  6:59 ` [PR PATCH] [Updated] RFC: " jcgruenhage
  2023-04-03  9:00 ` stefankreutz
@ 2023-04-03  9:57 ` jcgruenhage
  2023-04-03 15:54 ` icp1994
                   ` (18 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: jcgruenhage @ 2023-04-03  9:57 UTC (permalink / raw)
  To: ml

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

New comment by jcgruenhage on void-packages repository

https://github.com/void-linux/void-packages/pull/43233#issuecomment-1494026792

Comment:
We don't handle that at all yet. We're building rust packages with [`cargo auditable`](https://github.com/rust-secure-code/cargo-auditable) to get some visibility on such issues, so that we can detect rustsec issues from a running system and not only at build time, but we don't have a clear process for monitoring this yet.

With regards to patching the Cargo.lock file: We current patch that file in 19 packages, but we don't do that by manually patching in the lockfile, we do that by running `cargo update --package <package we're updating>@<version we're updating from> --precise <version we're updating to>`. This has the slight disadvantage of not including a checksum, but crates.io does not allow changing versions so it's not a big drawback, but at the same time it's way easier to handle than Cargo.lock diffs.

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

* Re: RFC: common/build-style/cargo.sh: use --locked for build and check as well
  2023-04-03  6:50 [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well jcgruenhage
                   ` (2 preceding siblings ...)
  2023-04-03  9:57 ` jcgruenhage
@ 2023-04-03 15:54 ` icp1994
  2023-04-03 18:44 ` jcgruenhage
                   ` (17 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: icp1994 @ 2023-04-03 15:54 UTC (permalink / raw)
  To: ml

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

New comment by icp1994 on void-packages repository

https://github.com/void-linux/void-packages/pull/43233#issuecomment-1494576152

Comment:
Another tangent: is it worth adding a `make_build_args` to the command under `do_build()`? There's been at least a few times where I wanted to add `--package <spec>` for cargo build but putting it in `configure_args` breaks `do_install` since cargo install doesn't accept that option.

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

* Re: RFC: common/build-style/cargo.sh: use --locked for build and check as well
  2023-04-03  6:50 [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well jcgruenhage
                   ` (3 preceding siblings ...)
  2023-04-03 15:54 ` icp1994
@ 2023-04-03 18:44 ` jcgruenhage
  2023-04-03 19:12 ` icp1994
                   ` (16 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: jcgruenhage @ 2023-04-03 18:44 UTC (permalink / raw)
  To: ml

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

New comment by jcgruenhage on void-packages repository

https://github.com/void-linux/void-packages/pull/43233#issuecomment-1494804290

Comment:
@icp1994 what good is building only a specific package in the build phase?

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

* Re: RFC: common/build-style/cargo.sh: use --locked for build and check as well
  2023-04-03  6:50 [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well jcgruenhage
                   ` (4 preceding siblings ...)
  2023-04-03 18:44 ` jcgruenhage
@ 2023-04-03 19:12 ` icp1994
  2023-04-04  1:21 ` classabbyamp
                   ` (15 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: icp1994 @ 2023-04-03 19:12 UTC (permalink / raw)
  To: ml

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

New comment by icp1994 on void-packages repository

https://github.com/void-linux/void-packages/pull/43233#issuecomment-1494840096

Comment:
Some packages have quite a few things under their `crates/` (workspace) for easier dev setup, for example benchamrks. But we don't need to build those for packaging. I mean we can but it's a lot of extra compile time for maintainers.

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

* Re: RFC: common/build-style/cargo.sh: use --locked for build and check as well
  2023-04-03  6:50 [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well jcgruenhage
                   ` (5 preceding siblings ...)
  2023-04-03 19:12 ` icp1994
@ 2023-04-04  1:21 ` classabbyamp
  2023-04-04  8:43 ` jcgruenhage
                   ` (14 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: classabbyamp @ 2023-04-04  1:21 UTC (permalink / raw)
  To: ml

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

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/43233#issuecomment-1495207927

Comment:
I think this is good to do

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

* Re: RFC: common/build-style/cargo.sh: use --locked for build and check as well
  2023-04-03  6:50 [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well jcgruenhage
                   ` (6 preceding siblings ...)
  2023-04-04  1:21 ` classabbyamp
@ 2023-04-04  8:43 ` jcgruenhage
  2023-04-04  8:44 ` jcgruenhage
                   ` (13 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: jcgruenhage @ 2023-04-04  8:43 UTC (permalink / raw)
  To: ml

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

New comment by jcgruenhage on void-packages repository

https://github.com/void-linux/void-packages/pull/43233#issuecomment-1495581127

Comment:
@icp1994 wouldn't it be possible to use `build_wrksrc` for that usecase? Aside of that, yeah, for `cargo install` limiting is done with `--path`, where `cargo build` takes `--package`, agreed that separate arg vars might be useful.

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

* Re: RFC: common/build-style/cargo.sh: use --locked for build and check as well
  2023-04-03  6:50 [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well jcgruenhage
                   ` (7 preceding siblings ...)
  2023-04-04  8:43 ` jcgruenhage
@ 2023-04-04  8:44 ` jcgruenhage
  2023-04-08 18:11 ` [PR PATCH] [Updated] " jcgruenhage
                   ` (12 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: jcgruenhage @ 2023-04-04  8:44 UTC (permalink / raw)
  To: ml

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

New comment by jcgruenhage on void-packages repository

https://github.com/void-linux/void-packages/pull/43233#issuecomment-1495581776

Comment:
But aside of these two tangents, I think this is good to go as well.

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

* Re: [PR PATCH] [Updated] RFC: common/build-style/cargo.sh: use --locked for build and check as well
  2023-04-03  6:50 [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well jcgruenhage
                   ` (8 preceding siblings ...)
  2023-04-04  8:44 ` jcgruenhage
@ 2023-04-08 18:11 ` jcgruenhage
  2023-04-08 18:29 ` jcgruenhage
                   ` (11 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: jcgruenhage @ 2023-04-08 18:11 UTC (permalink / raw)
  To: ml

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

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

https://github.com/jcgruenhage/void-packages locked-cargo
https://github.com/void-linux/void-packages/pull/43233

RFC: common/build-style/cargo.sh: use --locked for build and check as well
#### 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/43233.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-locked-cargo-43233.patch --]
[-- Type: text/x-diff, Size: 28136 bytes --]

From c108b6803e997443c5df6973e97cd6ed89c43047 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sun, 2 Apr 2023 16:25:24 +0200
Subject: [PATCH 01/12] common/build-style/cargo.sh: use --locked for build and
 check as well

---
 common/build-style/cargo.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/build-style/cargo.sh b/common/build-style/cargo.sh
index 387e711060bc..751911d8dbee 100644
--- a/common/build-style/cargo.sh
+++ b/common/build-style/cargo.sh
@@ -5,14 +5,14 @@
 do_build() {
 	: ${make_cmd:=cargo auditable}
 
-	${make_cmd} build --release --target ${RUST_TARGET} ${configure_args}
+	${make_cmd} build --release --locked --target ${RUST_TARGET} ${configure_args}
 }
 
 do_check() {
 	: ${make_cmd:=cargo auditable}
 
-	${make_check_pre} ${make_cmd} test --release --target ${RUST_TARGET} ${configure_args} \
-		${make_check_args}
+	${make_check_pre} ${make_cmd} test --release --locked --target ${RUST_TARGET} \
+		${configure_args} ${make_check_args}
 }
 
 do_install() {

From 55b00afb511f503daa6efe4ff36c58339c0e695e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Mon, 3 Apr 2023 08:49:10 +0200
Subject: [PATCH 02/12] cargo-update: generate lockfile

---
 srcpkgs/cargo-update/template | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/cargo-update/template b/srcpkgs/cargo-update/template
index f892886fca3f..f31800e0abe0 100644
--- a/srcpkgs/cargo-update/template
+++ b/srcpkgs/cargo-update/template
@@ -1,7 +1,7 @@
 # Template file for 'cargo-update'
 pkgname=cargo-update
 version=13.0.0
-revision=1
+revision=2
 build_style=cargo
 hostmakedepends="pkg-config go-md2man"
 makedepends="libcurl-devel libgit2-devel libssh2-devel openssl-devel"
@@ -18,6 +18,13 @@ if [ "$XBPS_TARGET_MACHINE" == "i686" ]; then
 	make_check_args="-- --skip ops::assert_index_path"
 fi
 
+post_patch() {
+	# Upstream does not ship a lockfile and is very vocal about that being
+	# the right way:
+	# https://github.com/nabijaczleweli/cargo-update/issues/50
+	cargo generate-lockfile
+}
+
 post_install() {
 	vlicense LICENSE
 	vdoc README.md

From 6dd84c8b9a2c54dd8601cfbb310e2ffbc92493ed Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 17:52:44 +0200
Subject: [PATCH 03/12] alert-after: patch lockfile

---
 .../patches/0001-Update-Cargo.lock.patch      | 155 ++++++++++++++++++
 srcpkgs/alert-after/template                  |   2 +-
 2 files changed, 156 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/alert-after/patches/0001-Update-Cargo.lock.patch

diff --git a/srcpkgs/alert-after/patches/0001-Update-Cargo.lock.patch b/srcpkgs/alert-after/patches/0001-Update-Cargo.lock.patch
new file mode 100644
index 000000000000..c0d727f8c2c5
--- /dev/null
+++ b/srcpkgs/alert-after/patches/0001-Update-Cargo.lock.patch
@@ -0,0 +1,155 @@
+From f4141915692ee8cc437209aaa6f507fc372792ed Mon Sep 17 00:00:00 2001
+From: Corey Farwell <coreyf@rwell.org>
+Date: Wed, 10 Apr 2019 06:36:39 -0400
+Subject: [PATCH] Update Cargo.lock
+
+---
+ Cargo.lock | 61 +++++++-----------------------------------------------
+ 1 file changed, 8 insertions(+), 53 deletions(-)
+
+diff --git a/Cargo.lock b/Cargo.lock
+index de84926..038c9ca 100644
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -2,9 +2,9 @@
+ # It is not intended for manual editing.
+ [[package]]
+ name = "alert-after"
+-version = "1.5.0"
++version = "1.5.1"
+ dependencies = [
+- "notifica 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
++ "notifica 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+ [[package]]
+@@ -154,12 +154,12 @@ dependencies = [
+ 
+ [[package]]
+ name = "notifica"
+-version = "1.0.0"
++version = "1.0.2"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ dependencies = [
+  "mac-notification-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
+  "notify-rust 3.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winrt 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
++ "winrt 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+ [[package]]
+@@ -211,24 +211,6 @@ dependencies = [
+  "objc 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+-[[package]]
+-name = "ole32-sys"
+-version = "0.2.0"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-dependencies = [
+- "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
+-]
+-
+-[[package]]
+-name = "oleaut32-sys"
+-version = "0.2.0"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-dependencies = [
+- "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
+-]
+-
+ [[package]]
+ name = "pkg-config"
+ version = "0.3.14"
+@@ -255,15 +237,6 @@ name = "redox_syscall"
+ version = "0.1.53"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ 
+-[[package]]
+-name = "runtimeobject-sys"
+-version = "0.2.0"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-dependencies = [
+- "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
+-]
+-
+ [[package]]
+ name = "rustc-demangle"
+ version = "0.1.13"
+@@ -305,11 +278,6 @@ name = "unicode-xid"
+ version = "0.1.0"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ 
+-[[package]]
+-name = "winapi"
+-version = "0.2.8"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-
+ [[package]]
+ name = "winapi"
+ version = "0.3.7"
+@@ -319,11 +287,6 @@ dependencies = [
+  "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+-[[package]]
+-name = "winapi-build"
+-version = "0.1.1"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-
+ [[package]]
+ name = "winapi-i686-pc-windows-gnu"
+ version = "0.4.0"
+@@ -336,13 +299,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
+ 
+ [[package]]
+ name = "winrt"
+-version = "0.3.0"
++version = "0.5.1"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ dependencies = [
+- "ole32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
+- "oleaut32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
+- "runtimeobject-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
++ "winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+ [metadata]
+@@ -364,28 +324,23 @@ dependencies = [
+ "checksum mac-notification-sys 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "6a3639b6caa2db7443e5df80e12c450982f77fc3c140f53d6e48be91f965ea66"
+ "checksum mac-notification-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a7f588a226cfab0536c23ef64ce521d2a0469315731460c6f924b39d162bc162"
+ "checksum malloc_buf 0.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb"
+-"checksum notifica 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2dc6d2270aa8b606c081c25f2d06b870e3c9226b0e7b98e63b990bdb390cb488"
++"checksum notifica 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e4bf0be3d0aa13ec1467834b3b4d0a3fdee1215c7483b9b54b31fd4dad356814"
+ "checksum notify-rust 3.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "46d847abfe6489a4f7817ec893efeb27f8250755b2272bfa933bcf69af4bda42"
+ "checksum num-integer 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)" = "e83d528d2677f0518c570baf2b7abdcf0cd2d248860b68507bdcb3e91d4c0cea"
+ "checksum num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0b3a5d7cc97d6d30d8b9bc8fa19bf45349ffe46241e8816f50f62f6d6aaabee1"
+ "checksum objc 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "31d20fd2b37e07cf5125be68357b588672e8cefe9a96f8c17a9d46053b3e590d"
+ "checksum objc-foundation 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "1add1b659e36c9607c7aab864a76c7a4c2760cd0cd2e120f3fb8b952c7e22bf9"
+ "checksum objc_id 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c92d4ddb4bd7b50d730c215ff871754d0da6b2178849f8a2a2ab69712d0c073b"
+-"checksum ole32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5d2c49021782e5233cd243168edfa8037574afed4eba4bbaf538b3d8d1789d8c"
+-"checksum oleaut32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1fde17b30b27384afd9a5b02c5429cc356b82263f4bd15e5661c5df9e9df612f"
+ "checksum pkg-config 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)" = "676e8eb2b1b4c9043511a9b7bea0915320d7e502b0a079fb03f9635a5252b18c"
+ "checksum proc-macro2 0.4.27 (registry+https://github.com/rust-lang/crates.io-index)" = "4d317f9caece796be1980837fd5cb3dfec5613ebdb04ad0956deea83ce168915"
+ "checksum quote 0.6.11 (registry+https://github.com/rust-lang/crates.io-index)" = "cdd8e04bd9c52e0342b406469d494fcb033be4bdbe5c606016defbb1681411e1"
+ "checksum redox_syscall 0.1.53 (registry+https://github.com/rust-lang/crates.io-index)" = "53848511b7ee6eb9d5c3db48481aaa5779b38fc0131bc133c98cb4f2b2411928"
+-"checksum runtimeobject-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c2222472d6d46b6a047029b80a766759879590fa1d31a531456eff0cd855b273"
+ "checksum rustc-demangle 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)" = "adacaae16d02b6ec37fdc7acfcddf365978de76d1983d3ee22afc260e1ca9619"
+ "checksum syn 0.15.30 (registry+https://github.com/rust-lang/crates.io-index)" = "66c8865bf5a7cbb662d8b011950060b3c8743dca141b054bf7195b20d314d8e2"
+ "checksum synstructure 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)" = "73687139bf99285483c96ac0add482c3776528beac1d97d444f6e91f203a2015"
+ "checksum time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)" = "db8dcfca086c1143c9270ac42a2bbd8a7ee477b78ac8e45b19abfb0cbede4b6f"
+ "checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc"
+-"checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"
+ "checksum winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)" = "f10e386af2b13e47c89e7236a7a14a086791a2b88ebad6df9bf42040195cf770"
+-"checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"
+ "checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
+ "checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+-"checksum winrt 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ce322394c4d48755ad50fc867ffb70b433a336944935c3098b4e1ca4bbb0870a"
++"checksum winrt 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0c4c01eac5a45f4fcb31db47886257ff0b0ec8958b581ff841b0d992a7e97f94"
+-- 
+2.40.0
+
diff --git a/srcpkgs/alert-after/template b/srcpkgs/alert-after/template
index 27dcd62231e3..8345dc519624 100644
--- a/srcpkgs/alert-after/template
+++ b/srcpkgs/alert-after/template
@@ -1,7 +1,7 @@
 # Template file for 'alert-after'
 pkgname=alert-after
 version=1.5.1
-revision=1
+revision=2
 build_style=cargo
 hostmakedepends="pkg-config"
 makedepends="dbus-devel"

From 516f709a0293266b46a80dd8e80ca45c34eded6f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 18:07:02 +0200
Subject: [PATCH 04/12] blindfold: generate lockfile

---
 srcpkgs/blindfold/template | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/blindfold/template b/srcpkgs/blindfold/template
index ee605e767102..8c9306e69f7c 100644
--- a/srcpkgs/blindfold/template
+++ b/srcpkgs/blindfold/template
@@ -1,7 +1,7 @@
 # Template file for 'blindfold'
 pkgname=blindfold
 version=1.0.6
-revision=2
+revision=3
 build_style=cargo
 hostmakedepends="pkg-config"
 makedepends="openssl-devel"
@@ -12,6 +12,12 @@ homepage="https://github.com/Eoin-McMahon/blindfold"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=eff539920d4efa5c0fc35067c40347ceb8b01a922f443460a28e8c5e0b3237ca
 
+post_patch() {
+	# Upstream does not ship a lockfile yet:
+	# https://github.com/Eoin-McMahon/blindfold/issues/23
+	cargo generate-lockfile
+}
+
 post_install() {
 	vlicense LICENSE
 }

From 96c591b13d643c2e2283781fe9505c0dd005cc1b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 18:15:15 +0200
Subject: [PATCH 05/12] desed: generate lockfile

---
 srcpkgs/desed/template | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/desed/template b/srcpkgs/desed/template
index 2f163115a797..e6f854bc90ee 100644
--- a/srcpkgs/desed/template
+++ b/srcpkgs/desed/template
@@ -1,7 +1,7 @@
 # Template file for 'desed'
 pkgname=desed
 version=1.2.1
-revision=1
+revision=2
 build_style=cargo
 short_desc="Demystify and debug sed scripts"
 maintainer="Andrew Benson <abenson+void@gmail.com>"
@@ -9,3 +9,9 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/SoptikHa2/desed"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=bee8c60d58f11472c036277b0318bdceb5520cce5a61965bc028b26ccbdeb706
+
+post_patch() {
+	# Upstream does not ship a lockfile yet:
+	# https://github.com/SoptikHa2/desed/issues/27
+	cargo generate-lockfile
+}

From 0b4cfe9aac8400bdffa40c967da56355a2b6f73b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 18:25:34 +0200
Subject: [PATCH 06/12] exa: patch lockfile

---
 .../patches/0001-Update-lockfile-854.patch    | 129 ++++++++++++++++++
 srcpkgs/exa/template                          |   3 +-
 2 files changed, 131 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/exa/patches/0001-Update-lockfile-854.patch

diff --git a/srcpkgs/exa/patches/0001-Update-lockfile-854.patch b/srcpkgs/exa/patches/0001-Update-lockfile-854.patch
new file mode 100644
index 000000000000..6b44fa814a49
--- /dev/null
+++ b/srcpkgs/exa/patches/0001-Update-lockfile-854.patch
@@ -0,0 +1,129 @@
+From 90b97753adb630513d68be7e66410e2b149ea446 Mon Sep 17 00:00:00 2001
+From: Haren S <harens@macports.org>
+Date: Mon, 26 Apr 2021 22:37:32 +0100
+Subject: [PATCH] Update lockfile (#854)
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Update lockfile (exa now requires Rust 1.45.2 or higher)
+
+Co-authored-by: Mélanie Chauvel <perso@hack-libre.org>
+---
+ .travis.yml |  2 +-
+ Cargo.lock  | 22 +++++++++++-----------
+ README.md   |  6 +++---
+ 3 files changed, 15 insertions(+), 15 deletions(-)
+
+diff --git a/.travis.yml b/.travis.yml
+index cc98081..1f08108 100644
+--- a/.travis.yml
++++ b/.travis.yml
+@@ -1,6 +1,6 @@
+ language: rust
+ rust:
+-  - 1.42.0
++  - 1.45.2
+   - stable
+   - beta
+   - nightly
+diff --git a/Cargo.lock b/Cargo.lock
+index df94188..6a0665d 100644
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -57,7 +57,7 @@ dependencies = [
+ 
+ [[package]]
+ name = "exa"
+-version = "0.11.0-pre"
++version = "0.10.1"
+ dependencies = [
+  "ansi_term",
+  "datetime",
+@@ -90,9 +90,9 @@ dependencies = [
+ 
+ [[package]]
+ name = "git2"
+-version = "0.13.17"
++version = "0.13.18"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "1d250f5f82326884bd39c2853577e70a121775db76818ffa452ed1e80de12986"
++checksum = "b483c6c2145421099df1b4efd50e0f6205479a072199460eff852fa15e5603c7"
+ dependencies = [
+  "bitflags",
+  "libc",
+@@ -119,9 +119,9 @@ dependencies = [
+ 
+ [[package]]
+ name = "idna"
+-version = "0.2.2"
++version = "0.2.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "89829a5d69c23d348314a7ac337fe39173b61149a9864deabd260983aed48c21"
++checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8"
+ dependencies = [
+  "matches",
+  "unicode-bidi",
+@@ -130,9 +130,9 @@ dependencies = [
+ 
+ [[package]]
+ name = "jobserver"
+-version = "0.1.21"
++version = "0.1.22"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "5c71313ebb9439f74b00d9d2dcec36440beaf57a6aa0623068441dd7cd81a7f2"
++checksum = "972f5ae5d1cb9c6ae417789196c803205313edde988685da5e3aae0827b9e7fd"
+ dependencies = [
+  "libc",
+ ]
+@@ -151,9 +151,9 @@ checksum = "9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41"
+ 
+ [[package]]
+ name = "libgit2-sys"
+-version = "0.12.18+1.1.0"
++version = "0.12.19+1.1.0"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "3da6a42da88fc37ee1ecda212ffa254c25713532980005d5f7c0b0fbe7e6e885"
++checksum = "f322155d574c8b9ebe991a04f6908bb49e68a79463338d24a43d6274cb6443e6"
+ dependencies = [
+  "cc",
+  "libc",
+@@ -357,9 +357,9 @@ dependencies = [
+ 
+ [[package]]
+ name = "vcpkg"
+-version = "0.2.11"
++version = "0.2.12"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "b00bca6106a5e23f3eee943593759b7fcddb00554332e856d990c893966879fb"
++checksum = "cbdbff6266a24120518560b5dc983096efb98462e51d0d68169895b237be3e5d"
+ 
+ [[package]]
+ name = "winapi"
+diff --git a/README.md b/README.md
+index 1939928..898394d 100644
+--- a/README.md
++++ b/README.md
+@@ -201,8 +201,8 @@ To build without Git support, run `cargo install --no-default-features exa` is a
+ <a id="development">
+ <h1>Development
+ 
+-<a href="https://blog.rust-lang.org/2020/03/12/Rust-1.42.html">
+-    <img src="https://img.shields.io/badge/rustc-1.42+-lightgray.svg" alt="Rust 1.42+" />
++<a href="https://blog.rust-lang.org/2020/08/03/Rust-1.45.2.html">
++    <img src="https://img.shields.io/badge/rustc-1.45.2+-lightgray.svg" alt="Rust 1.45.2+" />
+ </a>
+ 
+ <a href="https://github.com/ogham/exa/blob/master/LICENCE">
+@@ -211,7 +211,7 @@ To build without Git support, run `cargo install --no-default-features exa` is a
+ </h1></a>
+ 
+ exa is written in [Rust](https://www.rust-lang.org/).
+-You will need rustc version 1.42.0 or higher.
++You will need rustc version 1.45.2 or higher.
+ The recommended way to install Rust for development is from the [official download page](https://www.rust-lang.org/tools/install), using rustup.
+ 
+ Once Rust is installed, you can compile exa with Cargo:
+-- 
+2.40.0
+
diff --git a/srcpkgs/exa/template b/srcpkgs/exa/template
index 248fda1e8188..ec5649613174 100644
--- a/srcpkgs/exa/template
+++ b/srcpkgs/exa/template
@@ -1,7 +1,7 @@
 # Template file for 'exa'
 pkgname=exa
 version=0.10.1
-revision=2
+revision=3
 create_wrksrc=yes
 build_wrksrc="${pkgname}-${version}"
 build_style=cargo
@@ -15,6 +15,7 @@ distfiles="https://github.com/ogham/exa/archive/refs/tags/v${version}.tar.gz
  https://github.com/ogham/exa/releases/download/v${version}/exa-accoutrements-v${version}.zip"
 checksum="ff0fa0bfc4edef8bdbbb3cabe6fdbd5481a71abbbcc2159f402dea515353ae7c
  531596a1ef2a757c7728087529528150e6eb52bb8224fe575aa00a5f1b762849"
+patch_args="-Np1 -d ${build_wrksrc}"
 
 post_extract() {
 	mkdir "${build_wrksrc}/accoutrements"

From 177f98f3cd9b9b9bff391d5835cbe843fc5b80dd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 18:53:19 +0200
Subject: [PATCH 07/12] nasa-wallpaper: generate lockfile

---
 srcpkgs/nasa-wallpaper/template | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/nasa-wallpaper/template b/srcpkgs/nasa-wallpaper/template
index be30791e780a..604b0f695f8e 100644
--- a/srcpkgs/nasa-wallpaper/template
+++ b/srcpkgs/nasa-wallpaper/template
@@ -1,7 +1,7 @@
 # Template file for 'nasa-wallpaper'
 pkgname=nasa-wallpaper
 version=2.0
-revision=3
+revision=4
 build_style="cargo"
 hostmakedepends="pkg-config"
 makedepends="openssl-devel"
@@ -11,3 +11,9 @@ license="Apache-2.0"
 homepage="https://github.com/davidpob99/nasa-wallpaper/"
 distfiles="https://github.com/davidpob99/nasa-wallpaper/archive/v${version}.tar.gz"
 checksum=5bdf85cabc954069f7188f32c5579a6d47aae1781bc438bead7d7a0af335f5f8
+
+post_patch() {
+       # Upstream does not ship a lockfile yet:
+       # https://github.com/davidpob99/nasa-wallpaper/issues/12
+       cargo generate-lockfile
+}

From b551f79c197eff6bc9301be1bc4bfeccb5aeb8da Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 19:01:24 +0200
Subject: [PATCH 08/12] pijul: generate lockfile

---
 srcpkgs/pijul/template | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/pijul/template b/srcpkgs/pijul/template
index a6a6d048b1ec..ba0d9c8def65 100644
--- a/srcpkgs/pijul/template
+++ b/srcpkgs/pijul/template
@@ -1,7 +1,7 @@
 # Template file for 'pijul'
 pkgname=pijul
 version=0.12.2
-revision=5
+revision=6
 create_wrksrc=yes
 build_style=cargo
 _sequoia_ver=0.9.0
@@ -21,6 +21,11 @@ post_extract() {
 	mv sequoia-* sequoia
 }
 
+post_patch() {
+	# Upstream does not ship a lockfile yet
+	cargo generate-lockfile
+}
+
 # We only want to install the binary, so don't run cargo install
 do_install() {
 	vbin target/${RUST_TARGET}/release/pijul

From 2084897fba54da1389c9f3e89e1a9d153d1be284 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 19:21:06 +0200
Subject: [PATCH 09/12] sss-cli: patch lockfile

---
 .../patches/0001-Update-Cargo.lock.patch      | 34 +++++++++++++++++++
 srcpkgs/sss-cli/template                      |  2 +-
 2 files changed, 35 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/sss-cli/patches/0001-Update-Cargo.lock.patch

diff --git a/srcpkgs/sss-cli/patches/0001-Update-Cargo.lock.patch b/srcpkgs/sss-cli/patches/0001-Update-Cargo.lock.patch
new file mode 100644
index 000000000000..9a9db8c77f98
--- /dev/null
+++ b/srcpkgs/sss-cli/patches/0001-Update-Cargo.lock.patch
@@ -0,0 +1,34 @@
+From 38727743d904261ac74caa3750ef801ba88092ec Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
+ <jan.christian@gruenhage.xyz>
+Date: Sat, 8 Apr 2023 19:18:31 +0200
+Subject: [PATCH] Update Cargo.lock
+
+---
+ Cargo.lock | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/Cargo.lock b/Cargo.lock
+index a57c5d8..27278d9 100644
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -1,5 +1,7 @@
+ # This file is automatically @generated by Cargo.
+ # It is not intended for manual editing.
++version = 3
++
+ [[package]]
+ name = "aho-corasick"
+ version = "0.7.15"
+@@ -253,7 +255,7 @@ dependencies = [
+ 
+ [[package]]
+ name = "shamirsecretsharing-cli"
+-version = "0.1.0"
++version = "0.1.1"
+ dependencies = [
+  "atty",
+  "clap",
+-- 
+2.40.0
+
diff --git a/srcpkgs/sss-cli/template b/srcpkgs/sss-cli/template
index 1d49663b2148..462c6b5892f1 100644
--- a/srcpkgs/sss-cli/template
+++ b/srcpkgs/sss-cli/template
@@ -1,7 +1,7 @@
 # Template file for 'sss-cli'
 pkgname=sss-cli
 version=0.1.1
-revision=1
+revision=2
 build_style=cargo
 short_desc="Shamir's secret sharing scheme CLI tool"
 maintainer="Louis Dupré Bertoni <contact@louisdb.xyz>"

From 8ba342c326bf2bf4469ca00a04e97a805cd31d4e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 19:28:40 +0200
Subject: [PATCH 10/12] svgcleaner: generate lockfile

---
 srcpkgs/svgcleaner/template | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/svgcleaner/template b/srcpkgs/svgcleaner/template
index 8f4c9cde387a..98cd332dfec5 100644
--- a/srcpkgs/svgcleaner/template
+++ b/srcpkgs/svgcleaner/template
@@ -1,7 +1,7 @@
 # Template file for 'svgcleaner'
 pkgname=svgcleaner
 version=0.9.5
-revision=1
+revision=2
 build_style=cargo
 short_desc="Tool for reducing size of svg images without loss"
 maintainer="Alexander Mamay <alexander@mamay.su>"
@@ -9,3 +9,8 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/RazrFalcon/SVGCleaner"
 distfiles="https://github.com/RazrFalcon/SVGCleaner/archive/v${version}.tar.gz"
 checksum=dcf8dbc8939699e2e82141cb86688b6cd09da8cae5e18232ef14085c2366290c
+
+post_patch() {
+	# Upstream does not ship a lockfile yet:
+	cargo generate-lockfile
+}

From 22f5300b4aff681fe95126dc26b71ef2cb6b97f3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 19:54:10 +0200
Subject: [PATCH 11/12] tmplgen: switch to git tag based tarball

---
 srcpkgs/tmplgen/template | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/tmplgen/template b/srcpkgs/tmplgen/template
index f352a5f3fd60..f51cced3b077 100644
--- a/srcpkgs/tmplgen/template
+++ b/srcpkgs/tmplgen/template
@@ -1,7 +1,7 @@
 # Template file for 'tmplgen'
 pkgname=tmplgen
 version=1.3.1
-revision=4
+revision=5
 build_style=cargo
 hostmakedepends="pkg-config"
 makedepends="openssl-devel"
@@ -9,8 +9,10 @@ short_desc="Void Linux template generator for language-specific package managers
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="https://github.com/Cogitri/tmplgen"
-distfiles="https://static.crates.io/crates/tmplgen/tmplgen-${version}.crate"
-checksum=5e5dc4b3e50f4f2dc87f510bb3d1547a86ecd5a52c0f33305a0a7a3dca40bee9
+distfiles="https://github.com/Cogitri/tmplgen/archive/refs/tags/v${version}.tar.gz"
+checksum=8c8aa5b65045614529626978852416a965d57c77dd5953be58bc84f8d8b27f9b
+# cba for now, tests weren't shipped in the previous tarballs
+make_check=no
 
 post_install() {
 	vman man/tmplgen.1

From 5aff677d2427a685e57c0b9ca277a781aa74359d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 20:11:12 +0200
Subject: [PATCH 12/12] ugdb: replace Cargo.toml patch with cargo-update, fix
 oniguruma linking

---
 srcpkgs/ugdb/patches/i128.patch | 14 --------------
 srcpkgs/ugdb/template           |  9 ++++++++-
 2 files changed, 8 insertions(+), 15 deletions(-)
 delete mode 100644 srcpkgs/ugdb/patches/i128.patch

diff --git a/srcpkgs/ugdb/patches/i128.patch b/srcpkgs/ugdb/patches/i128.patch
deleted file mode 100644
index 4496ca498d2c..000000000000
--- a/srcpkgs/ugdb/patches/i128.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-Bump some versions to get num-traits support for i128.
-
---- a/Cargo.toml
-+++ b/Cargo.toml:wq
-@@ -28,7 +28,8 @@
- rand = "0.3"
- unix_socket = "0.5"
- unicode-segmentation = "1.2"
--parse_int = "0.5"
-+parse_int = "0.6"
-+ndarray = "0.15.4"
- 
- unsegen = "0.3"
- unsegen_signals = "0.3"
diff --git a/srcpkgs/ugdb/template b/srcpkgs/ugdb/template
index a5a1ba695183..e9a741c01ed0 100644
--- a/srcpkgs/ugdb/template
+++ b/srcpkgs/ugdb/template
@@ -1,8 +1,10 @@
 # Template file for 'ugdb'
 pkgname=ugdb
 version=0.1.11
-revision=2
+revision=3
 build_style=cargo
+hostmakedepends="pkg-config"
+makedepends="oniguruma-devel"
 checkdepends="gdb"
 short_desc="Alternative TUI for gdb"
 maintainer="Érico Nogueira <ericonr@disroot.org>"
@@ -11,6 +13,11 @@ homepage="https://github.com/ftilde/ugdb"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=d092356534774505b6b081b82db71d1fab1fbccdb814a44d4c435bafe5efd312
 
+post_patch() {
+	cargo update --package parse_int:0.5.0 --precise 0.6.0
+	cargo update --package ndarray:0.8.4 --precise 0.15.4
+}
+
 post_install() {
 	vlicense LICENSE
 }

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

* Re: [PR PATCH] [Updated] RFC: common/build-style/cargo.sh: use --locked for build and check as well
  2023-04-03  6:50 [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well jcgruenhage
                   ` (9 preceding siblings ...)
  2023-04-08 18:11 ` [PR PATCH] [Updated] " jcgruenhage
@ 2023-04-08 18:29 ` jcgruenhage
  2023-04-08 18:31 ` jcgruenhage
                   ` (10 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: jcgruenhage @ 2023-04-08 18:29 UTC (permalink / raw)
  To: ml

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

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

https://github.com/jcgruenhage/void-packages locked-cargo
https://github.com/void-linux/void-packages/pull/43233

RFC: common/build-style/cargo.sh: use --locked for build and check as well
#### 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/43233.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-locked-cargo-43233.patch --]
[-- Type: text/x-diff, Size: 28145 bytes --]

From c108b6803e997443c5df6973e97cd6ed89c43047 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sun, 2 Apr 2023 16:25:24 +0200
Subject: [PATCH 01/12] common/build-style/cargo.sh: use --locked for build and
 check as well

---
 common/build-style/cargo.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/build-style/cargo.sh b/common/build-style/cargo.sh
index 387e711060bc..751911d8dbee 100644
--- a/common/build-style/cargo.sh
+++ b/common/build-style/cargo.sh
@@ -5,14 +5,14 @@
 do_build() {
 	: ${make_cmd:=cargo auditable}
 
-	${make_cmd} build --release --target ${RUST_TARGET} ${configure_args}
+	${make_cmd} build --release --locked --target ${RUST_TARGET} ${configure_args}
 }
 
 do_check() {
 	: ${make_cmd:=cargo auditable}
 
-	${make_check_pre} ${make_cmd} test --release --target ${RUST_TARGET} ${configure_args} \
-		${make_check_args}
+	${make_check_pre} ${make_cmd} test --release --locked --target ${RUST_TARGET} \
+		${configure_args} ${make_check_args}
 }
 
 do_install() {

From 55b00afb511f503daa6efe4ff36c58339c0e695e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Mon, 3 Apr 2023 08:49:10 +0200
Subject: [PATCH 02/12] cargo-update: generate lockfile

---
 srcpkgs/cargo-update/template | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/cargo-update/template b/srcpkgs/cargo-update/template
index f892886fca3f..f31800e0abe0 100644
--- a/srcpkgs/cargo-update/template
+++ b/srcpkgs/cargo-update/template
@@ -1,7 +1,7 @@
 # Template file for 'cargo-update'
 pkgname=cargo-update
 version=13.0.0
-revision=1
+revision=2
 build_style=cargo
 hostmakedepends="pkg-config go-md2man"
 makedepends="libcurl-devel libgit2-devel libssh2-devel openssl-devel"
@@ -18,6 +18,13 @@ if [ "$XBPS_TARGET_MACHINE" == "i686" ]; then
 	make_check_args="-- --skip ops::assert_index_path"
 fi
 
+post_patch() {
+	# Upstream does not ship a lockfile and is very vocal about that being
+	# the right way:
+	# https://github.com/nabijaczleweli/cargo-update/issues/50
+	cargo generate-lockfile
+}
+
 post_install() {
 	vlicense LICENSE
 	vdoc README.md

From 6dd84c8b9a2c54dd8601cfbb310e2ffbc92493ed Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 17:52:44 +0200
Subject: [PATCH 03/12] alert-after: patch lockfile

---
 .../patches/0001-Update-Cargo.lock.patch      | 155 ++++++++++++++++++
 srcpkgs/alert-after/template                  |   2 +-
 2 files changed, 156 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/alert-after/patches/0001-Update-Cargo.lock.patch

diff --git a/srcpkgs/alert-after/patches/0001-Update-Cargo.lock.patch b/srcpkgs/alert-after/patches/0001-Update-Cargo.lock.patch
new file mode 100644
index 000000000000..c0d727f8c2c5
--- /dev/null
+++ b/srcpkgs/alert-after/patches/0001-Update-Cargo.lock.patch
@@ -0,0 +1,155 @@
+From f4141915692ee8cc437209aaa6f507fc372792ed Mon Sep 17 00:00:00 2001
+From: Corey Farwell <coreyf@rwell.org>
+Date: Wed, 10 Apr 2019 06:36:39 -0400
+Subject: [PATCH] Update Cargo.lock
+
+---
+ Cargo.lock | 61 +++++++-----------------------------------------------
+ 1 file changed, 8 insertions(+), 53 deletions(-)
+
+diff --git a/Cargo.lock b/Cargo.lock
+index de84926..038c9ca 100644
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -2,9 +2,9 @@
+ # It is not intended for manual editing.
+ [[package]]
+ name = "alert-after"
+-version = "1.5.0"
++version = "1.5.1"
+ dependencies = [
+- "notifica 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
++ "notifica 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+ [[package]]
+@@ -154,12 +154,12 @@ dependencies = [
+ 
+ [[package]]
+ name = "notifica"
+-version = "1.0.0"
++version = "1.0.2"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ dependencies = [
+  "mac-notification-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
+  "notify-rust 3.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winrt 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
++ "winrt 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+ [[package]]
+@@ -211,24 +211,6 @@ dependencies = [
+  "objc 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+-[[package]]
+-name = "ole32-sys"
+-version = "0.2.0"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-dependencies = [
+- "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
+-]
+-
+-[[package]]
+-name = "oleaut32-sys"
+-version = "0.2.0"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-dependencies = [
+- "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
+-]
+-
+ [[package]]
+ name = "pkg-config"
+ version = "0.3.14"
+@@ -255,15 +237,6 @@ name = "redox_syscall"
+ version = "0.1.53"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ 
+-[[package]]
+-name = "runtimeobject-sys"
+-version = "0.2.0"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-dependencies = [
+- "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
+-]
+-
+ [[package]]
+ name = "rustc-demangle"
+ version = "0.1.13"
+@@ -305,11 +278,6 @@ name = "unicode-xid"
+ version = "0.1.0"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ 
+-[[package]]
+-name = "winapi"
+-version = "0.2.8"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-
+ [[package]]
+ name = "winapi"
+ version = "0.3.7"
+@@ -319,11 +287,6 @@ dependencies = [
+  "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+-[[package]]
+-name = "winapi-build"
+-version = "0.1.1"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-
+ [[package]]
+ name = "winapi-i686-pc-windows-gnu"
+ version = "0.4.0"
+@@ -336,13 +299,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
+ 
+ [[package]]
+ name = "winrt"
+-version = "0.3.0"
++version = "0.5.1"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ dependencies = [
+- "ole32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
+- "oleaut32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
+- "runtimeobject-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
++ "winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+ [metadata]
+@@ -364,28 +324,23 @@ dependencies = [
+ "checksum mac-notification-sys 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "6a3639b6caa2db7443e5df80e12c450982f77fc3c140f53d6e48be91f965ea66"
+ "checksum mac-notification-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a7f588a226cfab0536c23ef64ce521d2a0469315731460c6f924b39d162bc162"
+ "checksum malloc_buf 0.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb"
+-"checksum notifica 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2dc6d2270aa8b606c081c25f2d06b870e3c9226b0e7b98e63b990bdb390cb488"
++"checksum notifica 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e4bf0be3d0aa13ec1467834b3b4d0a3fdee1215c7483b9b54b31fd4dad356814"
+ "checksum notify-rust 3.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "46d847abfe6489a4f7817ec893efeb27f8250755b2272bfa933bcf69af4bda42"
+ "checksum num-integer 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)" = "e83d528d2677f0518c570baf2b7abdcf0cd2d248860b68507bdcb3e91d4c0cea"
+ "checksum num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0b3a5d7cc97d6d30d8b9bc8fa19bf45349ffe46241e8816f50f62f6d6aaabee1"
+ "checksum objc 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "31d20fd2b37e07cf5125be68357b588672e8cefe9a96f8c17a9d46053b3e590d"
+ "checksum objc-foundation 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "1add1b659e36c9607c7aab864a76c7a4c2760cd0cd2e120f3fb8b952c7e22bf9"
+ "checksum objc_id 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c92d4ddb4bd7b50d730c215ff871754d0da6b2178849f8a2a2ab69712d0c073b"
+-"checksum ole32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5d2c49021782e5233cd243168edfa8037574afed4eba4bbaf538b3d8d1789d8c"
+-"checksum oleaut32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1fde17b30b27384afd9a5b02c5429cc356b82263f4bd15e5661c5df9e9df612f"
+ "checksum pkg-config 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)" = "676e8eb2b1b4c9043511a9b7bea0915320d7e502b0a079fb03f9635a5252b18c"
+ "checksum proc-macro2 0.4.27 (registry+https://github.com/rust-lang/crates.io-index)" = "4d317f9caece796be1980837fd5cb3dfec5613ebdb04ad0956deea83ce168915"
+ "checksum quote 0.6.11 (registry+https://github.com/rust-lang/crates.io-index)" = "cdd8e04bd9c52e0342b406469d494fcb033be4bdbe5c606016defbb1681411e1"
+ "checksum redox_syscall 0.1.53 (registry+https://github.com/rust-lang/crates.io-index)" = "53848511b7ee6eb9d5c3db48481aaa5779b38fc0131bc133c98cb4f2b2411928"
+-"checksum runtimeobject-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c2222472d6d46b6a047029b80a766759879590fa1d31a531456eff0cd855b273"
+ "checksum rustc-demangle 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)" = "adacaae16d02b6ec37fdc7acfcddf365978de76d1983d3ee22afc260e1ca9619"
+ "checksum syn 0.15.30 (registry+https://github.com/rust-lang/crates.io-index)" = "66c8865bf5a7cbb662d8b011950060b3c8743dca141b054bf7195b20d314d8e2"
+ "checksum synstructure 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)" = "73687139bf99285483c96ac0add482c3776528beac1d97d444f6e91f203a2015"
+ "checksum time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)" = "db8dcfca086c1143c9270ac42a2bbd8a7ee477b78ac8e45b19abfb0cbede4b6f"
+ "checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc"
+-"checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"
+ "checksum winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)" = "f10e386af2b13e47c89e7236a7a14a086791a2b88ebad6df9bf42040195cf770"
+-"checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"
+ "checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
+ "checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+-"checksum winrt 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ce322394c4d48755ad50fc867ffb70b433a336944935c3098b4e1ca4bbb0870a"
++"checksum winrt 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0c4c01eac5a45f4fcb31db47886257ff0b0ec8958b581ff841b0d992a7e97f94"
+-- 
+2.40.0
+
diff --git a/srcpkgs/alert-after/template b/srcpkgs/alert-after/template
index 27dcd62231e3..8345dc519624 100644
--- a/srcpkgs/alert-after/template
+++ b/srcpkgs/alert-after/template
@@ -1,7 +1,7 @@
 # Template file for 'alert-after'
 pkgname=alert-after
 version=1.5.1
-revision=1
+revision=2
 build_style=cargo
 hostmakedepends="pkg-config"
 makedepends="dbus-devel"

From 516f709a0293266b46a80dd8e80ca45c34eded6f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 18:07:02 +0200
Subject: [PATCH 04/12] blindfold: generate lockfile

---
 srcpkgs/blindfold/template | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/blindfold/template b/srcpkgs/blindfold/template
index ee605e767102..8c9306e69f7c 100644
--- a/srcpkgs/blindfold/template
+++ b/srcpkgs/blindfold/template
@@ -1,7 +1,7 @@
 # Template file for 'blindfold'
 pkgname=blindfold
 version=1.0.6
-revision=2
+revision=3
 build_style=cargo
 hostmakedepends="pkg-config"
 makedepends="openssl-devel"
@@ -12,6 +12,12 @@ homepage="https://github.com/Eoin-McMahon/blindfold"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=eff539920d4efa5c0fc35067c40347ceb8b01a922f443460a28e8c5e0b3237ca
 
+post_patch() {
+	# Upstream does not ship a lockfile yet:
+	# https://github.com/Eoin-McMahon/blindfold/issues/23
+	cargo generate-lockfile
+}
+
 post_install() {
 	vlicense LICENSE
 }

From 96c591b13d643c2e2283781fe9505c0dd005cc1b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 18:15:15 +0200
Subject: [PATCH 05/12] desed: generate lockfile

---
 srcpkgs/desed/template | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/desed/template b/srcpkgs/desed/template
index 2f163115a797..e6f854bc90ee 100644
--- a/srcpkgs/desed/template
+++ b/srcpkgs/desed/template
@@ -1,7 +1,7 @@
 # Template file for 'desed'
 pkgname=desed
 version=1.2.1
-revision=1
+revision=2
 build_style=cargo
 short_desc="Demystify and debug sed scripts"
 maintainer="Andrew Benson <abenson+void@gmail.com>"
@@ -9,3 +9,9 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/SoptikHa2/desed"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=bee8c60d58f11472c036277b0318bdceb5520cce5a61965bc028b26ccbdeb706
+
+post_patch() {
+	# Upstream does not ship a lockfile yet:
+	# https://github.com/SoptikHa2/desed/issues/27
+	cargo generate-lockfile
+}

From 0b4cfe9aac8400bdffa40c967da56355a2b6f73b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 18:25:34 +0200
Subject: [PATCH 06/12] exa: patch lockfile

---
 .../patches/0001-Update-lockfile-854.patch    | 129 ++++++++++++++++++
 srcpkgs/exa/template                          |   3 +-
 2 files changed, 131 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/exa/patches/0001-Update-lockfile-854.patch

diff --git a/srcpkgs/exa/patches/0001-Update-lockfile-854.patch b/srcpkgs/exa/patches/0001-Update-lockfile-854.patch
new file mode 100644
index 000000000000..6b44fa814a49
--- /dev/null
+++ b/srcpkgs/exa/patches/0001-Update-lockfile-854.patch
@@ -0,0 +1,129 @@
+From 90b97753adb630513d68be7e66410e2b149ea446 Mon Sep 17 00:00:00 2001
+From: Haren S <harens@macports.org>
+Date: Mon, 26 Apr 2021 22:37:32 +0100
+Subject: [PATCH] Update lockfile (#854)
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Update lockfile (exa now requires Rust 1.45.2 or higher)
+
+Co-authored-by: Mélanie Chauvel <perso@hack-libre.org>
+---
+ .travis.yml |  2 +-
+ Cargo.lock  | 22 +++++++++++-----------
+ README.md   |  6 +++---
+ 3 files changed, 15 insertions(+), 15 deletions(-)
+
+diff --git a/.travis.yml b/.travis.yml
+index cc98081..1f08108 100644
+--- a/.travis.yml
++++ b/.travis.yml
+@@ -1,6 +1,6 @@
+ language: rust
+ rust:
+-  - 1.42.0
++  - 1.45.2
+   - stable
+   - beta
+   - nightly
+diff --git a/Cargo.lock b/Cargo.lock
+index df94188..6a0665d 100644
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -57,7 +57,7 @@ dependencies = [
+ 
+ [[package]]
+ name = "exa"
+-version = "0.11.0-pre"
++version = "0.10.1"
+ dependencies = [
+  "ansi_term",
+  "datetime",
+@@ -90,9 +90,9 @@ dependencies = [
+ 
+ [[package]]
+ name = "git2"
+-version = "0.13.17"
++version = "0.13.18"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "1d250f5f82326884bd39c2853577e70a121775db76818ffa452ed1e80de12986"
++checksum = "b483c6c2145421099df1b4efd50e0f6205479a072199460eff852fa15e5603c7"
+ dependencies = [
+  "bitflags",
+  "libc",
+@@ -119,9 +119,9 @@ dependencies = [
+ 
+ [[package]]
+ name = "idna"
+-version = "0.2.2"
++version = "0.2.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "89829a5d69c23d348314a7ac337fe39173b61149a9864deabd260983aed48c21"
++checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8"
+ dependencies = [
+  "matches",
+  "unicode-bidi",
+@@ -130,9 +130,9 @@ dependencies = [
+ 
+ [[package]]
+ name = "jobserver"
+-version = "0.1.21"
++version = "0.1.22"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "5c71313ebb9439f74b00d9d2dcec36440beaf57a6aa0623068441dd7cd81a7f2"
++checksum = "972f5ae5d1cb9c6ae417789196c803205313edde988685da5e3aae0827b9e7fd"
+ dependencies = [
+  "libc",
+ ]
+@@ -151,9 +151,9 @@ checksum = "9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41"
+ 
+ [[package]]
+ name = "libgit2-sys"
+-version = "0.12.18+1.1.0"
++version = "0.12.19+1.1.0"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "3da6a42da88fc37ee1ecda212ffa254c25713532980005d5f7c0b0fbe7e6e885"
++checksum = "f322155d574c8b9ebe991a04f6908bb49e68a79463338d24a43d6274cb6443e6"
+ dependencies = [
+  "cc",
+  "libc",
+@@ -357,9 +357,9 @@ dependencies = [
+ 
+ [[package]]
+ name = "vcpkg"
+-version = "0.2.11"
++version = "0.2.12"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "b00bca6106a5e23f3eee943593759b7fcddb00554332e856d990c893966879fb"
++checksum = "cbdbff6266a24120518560b5dc983096efb98462e51d0d68169895b237be3e5d"
+ 
+ [[package]]
+ name = "winapi"
+diff --git a/README.md b/README.md
+index 1939928..898394d 100644
+--- a/README.md
++++ b/README.md
+@@ -201,8 +201,8 @@ To build without Git support, run `cargo install --no-default-features exa` is a
+ <a id="development">
+ <h1>Development
+ 
+-<a href="https://blog.rust-lang.org/2020/03/12/Rust-1.42.html">
+-    <img src="https://img.shields.io/badge/rustc-1.42+-lightgray.svg" alt="Rust 1.42+" />
++<a href="https://blog.rust-lang.org/2020/08/03/Rust-1.45.2.html">
++    <img src="https://img.shields.io/badge/rustc-1.45.2+-lightgray.svg" alt="Rust 1.45.2+" />
+ </a>
+ 
+ <a href="https://github.com/ogham/exa/blob/master/LICENCE">
+@@ -211,7 +211,7 @@ To build without Git support, run `cargo install --no-default-features exa` is a
+ </h1></a>
+ 
+ exa is written in [Rust](https://www.rust-lang.org/).
+-You will need rustc version 1.42.0 or higher.
++You will need rustc version 1.45.2 or higher.
+ The recommended way to install Rust for development is from the [official download page](https://www.rust-lang.org/tools/install), using rustup.
+ 
+ Once Rust is installed, you can compile exa with Cargo:
+-- 
+2.40.0
+
diff --git a/srcpkgs/exa/template b/srcpkgs/exa/template
index 248fda1e8188..ec5649613174 100644
--- a/srcpkgs/exa/template
+++ b/srcpkgs/exa/template
@@ -1,7 +1,7 @@
 # Template file for 'exa'
 pkgname=exa
 version=0.10.1
-revision=2
+revision=3
 create_wrksrc=yes
 build_wrksrc="${pkgname}-${version}"
 build_style=cargo
@@ -15,6 +15,7 @@ distfiles="https://github.com/ogham/exa/archive/refs/tags/v${version}.tar.gz
  https://github.com/ogham/exa/releases/download/v${version}/exa-accoutrements-v${version}.zip"
 checksum="ff0fa0bfc4edef8bdbbb3cabe6fdbd5481a71abbbcc2159f402dea515353ae7c
  531596a1ef2a757c7728087529528150e6eb52bb8224fe575aa00a5f1b762849"
+patch_args="-Np1 -d ${build_wrksrc}"
 
 post_extract() {
 	mkdir "${build_wrksrc}/accoutrements"

From 177f98f3cd9b9b9bff391d5835cbe843fc5b80dd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 18:53:19 +0200
Subject: [PATCH 07/12] nasa-wallpaper: generate lockfile

---
 srcpkgs/nasa-wallpaper/template | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/nasa-wallpaper/template b/srcpkgs/nasa-wallpaper/template
index be30791e780a..604b0f695f8e 100644
--- a/srcpkgs/nasa-wallpaper/template
+++ b/srcpkgs/nasa-wallpaper/template
@@ -1,7 +1,7 @@
 # Template file for 'nasa-wallpaper'
 pkgname=nasa-wallpaper
 version=2.0
-revision=3
+revision=4
 build_style="cargo"
 hostmakedepends="pkg-config"
 makedepends="openssl-devel"
@@ -11,3 +11,9 @@ license="Apache-2.0"
 homepage="https://github.com/davidpob99/nasa-wallpaper/"
 distfiles="https://github.com/davidpob99/nasa-wallpaper/archive/v${version}.tar.gz"
 checksum=5bdf85cabc954069f7188f32c5579a6d47aae1781bc438bead7d7a0af335f5f8
+
+post_patch() {
+       # Upstream does not ship a lockfile yet:
+       # https://github.com/davidpob99/nasa-wallpaper/issues/12
+       cargo generate-lockfile
+}

From b551f79c197eff6bc9301be1bc4bfeccb5aeb8da Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 19:01:24 +0200
Subject: [PATCH 08/12] pijul: generate lockfile

---
 srcpkgs/pijul/template | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/pijul/template b/srcpkgs/pijul/template
index a6a6d048b1ec..ba0d9c8def65 100644
--- a/srcpkgs/pijul/template
+++ b/srcpkgs/pijul/template
@@ -1,7 +1,7 @@
 # Template file for 'pijul'
 pkgname=pijul
 version=0.12.2
-revision=5
+revision=6
 create_wrksrc=yes
 build_style=cargo
 _sequoia_ver=0.9.0
@@ -21,6 +21,11 @@ post_extract() {
 	mv sequoia-* sequoia
 }
 
+post_patch() {
+	# Upstream does not ship a lockfile yet
+	cargo generate-lockfile
+}
+
 # We only want to install the binary, so don't run cargo install
 do_install() {
 	vbin target/${RUST_TARGET}/release/pijul

From 2084897fba54da1389c9f3e89e1a9d153d1be284 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 19:21:06 +0200
Subject: [PATCH 09/12] sss-cli: patch lockfile

---
 .../patches/0001-Update-Cargo.lock.patch      | 34 +++++++++++++++++++
 srcpkgs/sss-cli/template                      |  2 +-
 2 files changed, 35 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/sss-cli/patches/0001-Update-Cargo.lock.patch

diff --git a/srcpkgs/sss-cli/patches/0001-Update-Cargo.lock.patch b/srcpkgs/sss-cli/patches/0001-Update-Cargo.lock.patch
new file mode 100644
index 000000000000..9a9db8c77f98
--- /dev/null
+++ b/srcpkgs/sss-cli/patches/0001-Update-Cargo.lock.patch
@@ -0,0 +1,34 @@
+From 38727743d904261ac74caa3750ef801ba88092ec Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
+ <jan.christian@gruenhage.xyz>
+Date: Sat, 8 Apr 2023 19:18:31 +0200
+Subject: [PATCH] Update Cargo.lock
+
+---
+ Cargo.lock | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/Cargo.lock b/Cargo.lock
+index a57c5d8..27278d9 100644
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -1,5 +1,7 @@
+ # This file is automatically @generated by Cargo.
+ # It is not intended for manual editing.
++version = 3
++
+ [[package]]
+ name = "aho-corasick"
+ version = "0.7.15"
+@@ -253,7 +255,7 @@ dependencies = [
+ 
+ [[package]]
+ name = "shamirsecretsharing-cli"
+-version = "0.1.0"
++version = "0.1.1"
+ dependencies = [
+  "atty",
+  "clap",
+-- 
+2.40.0
+
diff --git a/srcpkgs/sss-cli/template b/srcpkgs/sss-cli/template
index 1d49663b2148..462c6b5892f1 100644
--- a/srcpkgs/sss-cli/template
+++ b/srcpkgs/sss-cli/template
@@ -1,7 +1,7 @@
 # Template file for 'sss-cli'
 pkgname=sss-cli
 version=0.1.1
-revision=1
+revision=2
 build_style=cargo
 short_desc="Shamir's secret sharing scheme CLI tool"
 maintainer="Louis Dupré Bertoni <contact@louisdb.xyz>"

From 8ba342c326bf2bf4469ca00a04e97a805cd31d4e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 19:28:40 +0200
Subject: [PATCH 10/12] svgcleaner: generate lockfile

---
 srcpkgs/svgcleaner/template | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/svgcleaner/template b/srcpkgs/svgcleaner/template
index 8f4c9cde387a..98cd332dfec5 100644
--- a/srcpkgs/svgcleaner/template
+++ b/srcpkgs/svgcleaner/template
@@ -1,7 +1,7 @@
 # Template file for 'svgcleaner'
 pkgname=svgcleaner
 version=0.9.5
-revision=1
+revision=2
 build_style=cargo
 short_desc="Tool for reducing size of svg images without loss"
 maintainer="Alexander Mamay <alexander@mamay.su>"
@@ -9,3 +9,8 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/RazrFalcon/SVGCleaner"
 distfiles="https://github.com/RazrFalcon/SVGCleaner/archive/v${version}.tar.gz"
 checksum=dcf8dbc8939699e2e82141cb86688b6cd09da8cae5e18232ef14085c2366290c
+
+post_patch() {
+	# Upstream does not ship a lockfile yet:
+	cargo generate-lockfile
+}

From 22f5300b4aff681fe95126dc26b71ef2cb6b97f3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 19:54:10 +0200
Subject: [PATCH 11/12] tmplgen: switch to git tag based tarball

---
 srcpkgs/tmplgen/template | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/tmplgen/template b/srcpkgs/tmplgen/template
index f352a5f3fd60..f51cced3b077 100644
--- a/srcpkgs/tmplgen/template
+++ b/srcpkgs/tmplgen/template
@@ -1,7 +1,7 @@
 # Template file for 'tmplgen'
 pkgname=tmplgen
 version=1.3.1
-revision=4
+revision=5
 build_style=cargo
 hostmakedepends="pkg-config"
 makedepends="openssl-devel"
@@ -9,8 +9,10 @@ short_desc="Void Linux template generator for language-specific package managers
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="https://github.com/Cogitri/tmplgen"
-distfiles="https://static.crates.io/crates/tmplgen/tmplgen-${version}.crate"
-checksum=5e5dc4b3e50f4f2dc87f510bb3d1547a86ecd5a52c0f33305a0a7a3dca40bee9
+distfiles="https://github.com/Cogitri/tmplgen/archive/refs/tags/v${version}.tar.gz"
+checksum=8c8aa5b65045614529626978852416a965d57c77dd5953be58bc84f8d8b27f9b
+# cba for now, tests weren't shipped in the previous tarballs
+make_check=no
 
 post_install() {
 	vman man/tmplgen.1

From 839b3303c2dee76885c53df13cb375ffd4e0b9cf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 20:11:12 +0200
Subject: [PATCH 12/12] ugdb: replace Cargo.toml patch with cargo-update, fix
 oniguruma linking

---
 srcpkgs/ugdb/patches/i128.patch | 14 --------------
 srcpkgs/ugdb/template           |  9 ++++++++-
 2 files changed, 8 insertions(+), 15 deletions(-)
 delete mode 100644 srcpkgs/ugdb/patches/i128.patch

diff --git a/srcpkgs/ugdb/patches/i128.patch b/srcpkgs/ugdb/patches/i128.patch
deleted file mode 100644
index 4496ca498d2c..000000000000
--- a/srcpkgs/ugdb/patches/i128.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-Bump some versions to get num-traits support for i128.
-
---- a/Cargo.toml
-+++ b/Cargo.toml:wq
-@@ -28,7 +28,8 @@
- rand = "0.3"
- unix_socket = "0.5"
- unicode-segmentation = "1.2"
--parse_int = "0.5"
-+parse_int = "0.6"
-+ndarray = "0.15.4"
- 
- unsegen = "0.3"
- unsegen_signals = "0.3"
diff --git a/srcpkgs/ugdb/template b/srcpkgs/ugdb/template
index a5a1ba695183..d1a9de0ece42 100644
--- a/srcpkgs/ugdb/template
+++ b/srcpkgs/ugdb/template
@@ -1,8 +1,10 @@
 # Template file for 'ugdb'
 pkgname=ugdb
 version=0.1.11
-revision=2
+revision=3
 build_style=cargo
+hostmakedepends="pkg-config"
+makedepends="oniguruma-devel"
 checkdepends="gdb"
 short_desc="Alternative TUI for gdb"
 maintainer="Érico Nogueira <ericonr@disroot.org>"
@@ -11,6 +13,11 @@ homepage="https://github.com/ftilde/ugdb"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=d092356534774505b6b081b82db71d1fab1fbccdb814a44d4c435bafe5efd312
 
+post_patch() {
+	vsed -i Cargo.toml -e 's/parse_int = "0.5"/parse_int = "0.6"/'
+	cargo update --package parse_int:0.5.0 --precise 0.6.0
+}
+
 post_install() {
 	vlicense LICENSE
 }

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

* Re: [PR PATCH] [Updated] RFC: common/build-style/cargo.sh: use --locked for build and check as well
  2023-04-03  6:50 [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well jcgruenhage
                   ` (10 preceding siblings ...)
  2023-04-08 18:29 ` jcgruenhage
@ 2023-04-08 18:31 ` jcgruenhage
  2023-04-13  5:01 ` classabbyamp
                   ` (9 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: jcgruenhage @ 2023-04-08 18:31 UTC (permalink / raw)
  To: ml

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

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

https://github.com/jcgruenhage/void-packages locked-cargo
https://github.com/void-linux/void-packages/pull/43233

RFC: common/build-style/cargo.sh: use --locked for build and check as well
#### 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/43233.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-locked-cargo-43233.patch --]
[-- Type: text/x-diff, Size: 28127 bytes --]

From c108b6803e997443c5df6973e97cd6ed89c43047 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sun, 2 Apr 2023 16:25:24 +0200
Subject: [PATCH 01/12] common/build-style/cargo.sh: use --locked for build and
 check as well

---
 common/build-style/cargo.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/build-style/cargo.sh b/common/build-style/cargo.sh
index 387e711060bc..751911d8dbee 100644
--- a/common/build-style/cargo.sh
+++ b/common/build-style/cargo.sh
@@ -5,14 +5,14 @@
 do_build() {
 	: ${make_cmd:=cargo auditable}
 
-	${make_cmd} build --release --target ${RUST_TARGET} ${configure_args}
+	${make_cmd} build --release --locked --target ${RUST_TARGET} ${configure_args}
 }
 
 do_check() {
 	: ${make_cmd:=cargo auditable}
 
-	${make_check_pre} ${make_cmd} test --release --target ${RUST_TARGET} ${configure_args} \
-		${make_check_args}
+	${make_check_pre} ${make_cmd} test --release --locked --target ${RUST_TARGET} \
+		${configure_args} ${make_check_args}
 }
 
 do_install() {

From 55b00afb511f503daa6efe4ff36c58339c0e695e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Mon, 3 Apr 2023 08:49:10 +0200
Subject: [PATCH 02/12] cargo-update: generate lockfile

---
 srcpkgs/cargo-update/template | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/cargo-update/template b/srcpkgs/cargo-update/template
index f892886fca3f..f31800e0abe0 100644
--- a/srcpkgs/cargo-update/template
+++ b/srcpkgs/cargo-update/template
@@ -1,7 +1,7 @@
 # Template file for 'cargo-update'
 pkgname=cargo-update
 version=13.0.0
-revision=1
+revision=2
 build_style=cargo
 hostmakedepends="pkg-config go-md2man"
 makedepends="libcurl-devel libgit2-devel libssh2-devel openssl-devel"
@@ -18,6 +18,13 @@ if [ "$XBPS_TARGET_MACHINE" == "i686" ]; then
 	make_check_args="-- --skip ops::assert_index_path"
 fi
 
+post_patch() {
+	# Upstream does not ship a lockfile and is very vocal about that being
+	# the right way:
+	# https://github.com/nabijaczleweli/cargo-update/issues/50
+	cargo generate-lockfile
+}
+
 post_install() {
 	vlicense LICENSE
 	vdoc README.md

From 6dd84c8b9a2c54dd8601cfbb310e2ffbc92493ed Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 17:52:44 +0200
Subject: [PATCH 03/12] alert-after: patch lockfile

---
 .../patches/0001-Update-Cargo.lock.patch      | 155 ++++++++++++++++++
 srcpkgs/alert-after/template                  |   2 +-
 2 files changed, 156 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/alert-after/patches/0001-Update-Cargo.lock.patch

diff --git a/srcpkgs/alert-after/patches/0001-Update-Cargo.lock.patch b/srcpkgs/alert-after/patches/0001-Update-Cargo.lock.patch
new file mode 100644
index 000000000000..c0d727f8c2c5
--- /dev/null
+++ b/srcpkgs/alert-after/patches/0001-Update-Cargo.lock.patch
@@ -0,0 +1,155 @@
+From f4141915692ee8cc437209aaa6f507fc372792ed Mon Sep 17 00:00:00 2001
+From: Corey Farwell <coreyf@rwell.org>
+Date: Wed, 10 Apr 2019 06:36:39 -0400
+Subject: [PATCH] Update Cargo.lock
+
+---
+ Cargo.lock | 61 +++++++-----------------------------------------------
+ 1 file changed, 8 insertions(+), 53 deletions(-)
+
+diff --git a/Cargo.lock b/Cargo.lock
+index de84926..038c9ca 100644
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -2,9 +2,9 @@
+ # It is not intended for manual editing.
+ [[package]]
+ name = "alert-after"
+-version = "1.5.0"
++version = "1.5.1"
+ dependencies = [
+- "notifica 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
++ "notifica 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+ [[package]]
+@@ -154,12 +154,12 @@ dependencies = [
+ 
+ [[package]]
+ name = "notifica"
+-version = "1.0.0"
++version = "1.0.2"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ dependencies = [
+  "mac-notification-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
+  "notify-rust 3.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winrt 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
++ "winrt 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+ [[package]]
+@@ -211,24 +211,6 @@ dependencies = [
+  "objc 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+-[[package]]
+-name = "ole32-sys"
+-version = "0.2.0"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-dependencies = [
+- "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
+-]
+-
+-[[package]]
+-name = "oleaut32-sys"
+-version = "0.2.0"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-dependencies = [
+- "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
+-]
+-
+ [[package]]
+ name = "pkg-config"
+ version = "0.3.14"
+@@ -255,15 +237,6 @@ name = "redox_syscall"
+ version = "0.1.53"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ 
+-[[package]]
+-name = "runtimeobject-sys"
+-version = "0.2.0"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-dependencies = [
+- "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
+-]
+-
+ [[package]]
+ name = "rustc-demangle"
+ version = "0.1.13"
+@@ -305,11 +278,6 @@ name = "unicode-xid"
+ version = "0.1.0"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ 
+-[[package]]
+-name = "winapi"
+-version = "0.2.8"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-
+ [[package]]
+ name = "winapi"
+ version = "0.3.7"
+@@ -319,11 +287,6 @@ dependencies = [
+  "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+-[[package]]
+-name = "winapi-build"
+-version = "0.1.1"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-
+ [[package]]
+ name = "winapi-i686-pc-windows-gnu"
+ version = "0.4.0"
+@@ -336,13 +299,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
+ 
+ [[package]]
+ name = "winrt"
+-version = "0.3.0"
++version = "0.5.1"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ dependencies = [
+- "ole32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
+- "oleaut32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
+- "runtimeobject-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
++ "winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+ [metadata]
+@@ -364,28 +324,23 @@ dependencies = [
+ "checksum mac-notification-sys 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "6a3639b6caa2db7443e5df80e12c450982f77fc3c140f53d6e48be91f965ea66"
+ "checksum mac-notification-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a7f588a226cfab0536c23ef64ce521d2a0469315731460c6f924b39d162bc162"
+ "checksum malloc_buf 0.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb"
+-"checksum notifica 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2dc6d2270aa8b606c081c25f2d06b870e3c9226b0e7b98e63b990bdb390cb488"
++"checksum notifica 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e4bf0be3d0aa13ec1467834b3b4d0a3fdee1215c7483b9b54b31fd4dad356814"
+ "checksum notify-rust 3.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "46d847abfe6489a4f7817ec893efeb27f8250755b2272bfa933bcf69af4bda42"
+ "checksum num-integer 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)" = "e83d528d2677f0518c570baf2b7abdcf0cd2d248860b68507bdcb3e91d4c0cea"
+ "checksum num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0b3a5d7cc97d6d30d8b9bc8fa19bf45349ffe46241e8816f50f62f6d6aaabee1"
+ "checksum objc 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "31d20fd2b37e07cf5125be68357b588672e8cefe9a96f8c17a9d46053b3e590d"
+ "checksum objc-foundation 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "1add1b659e36c9607c7aab864a76c7a4c2760cd0cd2e120f3fb8b952c7e22bf9"
+ "checksum objc_id 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c92d4ddb4bd7b50d730c215ff871754d0da6b2178849f8a2a2ab69712d0c073b"
+-"checksum ole32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5d2c49021782e5233cd243168edfa8037574afed4eba4bbaf538b3d8d1789d8c"
+-"checksum oleaut32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1fde17b30b27384afd9a5b02c5429cc356b82263f4bd15e5661c5df9e9df612f"
+ "checksum pkg-config 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)" = "676e8eb2b1b4c9043511a9b7bea0915320d7e502b0a079fb03f9635a5252b18c"
+ "checksum proc-macro2 0.4.27 (registry+https://github.com/rust-lang/crates.io-index)" = "4d317f9caece796be1980837fd5cb3dfec5613ebdb04ad0956deea83ce168915"
+ "checksum quote 0.6.11 (registry+https://github.com/rust-lang/crates.io-index)" = "cdd8e04bd9c52e0342b406469d494fcb033be4bdbe5c606016defbb1681411e1"
+ "checksum redox_syscall 0.1.53 (registry+https://github.com/rust-lang/crates.io-index)" = "53848511b7ee6eb9d5c3db48481aaa5779b38fc0131bc133c98cb4f2b2411928"
+-"checksum runtimeobject-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c2222472d6d46b6a047029b80a766759879590fa1d31a531456eff0cd855b273"
+ "checksum rustc-demangle 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)" = "adacaae16d02b6ec37fdc7acfcddf365978de76d1983d3ee22afc260e1ca9619"
+ "checksum syn 0.15.30 (registry+https://github.com/rust-lang/crates.io-index)" = "66c8865bf5a7cbb662d8b011950060b3c8743dca141b054bf7195b20d314d8e2"
+ "checksum synstructure 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)" = "73687139bf99285483c96ac0add482c3776528beac1d97d444f6e91f203a2015"
+ "checksum time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)" = "db8dcfca086c1143c9270ac42a2bbd8a7ee477b78ac8e45b19abfb0cbede4b6f"
+ "checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc"
+-"checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"
+ "checksum winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)" = "f10e386af2b13e47c89e7236a7a14a086791a2b88ebad6df9bf42040195cf770"
+-"checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"
+ "checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
+ "checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+-"checksum winrt 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ce322394c4d48755ad50fc867ffb70b433a336944935c3098b4e1ca4bbb0870a"
++"checksum winrt 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0c4c01eac5a45f4fcb31db47886257ff0b0ec8958b581ff841b0d992a7e97f94"
+-- 
+2.40.0
+
diff --git a/srcpkgs/alert-after/template b/srcpkgs/alert-after/template
index 27dcd62231e3..8345dc519624 100644
--- a/srcpkgs/alert-after/template
+++ b/srcpkgs/alert-after/template
@@ -1,7 +1,7 @@
 # Template file for 'alert-after'
 pkgname=alert-after
 version=1.5.1
-revision=1
+revision=2
 build_style=cargo
 hostmakedepends="pkg-config"
 makedepends="dbus-devel"

From 516f709a0293266b46a80dd8e80ca45c34eded6f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 18:07:02 +0200
Subject: [PATCH 04/12] blindfold: generate lockfile

---
 srcpkgs/blindfold/template | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/blindfold/template b/srcpkgs/blindfold/template
index ee605e767102..8c9306e69f7c 100644
--- a/srcpkgs/blindfold/template
+++ b/srcpkgs/blindfold/template
@@ -1,7 +1,7 @@
 # Template file for 'blindfold'
 pkgname=blindfold
 version=1.0.6
-revision=2
+revision=3
 build_style=cargo
 hostmakedepends="pkg-config"
 makedepends="openssl-devel"
@@ -12,6 +12,12 @@ homepage="https://github.com/Eoin-McMahon/blindfold"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=eff539920d4efa5c0fc35067c40347ceb8b01a922f443460a28e8c5e0b3237ca
 
+post_patch() {
+	# Upstream does not ship a lockfile yet:
+	# https://github.com/Eoin-McMahon/blindfold/issues/23
+	cargo generate-lockfile
+}
+
 post_install() {
 	vlicense LICENSE
 }

From 96c591b13d643c2e2283781fe9505c0dd005cc1b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 18:15:15 +0200
Subject: [PATCH 05/12] desed: generate lockfile

---
 srcpkgs/desed/template | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/desed/template b/srcpkgs/desed/template
index 2f163115a797..e6f854bc90ee 100644
--- a/srcpkgs/desed/template
+++ b/srcpkgs/desed/template
@@ -1,7 +1,7 @@
 # Template file for 'desed'
 pkgname=desed
 version=1.2.1
-revision=1
+revision=2
 build_style=cargo
 short_desc="Demystify and debug sed scripts"
 maintainer="Andrew Benson <abenson+void@gmail.com>"
@@ -9,3 +9,9 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/SoptikHa2/desed"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=bee8c60d58f11472c036277b0318bdceb5520cce5a61965bc028b26ccbdeb706
+
+post_patch() {
+	# Upstream does not ship a lockfile yet:
+	# https://github.com/SoptikHa2/desed/issues/27
+	cargo generate-lockfile
+}

From 0b4cfe9aac8400bdffa40c967da56355a2b6f73b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 18:25:34 +0200
Subject: [PATCH 06/12] exa: patch lockfile

---
 .../patches/0001-Update-lockfile-854.patch    | 129 ++++++++++++++++++
 srcpkgs/exa/template                          |   3 +-
 2 files changed, 131 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/exa/patches/0001-Update-lockfile-854.patch

diff --git a/srcpkgs/exa/patches/0001-Update-lockfile-854.patch b/srcpkgs/exa/patches/0001-Update-lockfile-854.patch
new file mode 100644
index 000000000000..6b44fa814a49
--- /dev/null
+++ b/srcpkgs/exa/patches/0001-Update-lockfile-854.patch
@@ -0,0 +1,129 @@
+From 90b97753adb630513d68be7e66410e2b149ea446 Mon Sep 17 00:00:00 2001
+From: Haren S <harens@macports.org>
+Date: Mon, 26 Apr 2021 22:37:32 +0100
+Subject: [PATCH] Update lockfile (#854)
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Update lockfile (exa now requires Rust 1.45.2 or higher)
+
+Co-authored-by: Mélanie Chauvel <perso@hack-libre.org>
+---
+ .travis.yml |  2 +-
+ Cargo.lock  | 22 +++++++++++-----------
+ README.md   |  6 +++---
+ 3 files changed, 15 insertions(+), 15 deletions(-)
+
+diff --git a/.travis.yml b/.travis.yml
+index cc98081..1f08108 100644
+--- a/.travis.yml
++++ b/.travis.yml
+@@ -1,6 +1,6 @@
+ language: rust
+ rust:
+-  - 1.42.0
++  - 1.45.2
+   - stable
+   - beta
+   - nightly
+diff --git a/Cargo.lock b/Cargo.lock
+index df94188..6a0665d 100644
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -57,7 +57,7 @@ dependencies = [
+ 
+ [[package]]
+ name = "exa"
+-version = "0.11.0-pre"
++version = "0.10.1"
+ dependencies = [
+  "ansi_term",
+  "datetime",
+@@ -90,9 +90,9 @@ dependencies = [
+ 
+ [[package]]
+ name = "git2"
+-version = "0.13.17"
++version = "0.13.18"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "1d250f5f82326884bd39c2853577e70a121775db76818ffa452ed1e80de12986"
++checksum = "b483c6c2145421099df1b4efd50e0f6205479a072199460eff852fa15e5603c7"
+ dependencies = [
+  "bitflags",
+  "libc",
+@@ -119,9 +119,9 @@ dependencies = [
+ 
+ [[package]]
+ name = "idna"
+-version = "0.2.2"
++version = "0.2.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "89829a5d69c23d348314a7ac337fe39173b61149a9864deabd260983aed48c21"
++checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8"
+ dependencies = [
+  "matches",
+  "unicode-bidi",
+@@ -130,9 +130,9 @@ dependencies = [
+ 
+ [[package]]
+ name = "jobserver"
+-version = "0.1.21"
++version = "0.1.22"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "5c71313ebb9439f74b00d9d2dcec36440beaf57a6aa0623068441dd7cd81a7f2"
++checksum = "972f5ae5d1cb9c6ae417789196c803205313edde988685da5e3aae0827b9e7fd"
+ dependencies = [
+  "libc",
+ ]
+@@ -151,9 +151,9 @@ checksum = "9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41"
+ 
+ [[package]]
+ name = "libgit2-sys"
+-version = "0.12.18+1.1.0"
++version = "0.12.19+1.1.0"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "3da6a42da88fc37ee1ecda212ffa254c25713532980005d5f7c0b0fbe7e6e885"
++checksum = "f322155d574c8b9ebe991a04f6908bb49e68a79463338d24a43d6274cb6443e6"
+ dependencies = [
+  "cc",
+  "libc",
+@@ -357,9 +357,9 @@ dependencies = [
+ 
+ [[package]]
+ name = "vcpkg"
+-version = "0.2.11"
++version = "0.2.12"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "b00bca6106a5e23f3eee943593759b7fcddb00554332e856d990c893966879fb"
++checksum = "cbdbff6266a24120518560b5dc983096efb98462e51d0d68169895b237be3e5d"
+ 
+ [[package]]
+ name = "winapi"
+diff --git a/README.md b/README.md
+index 1939928..898394d 100644
+--- a/README.md
++++ b/README.md
+@@ -201,8 +201,8 @@ To build without Git support, run `cargo install --no-default-features exa` is a
+ <a id="development">
+ <h1>Development
+ 
+-<a href="https://blog.rust-lang.org/2020/03/12/Rust-1.42.html">
+-    <img src="https://img.shields.io/badge/rustc-1.42+-lightgray.svg" alt="Rust 1.42+" />
++<a href="https://blog.rust-lang.org/2020/08/03/Rust-1.45.2.html">
++    <img src="https://img.shields.io/badge/rustc-1.45.2+-lightgray.svg" alt="Rust 1.45.2+" />
+ </a>
+ 
+ <a href="https://github.com/ogham/exa/blob/master/LICENCE">
+@@ -211,7 +211,7 @@ To build without Git support, run `cargo install --no-default-features exa` is a
+ </h1></a>
+ 
+ exa is written in [Rust](https://www.rust-lang.org/).
+-You will need rustc version 1.42.0 or higher.
++You will need rustc version 1.45.2 or higher.
+ The recommended way to install Rust for development is from the [official download page](https://www.rust-lang.org/tools/install), using rustup.
+ 
+ Once Rust is installed, you can compile exa with Cargo:
+-- 
+2.40.0
+
diff --git a/srcpkgs/exa/template b/srcpkgs/exa/template
index 248fda1e8188..ec5649613174 100644
--- a/srcpkgs/exa/template
+++ b/srcpkgs/exa/template
@@ -1,7 +1,7 @@
 # Template file for 'exa'
 pkgname=exa
 version=0.10.1
-revision=2
+revision=3
 create_wrksrc=yes
 build_wrksrc="${pkgname}-${version}"
 build_style=cargo
@@ -15,6 +15,7 @@ distfiles="https://github.com/ogham/exa/archive/refs/tags/v${version}.tar.gz
  https://github.com/ogham/exa/releases/download/v${version}/exa-accoutrements-v${version}.zip"
 checksum="ff0fa0bfc4edef8bdbbb3cabe6fdbd5481a71abbbcc2159f402dea515353ae7c
  531596a1ef2a757c7728087529528150e6eb52bb8224fe575aa00a5f1b762849"
+patch_args="-Np1 -d ${build_wrksrc}"
 
 post_extract() {
 	mkdir "${build_wrksrc}/accoutrements"

From 4abcd69feb92081628f1e802945e461b1a65764a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 18:53:19 +0200
Subject: [PATCH 07/12] nasa-wallpaper: generate lockfile

---
 srcpkgs/nasa-wallpaper/template | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/nasa-wallpaper/template b/srcpkgs/nasa-wallpaper/template
index be30791e780a..72bcbd802b45 100644
--- a/srcpkgs/nasa-wallpaper/template
+++ b/srcpkgs/nasa-wallpaper/template
@@ -1,7 +1,7 @@
 # Template file for 'nasa-wallpaper'
 pkgname=nasa-wallpaper
 version=2.0
-revision=3
+revision=4
 build_style="cargo"
 hostmakedepends="pkg-config"
 makedepends="openssl-devel"
@@ -11,3 +11,9 @@ license="Apache-2.0"
 homepage="https://github.com/davidpob99/nasa-wallpaper/"
 distfiles="https://github.com/davidpob99/nasa-wallpaper/archive/v${version}.tar.gz"
 checksum=5bdf85cabc954069f7188f32c5579a6d47aae1781bc438bead7d7a0af335f5f8
+
+post_patch() {
+	# Upstream does not ship a lockfile yet:
+	# https://github.com/davidpob99/nasa-wallpaper/issues/12
+	cargo generate-lockfile
+}

From 483b9b816f8a0003f0a937f675745f6e39ff34be Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 19:01:24 +0200
Subject: [PATCH 08/12] pijul: generate lockfile

---
 srcpkgs/pijul/template | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/pijul/template b/srcpkgs/pijul/template
index a6a6d048b1ec..ba0d9c8def65 100644
--- a/srcpkgs/pijul/template
+++ b/srcpkgs/pijul/template
@@ -1,7 +1,7 @@
 # Template file for 'pijul'
 pkgname=pijul
 version=0.12.2
-revision=5
+revision=6
 create_wrksrc=yes
 build_style=cargo
 _sequoia_ver=0.9.0
@@ -21,6 +21,11 @@ post_extract() {
 	mv sequoia-* sequoia
 }
 
+post_patch() {
+	# Upstream does not ship a lockfile yet
+	cargo generate-lockfile
+}
+
 # We only want to install the binary, so don't run cargo install
 do_install() {
 	vbin target/${RUST_TARGET}/release/pijul

From cd4f349d15844b65b6108f2b443416f608488be3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 19:21:06 +0200
Subject: [PATCH 09/12] sss-cli: patch lockfile

---
 .../patches/0001-Update-Cargo.lock.patch      | 34 +++++++++++++++++++
 srcpkgs/sss-cli/template                      |  2 +-
 2 files changed, 35 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/sss-cli/patches/0001-Update-Cargo.lock.patch

diff --git a/srcpkgs/sss-cli/patches/0001-Update-Cargo.lock.patch b/srcpkgs/sss-cli/patches/0001-Update-Cargo.lock.patch
new file mode 100644
index 000000000000..9a9db8c77f98
--- /dev/null
+++ b/srcpkgs/sss-cli/patches/0001-Update-Cargo.lock.patch
@@ -0,0 +1,34 @@
+From 38727743d904261ac74caa3750ef801ba88092ec Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
+ <jan.christian@gruenhage.xyz>
+Date: Sat, 8 Apr 2023 19:18:31 +0200
+Subject: [PATCH] Update Cargo.lock
+
+---
+ Cargo.lock | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/Cargo.lock b/Cargo.lock
+index a57c5d8..27278d9 100644
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -1,5 +1,7 @@
+ # This file is automatically @generated by Cargo.
+ # It is not intended for manual editing.
++version = 3
++
+ [[package]]
+ name = "aho-corasick"
+ version = "0.7.15"
+@@ -253,7 +255,7 @@ dependencies = [
+ 
+ [[package]]
+ name = "shamirsecretsharing-cli"
+-version = "0.1.0"
++version = "0.1.1"
+ dependencies = [
+  "atty",
+  "clap",
+-- 
+2.40.0
+
diff --git a/srcpkgs/sss-cli/template b/srcpkgs/sss-cli/template
index 1d49663b2148..462c6b5892f1 100644
--- a/srcpkgs/sss-cli/template
+++ b/srcpkgs/sss-cli/template
@@ -1,7 +1,7 @@
 # Template file for 'sss-cli'
 pkgname=sss-cli
 version=0.1.1
-revision=1
+revision=2
 build_style=cargo
 short_desc="Shamir's secret sharing scheme CLI tool"
 maintainer="Louis Dupré Bertoni <contact@louisdb.xyz>"

From ca05ad99a14d556e10b2010df65a24e42fe0304b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 19:28:40 +0200
Subject: [PATCH 10/12] svgcleaner: generate lockfile

---
 srcpkgs/svgcleaner/template | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/svgcleaner/template b/srcpkgs/svgcleaner/template
index 8f4c9cde387a..98cd332dfec5 100644
--- a/srcpkgs/svgcleaner/template
+++ b/srcpkgs/svgcleaner/template
@@ -1,7 +1,7 @@
 # Template file for 'svgcleaner'
 pkgname=svgcleaner
 version=0.9.5
-revision=1
+revision=2
 build_style=cargo
 short_desc="Tool for reducing size of svg images without loss"
 maintainer="Alexander Mamay <alexander@mamay.su>"
@@ -9,3 +9,8 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/RazrFalcon/SVGCleaner"
 distfiles="https://github.com/RazrFalcon/SVGCleaner/archive/v${version}.tar.gz"
 checksum=dcf8dbc8939699e2e82141cb86688b6cd09da8cae5e18232ef14085c2366290c
+
+post_patch() {
+	# Upstream does not ship a lockfile yet:
+	cargo generate-lockfile
+}

From b025db92452bcdc5e3578030d4710805604a3092 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 19:54:10 +0200
Subject: [PATCH 11/12] tmplgen: switch to git tag based tarball

---
 srcpkgs/tmplgen/template | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/tmplgen/template b/srcpkgs/tmplgen/template
index f352a5f3fd60..f51cced3b077 100644
--- a/srcpkgs/tmplgen/template
+++ b/srcpkgs/tmplgen/template
@@ -1,7 +1,7 @@
 # Template file for 'tmplgen'
 pkgname=tmplgen
 version=1.3.1
-revision=4
+revision=5
 build_style=cargo
 hostmakedepends="pkg-config"
 makedepends="openssl-devel"
@@ -9,8 +9,10 @@ short_desc="Void Linux template generator for language-specific package managers
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="https://github.com/Cogitri/tmplgen"
-distfiles="https://static.crates.io/crates/tmplgen/tmplgen-${version}.crate"
-checksum=5e5dc4b3e50f4f2dc87f510bb3d1547a86ecd5a52c0f33305a0a7a3dca40bee9
+distfiles="https://github.com/Cogitri/tmplgen/archive/refs/tags/v${version}.tar.gz"
+checksum=8c8aa5b65045614529626978852416a965d57c77dd5953be58bc84f8d8b27f9b
+# cba for now, tests weren't shipped in the previous tarballs
+make_check=no
 
 post_install() {
 	vman man/tmplgen.1

From 510e2b8f6df7ccb55d3db402e11d1aa041234c3b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 20:11:12 +0200
Subject: [PATCH 12/12] ugdb: replace Cargo.toml patch with cargo-update, fix
 oniguruma linking

---
 srcpkgs/ugdb/patches/i128.patch | 14 --------------
 srcpkgs/ugdb/template           |  9 ++++++++-
 2 files changed, 8 insertions(+), 15 deletions(-)
 delete mode 100644 srcpkgs/ugdb/patches/i128.patch

diff --git a/srcpkgs/ugdb/patches/i128.patch b/srcpkgs/ugdb/patches/i128.patch
deleted file mode 100644
index 4496ca498d2c..000000000000
--- a/srcpkgs/ugdb/patches/i128.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-Bump some versions to get num-traits support for i128.
-
---- a/Cargo.toml
-+++ b/Cargo.toml:wq
-@@ -28,7 +28,8 @@
- rand = "0.3"
- unix_socket = "0.5"
- unicode-segmentation = "1.2"
--parse_int = "0.5"
-+parse_int = "0.6"
-+ndarray = "0.15.4"
- 
- unsegen = "0.3"
- unsegen_signals = "0.3"
diff --git a/srcpkgs/ugdb/template b/srcpkgs/ugdb/template
index a5a1ba695183..d1a9de0ece42 100644
--- a/srcpkgs/ugdb/template
+++ b/srcpkgs/ugdb/template
@@ -1,8 +1,10 @@
 # Template file for 'ugdb'
 pkgname=ugdb
 version=0.1.11
-revision=2
+revision=3
 build_style=cargo
+hostmakedepends="pkg-config"
+makedepends="oniguruma-devel"
 checkdepends="gdb"
 short_desc="Alternative TUI for gdb"
 maintainer="Érico Nogueira <ericonr@disroot.org>"
@@ -11,6 +13,11 @@ homepage="https://github.com/ftilde/ugdb"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=d092356534774505b6b081b82db71d1fab1fbccdb814a44d4c435bafe5efd312
 
+post_patch() {
+	vsed -i Cargo.toml -e 's/parse_int = "0.5"/parse_int = "0.6"/'
+	cargo update --package parse_int:0.5.0 --precise 0.6.0
+}
+
 post_install() {
 	vlicense LICENSE
 }

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

* Re: RFC: common/build-style/cargo.sh: use --locked for build and check as well
  2023-04-03  6:50 [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well jcgruenhage
                   ` (11 preceding siblings ...)
  2023-04-08 18:31 ` jcgruenhage
@ 2023-04-13  5:01 ` classabbyamp
  2023-04-13  5:59 ` jcgruenhage
                   ` (8 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: classabbyamp @ 2023-04-13  5:01 UTC (permalink / raw)
  To: ml

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

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/43233#issuecomment-1506348649

Comment:
i'm interested in merging this if CI is fixed

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

* Re: RFC: common/build-style/cargo.sh: use --locked for build and check as well
  2023-04-03  6:50 [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well jcgruenhage
                   ` (12 preceding siblings ...)
  2023-04-13  5:01 ` classabbyamp
@ 2023-04-13  5:59 ` jcgruenhage
  2023-04-13 13:24 ` classabbyamp
                   ` (7 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: jcgruenhage @ 2023-04-13  5:59 UTC (permalink / raw)
  To: ml

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

New comment by jcgruenhage on void-packages repository

https://github.com/void-linux/void-packages/pull/43233#issuecomment-1506390830

Comment:
As I mentioned on IRC: I don't really get why/how ugdb is broken now vs how it was before, so I'm inneed of some assistance here. @leahneukirchen , you fixed that the last time, right?

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

* Re: RFC: common/build-style/cargo.sh: use --locked for build and check as well
  2023-04-03  6:50 [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well jcgruenhage
                   ` (13 preceding siblings ...)
  2023-04-13  5:59 ` jcgruenhage
@ 2023-04-13 13:24 ` classabbyamp
  2023-04-13 14:21 ` [PR PATCH] [Updated] " jcgruenhage
                   ` (6 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: classabbyamp @ 2023-04-13 13:24 UTC (permalink / raw)
  To: ml

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

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/43233#issuecomment-1506960858

Comment:
> I don't really get why/how ugdb is broken now vs how it was before

the patch adds `ndarray = "0.15.4"`, so I think just restoring that patch is the way to do it

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

* Re: [PR PATCH] [Updated] RFC: common/build-style/cargo.sh: use --locked for build and check as well
  2023-04-03  6:50 [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well jcgruenhage
                   ` (14 preceding siblings ...)
  2023-04-13 13:24 ` classabbyamp
@ 2023-04-13 14:21 ` jcgruenhage
  2023-04-13 14:22 ` jcgruenhage
                   ` (5 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: jcgruenhage @ 2023-04-13 14:21 UTC (permalink / raw)
  To: ml

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

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

https://github.com/jcgruenhage/void-packages locked-cargo
https://github.com/void-linux/void-packages/pull/43233

RFC: common/build-style/cargo.sh: use --locked for build and check as well
#### 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/43233.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-locked-cargo-43233.patch --]
[-- Type: text/x-diff, Size: 33592 bytes --]

From c108b6803e997443c5df6973e97cd6ed89c43047 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sun, 2 Apr 2023 16:25:24 +0200
Subject: [PATCH 01/12] common/build-style/cargo.sh: use --locked for build and
 check as well

---
 common/build-style/cargo.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/build-style/cargo.sh b/common/build-style/cargo.sh
index 387e711060bc..751911d8dbee 100644
--- a/common/build-style/cargo.sh
+++ b/common/build-style/cargo.sh
@@ -5,14 +5,14 @@
 do_build() {
 	: ${make_cmd:=cargo auditable}
 
-	${make_cmd} build --release --target ${RUST_TARGET} ${configure_args}
+	${make_cmd} build --release --locked --target ${RUST_TARGET} ${configure_args}
 }
 
 do_check() {
 	: ${make_cmd:=cargo auditable}
 
-	${make_check_pre} ${make_cmd} test --release --target ${RUST_TARGET} ${configure_args} \
-		${make_check_args}
+	${make_check_pre} ${make_cmd} test --release --locked --target ${RUST_TARGET} \
+		${configure_args} ${make_check_args}
 }
 
 do_install() {

From 55b00afb511f503daa6efe4ff36c58339c0e695e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Mon, 3 Apr 2023 08:49:10 +0200
Subject: [PATCH 02/12] cargo-update: generate lockfile

---
 srcpkgs/cargo-update/template | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/cargo-update/template b/srcpkgs/cargo-update/template
index f892886fca3f..f31800e0abe0 100644
--- a/srcpkgs/cargo-update/template
+++ b/srcpkgs/cargo-update/template
@@ -1,7 +1,7 @@
 # Template file for 'cargo-update'
 pkgname=cargo-update
 version=13.0.0
-revision=1
+revision=2
 build_style=cargo
 hostmakedepends="pkg-config go-md2man"
 makedepends="libcurl-devel libgit2-devel libssh2-devel openssl-devel"
@@ -18,6 +18,13 @@ if [ "$XBPS_TARGET_MACHINE" == "i686" ]; then
 	make_check_args="-- --skip ops::assert_index_path"
 fi
 
+post_patch() {
+	# Upstream does not ship a lockfile and is very vocal about that being
+	# the right way:
+	# https://github.com/nabijaczleweli/cargo-update/issues/50
+	cargo generate-lockfile
+}
+
 post_install() {
 	vlicense LICENSE
 	vdoc README.md

From 6dd84c8b9a2c54dd8601cfbb310e2ffbc92493ed Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 17:52:44 +0200
Subject: [PATCH 03/12] alert-after: patch lockfile

---
 .../patches/0001-Update-Cargo.lock.patch      | 155 ++++++++++++++++++
 srcpkgs/alert-after/template                  |   2 +-
 2 files changed, 156 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/alert-after/patches/0001-Update-Cargo.lock.patch

diff --git a/srcpkgs/alert-after/patches/0001-Update-Cargo.lock.patch b/srcpkgs/alert-after/patches/0001-Update-Cargo.lock.patch
new file mode 100644
index 000000000000..c0d727f8c2c5
--- /dev/null
+++ b/srcpkgs/alert-after/patches/0001-Update-Cargo.lock.patch
@@ -0,0 +1,155 @@
+From f4141915692ee8cc437209aaa6f507fc372792ed Mon Sep 17 00:00:00 2001
+From: Corey Farwell <coreyf@rwell.org>
+Date: Wed, 10 Apr 2019 06:36:39 -0400
+Subject: [PATCH] Update Cargo.lock
+
+---
+ Cargo.lock | 61 +++++++-----------------------------------------------
+ 1 file changed, 8 insertions(+), 53 deletions(-)
+
+diff --git a/Cargo.lock b/Cargo.lock
+index de84926..038c9ca 100644
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -2,9 +2,9 @@
+ # It is not intended for manual editing.
+ [[package]]
+ name = "alert-after"
+-version = "1.5.0"
++version = "1.5.1"
+ dependencies = [
+- "notifica 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
++ "notifica 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+ [[package]]
+@@ -154,12 +154,12 @@ dependencies = [
+ 
+ [[package]]
+ name = "notifica"
+-version = "1.0.0"
++version = "1.0.2"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ dependencies = [
+  "mac-notification-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
+  "notify-rust 3.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winrt 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
++ "winrt 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+ [[package]]
+@@ -211,24 +211,6 @@ dependencies = [
+  "objc 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+-[[package]]
+-name = "ole32-sys"
+-version = "0.2.0"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-dependencies = [
+- "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
+-]
+-
+-[[package]]
+-name = "oleaut32-sys"
+-version = "0.2.0"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-dependencies = [
+- "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
+-]
+-
+ [[package]]
+ name = "pkg-config"
+ version = "0.3.14"
+@@ -255,15 +237,6 @@ name = "redox_syscall"
+ version = "0.1.53"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ 
+-[[package]]
+-name = "runtimeobject-sys"
+-version = "0.2.0"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-dependencies = [
+- "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
+-]
+-
+ [[package]]
+ name = "rustc-demangle"
+ version = "0.1.13"
+@@ -305,11 +278,6 @@ name = "unicode-xid"
+ version = "0.1.0"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ 
+-[[package]]
+-name = "winapi"
+-version = "0.2.8"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-
+ [[package]]
+ name = "winapi"
+ version = "0.3.7"
+@@ -319,11 +287,6 @@ dependencies = [
+  "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+-[[package]]
+-name = "winapi-build"
+-version = "0.1.1"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-
+ [[package]]
+ name = "winapi-i686-pc-windows-gnu"
+ version = "0.4.0"
+@@ -336,13 +299,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
+ 
+ [[package]]
+ name = "winrt"
+-version = "0.3.0"
++version = "0.5.1"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ dependencies = [
+- "ole32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
+- "oleaut32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
+- "runtimeobject-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
++ "winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+ [metadata]
+@@ -364,28 +324,23 @@ dependencies = [
+ "checksum mac-notification-sys 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "6a3639b6caa2db7443e5df80e12c450982f77fc3c140f53d6e48be91f965ea66"
+ "checksum mac-notification-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a7f588a226cfab0536c23ef64ce521d2a0469315731460c6f924b39d162bc162"
+ "checksum malloc_buf 0.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb"
+-"checksum notifica 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2dc6d2270aa8b606c081c25f2d06b870e3c9226b0e7b98e63b990bdb390cb488"
++"checksum notifica 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e4bf0be3d0aa13ec1467834b3b4d0a3fdee1215c7483b9b54b31fd4dad356814"
+ "checksum notify-rust 3.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "46d847abfe6489a4f7817ec893efeb27f8250755b2272bfa933bcf69af4bda42"
+ "checksum num-integer 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)" = "e83d528d2677f0518c570baf2b7abdcf0cd2d248860b68507bdcb3e91d4c0cea"
+ "checksum num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0b3a5d7cc97d6d30d8b9bc8fa19bf45349ffe46241e8816f50f62f6d6aaabee1"
+ "checksum objc 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "31d20fd2b37e07cf5125be68357b588672e8cefe9a96f8c17a9d46053b3e590d"
+ "checksum objc-foundation 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "1add1b659e36c9607c7aab864a76c7a4c2760cd0cd2e120f3fb8b952c7e22bf9"
+ "checksum objc_id 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c92d4ddb4bd7b50d730c215ff871754d0da6b2178849f8a2a2ab69712d0c073b"
+-"checksum ole32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5d2c49021782e5233cd243168edfa8037574afed4eba4bbaf538b3d8d1789d8c"
+-"checksum oleaut32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1fde17b30b27384afd9a5b02c5429cc356b82263f4bd15e5661c5df9e9df612f"
+ "checksum pkg-config 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)" = "676e8eb2b1b4c9043511a9b7bea0915320d7e502b0a079fb03f9635a5252b18c"
+ "checksum proc-macro2 0.4.27 (registry+https://github.com/rust-lang/crates.io-index)" = "4d317f9caece796be1980837fd5cb3dfec5613ebdb04ad0956deea83ce168915"
+ "checksum quote 0.6.11 (registry+https://github.com/rust-lang/crates.io-index)" = "cdd8e04bd9c52e0342b406469d494fcb033be4bdbe5c606016defbb1681411e1"
+ "checksum redox_syscall 0.1.53 (registry+https://github.com/rust-lang/crates.io-index)" = "53848511b7ee6eb9d5c3db48481aaa5779b38fc0131bc133c98cb4f2b2411928"
+-"checksum runtimeobject-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c2222472d6d46b6a047029b80a766759879590fa1d31a531456eff0cd855b273"
+ "checksum rustc-demangle 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)" = "adacaae16d02b6ec37fdc7acfcddf365978de76d1983d3ee22afc260e1ca9619"
+ "checksum syn 0.15.30 (registry+https://github.com/rust-lang/crates.io-index)" = "66c8865bf5a7cbb662d8b011950060b3c8743dca141b054bf7195b20d314d8e2"
+ "checksum synstructure 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)" = "73687139bf99285483c96ac0add482c3776528beac1d97d444f6e91f203a2015"
+ "checksum time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)" = "db8dcfca086c1143c9270ac42a2bbd8a7ee477b78ac8e45b19abfb0cbede4b6f"
+ "checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc"
+-"checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"
+ "checksum winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)" = "f10e386af2b13e47c89e7236a7a14a086791a2b88ebad6df9bf42040195cf770"
+-"checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"
+ "checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
+ "checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+-"checksum winrt 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ce322394c4d48755ad50fc867ffb70b433a336944935c3098b4e1ca4bbb0870a"
++"checksum winrt 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0c4c01eac5a45f4fcb31db47886257ff0b0ec8958b581ff841b0d992a7e97f94"
+-- 
+2.40.0
+
diff --git a/srcpkgs/alert-after/template b/srcpkgs/alert-after/template
index 27dcd62231e3..8345dc519624 100644
--- a/srcpkgs/alert-after/template
+++ b/srcpkgs/alert-after/template
@@ -1,7 +1,7 @@
 # Template file for 'alert-after'
 pkgname=alert-after
 version=1.5.1
-revision=1
+revision=2
 build_style=cargo
 hostmakedepends="pkg-config"
 makedepends="dbus-devel"

From 516f709a0293266b46a80dd8e80ca45c34eded6f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 18:07:02 +0200
Subject: [PATCH 04/12] blindfold: generate lockfile

---
 srcpkgs/blindfold/template | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/blindfold/template b/srcpkgs/blindfold/template
index ee605e767102..8c9306e69f7c 100644
--- a/srcpkgs/blindfold/template
+++ b/srcpkgs/blindfold/template
@@ -1,7 +1,7 @@
 # Template file for 'blindfold'
 pkgname=blindfold
 version=1.0.6
-revision=2
+revision=3
 build_style=cargo
 hostmakedepends="pkg-config"
 makedepends="openssl-devel"
@@ -12,6 +12,12 @@ homepage="https://github.com/Eoin-McMahon/blindfold"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=eff539920d4efa5c0fc35067c40347ceb8b01a922f443460a28e8c5e0b3237ca
 
+post_patch() {
+	# Upstream does not ship a lockfile yet:
+	# https://github.com/Eoin-McMahon/blindfold/issues/23
+	cargo generate-lockfile
+}
+
 post_install() {
 	vlicense LICENSE
 }

From 96c591b13d643c2e2283781fe9505c0dd005cc1b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 18:15:15 +0200
Subject: [PATCH 05/12] desed: generate lockfile

---
 srcpkgs/desed/template | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/desed/template b/srcpkgs/desed/template
index 2f163115a797..e6f854bc90ee 100644
--- a/srcpkgs/desed/template
+++ b/srcpkgs/desed/template
@@ -1,7 +1,7 @@
 # Template file for 'desed'
 pkgname=desed
 version=1.2.1
-revision=1
+revision=2
 build_style=cargo
 short_desc="Demystify and debug sed scripts"
 maintainer="Andrew Benson <abenson+void@gmail.com>"
@@ -9,3 +9,9 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/SoptikHa2/desed"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=bee8c60d58f11472c036277b0318bdceb5520cce5a61965bc028b26ccbdeb706
+
+post_patch() {
+	# Upstream does not ship a lockfile yet:
+	# https://github.com/SoptikHa2/desed/issues/27
+	cargo generate-lockfile
+}

From 0b4cfe9aac8400bdffa40c967da56355a2b6f73b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 18:25:34 +0200
Subject: [PATCH 06/12] exa: patch lockfile

---
 .../patches/0001-Update-lockfile-854.patch    | 129 ++++++++++++++++++
 srcpkgs/exa/template                          |   3 +-
 2 files changed, 131 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/exa/patches/0001-Update-lockfile-854.patch

diff --git a/srcpkgs/exa/patches/0001-Update-lockfile-854.patch b/srcpkgs/exa/patches/0001-Update-lockfile-854.patch
new file mode 100644
index 000000000000..6b44fa814a49
--- /dev/null
+++ b/srcpkgs/exa/patches/0001-Update-lockfile-854.patch
@@ -0,0 +1,129 @@
+From 90b97753adb630513d68be7e66410e2b149ea446 Mon Sep 17 00:00:00 2001
+From: Haren S <harens@macports.org>
+Date: Mon, 26 Apr 2021 22:37:32 +0100
+Subject: [PATCH] Update lockfile (#854)
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Update lockfile (exa now requires Rust 1.45.2 or higher)
+
+Co-authored-by: Mélanie Chauvel <perso@hack-libre.org>
+---
+ .travis.yml |  2 +-
+ Cargo.lock  | 22 +++++++++++-----------
+ README.md   |  6 +++---
+ 3 files changed, 15 insertions(+), 15 deletions(-)
+
+diff --git a/.travis.yml b/.travis.yml
+index cc98081..1f08108 100644
+--- a/.travis.yml
++++ b/.travis.yml
+@@ -1,6 +1,6 @@
+ language: rust
+ rust:
+-  - 1.42.0
++  - 1.45.2
+   - stable
+   - beta
+   - nightly
+diff --git a/Cargo.lock b/Cargo.lock
+index df94188..6a0665d 100644
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -57,7 +57,7 @@ dependencies = [
+ 
+ [[package]]
+ name = "exa"
+-version = "0.11.0-pre"
++version = "0.10.1"
+ dependencies = [
+  "ansi_term",
+  "datetime",
+@@ -90,9 +90,9 @@ dependencies = [
+ 
+ [[package]]
+ name = "git2"
+-version = "0.13.17"
++version = "0.13.18"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "1d250f5f82326884bd39c2853577e70a121775db76818ffa452ed1e80de12986"
++checksum = "b483c6c2145421099df1b4efd50e0f6205479a072199460eff852fa15e5603c7"
+ dependencies = [
+  "bitflags",
+  "libc",
+@@ -119,9 +119,9 @@ dependencies = [
+ 
+ [[package]]
+ name = "idna"
+-version = "0.2.2"
++version = "0.2.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "89829a5d69c23d348314a7ac337fe39173b61149a9864deabd260983aed48c21"
++checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8"
+ dependencies = [
+  "matches",
+  "unicode-bidi",
+@@ -130,9 +130,9 @@ dependencies = [
+ 
+ [[package]]
+ name = "jobserver"
+-version = "0.1.21"
++version = "0.1.22"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "5c71313ebb9439f74b00d9d2dcec36440beaf57a6aa0623068441dd7cd81a7f2"
++checksum = "972f5ae5d1cb9c6ae417789196c803205313edde988685da5e3aae0827b9e7fd"
+ dependencies = [
+  "libc",
+ ]
+@@ -151,9 +151,9 @@ checksum = "9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41"
+ 
+ [[package]]
+ name = "libgit2-sys"
+-version = "0.12.18+1.1.0"
++version = "0.12.19+1.1.0"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "3da6a42da88fc37ee1ecda212ffa254c25713532980005d5f7c0b0fbe7e6e885"
++checksum = "f322155d574c8b9ebe991a04f6908bb49e68a79463338d24a43d6274cb6443e6"
+ dependencies = [
+  "cc",
+  "libc",
+@@ -357,9 +357,9 @@ dependencies = [
+ 
+ [[package]]
+ name = "vcpkg"
+-version = "0.2.11"
++version = "0.2.12"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "b00bca6106a5e23f3eee943593759b7fcddb00554332e856d990c893966879fb"
++checksum = "cbdbff6266a24120518560b5dc983096efb98462e51d0d68169895b237be3e5d"
+ 
+ [[package]]
+ name = "winapi"
+diff --git a/README.md b/README.md
+index 1939928..898394d 100644
+--- a/README.md
++++ b/README.md
+@@ -201,8 +201,8 @@ To build without Git support, run `cargo install --no-default-features exa` is a
+ <a id="development">
+ <h1>Development
+ 
+-<a href="https://blog.rust-lang.org/2020/03/12/Rust-1.42.html">
+-    <img src="https://img.shields.io/badge/rustc-1.42+-lightgray.svg" alt="Rust 1.42+" />
++<a href="https://blog.rust-lang.org/2020/08/03/Rust-1.45.2.html">
++    <img src="https://img.shields.io/badge/rustc-1.45.2+-lightgray.svg" alt="Rust 1.45.2+" />
+ </a>
+ 
+ <a href="https://github.com/ogham/exa/blob/master/LICENCE">
+@@ -211,7 +211,7 @@ To build without Git support, run `cargo install --no-default-features exa` is a
+ </h1></a>
+ 
+ exa is written in [Rust](https://www.rust-lang.org/).
+-You will need rustc version 1.42.0 or higher.
++You will need rustc version 1.45.2 or higher.
+ The recommended way to install Rust for development is from the [official download page](https://www.rust-lang.org/tools/install), using rustup.
+ 
+ Once Rust is installed, you can compile exa with Cargo:
+-- 
+2.40.0
+
diff --git a/srcpkgs/exa/template b/srcpkgs/exa/template
index 248fda1e8188..ec5649613174 100644
--- a/srcpkgs/exa/template
+++ b/srcpkgs/exa/template
@@ -1,7 +1,7 @@
 # Template file for 'exa'
 pkgname=exa
 version=0.10.1
-revision=2
+revision=3
 create_wrksrc=yes
 build_wrksrc="${pkgname}-${version}"
 build_style=cargo
@@ -15,6 +15,7 @@ distfiles="https://github.com/ogham/exa/archive/refs/tags/v${version}.tar.gz
  https://github.com/ogham/exa/releases/download/v${version}/exa-accoutrements-v${version}.zip"
 checksum="ff0fa0bfc4edef8bdbbb3cabe6fdbd5481a71abbbcc2159f402dea515353ae7c
  531596a1ef2a757c7728087529528150e6eb52bb8224fe575aa00a5f1b762849"
+patch_args="-Np1 -d ${build_wrksrc}"
 
 post_extract() {
 	mkdir "${build_wrksrc}/accoutrements"

From 4abcd69feb92081628f1e802945e461b1a65764a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 18:53:19 +0200
Subject: [PATCH 07/12] nasa-wallpaper: generate lockfile

---
 srcpkgs/nasa-wallpaper/template | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/nasa-wallpaper/template b/srcpkgs/nasa-wallpaper/template
index be30791e780a..72bcbd802b45 100644
--- a/srcpkgs/nasa-wallpaper/template
+++ b/srcpkgs/nasa-wallpaper/template
@@ -1,7 +1,7 @@
 # Template file for 'nasa-wallpaper'
 pkgname=nasa-wallpaper
 version=2.0
-revision=3
+revision=4
 build_style="cargo"
 hostmakedepends="pkg-config"
 makedepends="openssl-devel"
@@ -11,3 +11,9 @@ license="Apache-2.0"
 homepage="https://github.com/davidpob99/nasa-wallpaper/"
 distfiles="https://github.com/davidpob99/nasa-wallpaper/archive/v${version}.tar.gz"
 checksum=5bdf85cabc954069f7188f32c5579a6d47aae1781bc438bead7d7a0af335f5f8
+
+post_patch() {
+	# Upstream does not ship a lockfile yet:
+	# https://github.com/davidpob99/nasa-wallpaper/issues/12
+	cargo generate-lockfile
+}

From 483b9b816f8a0003f0a937f675745f6e39ff34be Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 19:01:24 +0200
Subject: [PATCH 08/12] pijul: generate lockfile

---
 srcpkgs/pijul/template | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/pijul/template b/srcpkgs/pijul/template
index a6a6d048b1ec..ba0d9c8def65 100644
--- a/srcpkgs/pijul/template
+++ b/srcpkgs/pijul/template
@@ -1,7 +1,7 @@
 # Template file for 'pijul'
 pkgname=pijul
 version=0.12.2
-revision=5
+revision=6
 create_wrksrc=yes
 build_style=cargo
 _sequoia_ver=0.9.0
@@ -21,6 +21,11 @@ post_extract() {
 	mv sequoia-* sequoia
 }
 
+post_patch() {
+	# Upstream does not ship a lockfile yet
+	cargo generate-lockfile
+}
+
 # We only want to install the binary, so don't run cargo install
 do_install() {
 	vbin target/${RUST_TARGET}/release/pijul

From cd4f349d15844b65b6108f2b443416f608488be3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 19:21:06 +0200
Subject: [PATCH 09/12] sss-cli: patch lockfile

---
 .../patches/0001-Update-Cargo.lock.patch      | 34 +++++++++++++++++++
 srcpkgs/sss-cli/template                      |  2 +-
 2 files changed, 35 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/sss-cli/patches/0001-Update-Cargo.lock.patch

diff --git a/srcpkgs/sss-cli/patches/0001-Update-Cargo.lock.patch b/srcpkgs/sss-cli/patches/0001-Update-Cargo.lock.patch
new file mode 100644
index 000000000000..9a9db8c77f98
--- /dev/null
+++ b/srcpkgs/sss-cli/patches/0001-Update-Cargo.lock.patch
@@ -0,0 +1,34 @@
+From 38727743d904261ac74caa3750ef801ba88092ec Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
+ <jan.christian@gruenhage.xyz>
+Date: Sat, 8 Apr 2023 19:18:31 +0200
+Subject: [PATCH] Update Cargo.lock
+
+---
+ Cargo.lock | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/Cargo.lock b/Cargo.lock
+index a57c5d8..27278d9 100644
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -1,5 +1,7 @@
+ # This file is automatically @generated by Cargo.
+ # It is not intended for manual editing.
++version = 3
++
+ [[package]]
+ name = "aho-corasick"
+ version = "0.7.15"
+@@ -253,7 +255,7 @@ dependencies = [
+ 
+ [[package]]
+ name = "shamirsecretsharing-cli"
+-version = "0.1.0"
++version = "0.1.1"
+ dependencies = [
+  "atty",
+  "clap",
+-- 
+2.40.0
+
diff --git a/srcpkgs/sss-cli/template b/srcpkgs/sss-cli/template
index 1d49663b2148..462c6b5892f1 100644
--- a/srcpkgs/sss-cli/template
+++ b/srcpkgs/sss-cli/template
@@ -1,7 +1,7 @@
 # Template file for 'sss-cli'
 pkgname=sss-cli
 version=0.1.1
-revision=1
+revision=2
 build_style=cargo
 short_desc="Shamir's secret sharing scheme CLI tool"
 maintainer="Louis Dupré Bertoni <contact@louisdb.xyz>"

From ca05ad99a14d556e10b2010df65a24e42fe0304b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 19:28:40 +0200
Subject: [PATCH 10/12] svgcleaner: generate lockfile

---
 srcpkgs/svgcleaner/template | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/svgcleaner/template b/srcpkgs/svgcleaner/template
index 8f4c9cde387a..98cd332dfec5 100644
--- a/srcpkgs/svgcleaner/template
+++ b/srcpkgs/svgcleaner/template
@@ -1,7 +1,7 @@
 # Template file for 'svgcleaner'
 pkgname=svgcleaner
 version=0.9.5
-revision=1
+revision=2
 build_style=cargo
 short_desc="Tool for reducing size of svg images without loss"
 maintainer="Alexander Mamay <alexander@mamay.su>"
@@ -9,3 +9,8 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/RazrFalcon/SVGCleaner"
 distfiles="https://github.com/RazrFalcon/SVGCleaner/archive/v${version}.tar.gz"
 checksum=dcf8dbc8939699e2e82141cb86688b6cd09da8cae5e18232ef14085c2366290c
+
+post_patch() {
+	# Upstream does not ship a lockfile yet:
+	cargo generate-lockfile
+}

From b025db92452bcdc5e3578030d4710805604a3092 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 19:54:10 +0200
Subject: [PATCH 11/12] tmplgen: switch to git tag based tarball

---
 srcpkgs/tmplgen/template | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/tmplgen/template b/srcpkgs/tmplgen/template
index f352a5f3fd60..f51cced3b077 100644
--- a/srcpkgs/tmplgen/template
+++ b/srcpkgs/tmplgen/template
@@ -1,7 +1,7 @@
 # Template file for 'tmplgen'
 pkgname=tmplgen
 version=1.3.1
-revision=4
+revision=5
 build_style=cargo
 hostmakedepends="pkg-config"
 makedepends="openssl-devel"
@@ -9,8 +9,10 @@ short_desc="Void Linux template generator for language-specific package managers
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="https://github.com/Cogitri/tmplgen"
-distfiles="https://static.crates.io/crates/tmplgen/tmplgen-${version}.crate"
-checksum=5e5dc4b3e50f4f2dc87f510bb3d1547a86ecd5a52c0f33305a0a7a3dca40bee9
+distfiles="https://github.com/Cogitri/tmplgen/archive/refs/tags/v${version}.tar.gz"
+checksum=8c8aa5b65045614529626978852416a965d57c77dd5953be58bc84f8d8b27f9b
+# cba for now, tests weren't shipped in the previous tarballs
+make_check=no
 
 post_install() {
 	vman man/tmplgen.1

From dee52465a3751190a79f686d95acf1319c5476a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 20:11:12 +0200
Subject: [PATCH 12/12] ugdb: include Cargo.lock in patches, fix oniguruma
 linking

---
 .../patches/0001-unbreak-i128-support.patch   | 134 ++++++++++++++++++
 ...on-platforms-without-64-bit-atomics.patch} |  20 ++-
 srcpkgs/ugdb/patches/i128.patch               |  14 --
 srcpkgs/ugdb/template                         |   4 +-
 4 files changed, 150 insertions(+), 22 deletions(-)
 create mode 100644 srcpkgs/ugdb/patches/0001-unbreak-i128-support.patch
 rename srcpkgs/ugdb/patches/{atomicu64.patch => 0002-fix-build-on-platforms-without-64-bit-atomics.patch} (59%)
 delete mode 100644 srcpkgs/ugdb/patches/i128.patch

diff --git a/srcpkgs/ugdb/patches/0001-unbreak-i128-support.patch b/srcpkgs/ugdb/patches/0001-unbreak-i128-support.patch
new file mode 100644
index 000000000000..ff7bea94afda
--- /dev/null
+++ b/srcpkgs/ugdb/patches/0001-unbreak-i128-support.patch
@@ -0,0 +1,134 @@
+From e693b01292a74cd0071ec69a3a650ea05f9ba246 Mon Sep 17 00:00:00 2001
+From: Leah Neukirchen <leah@vuxu.org>
+Date: Mon, 7 Feb 2022 18:52:43 +0100
+Subject: [PATCH 1/2] unbreak i128 support
+
+---
+ Cargo.lock | 50 ++++++++++++++++++++++++++++++++++++++++++++------
+ Cargo.toml |  3 ++-
+ 2 files changed, 46 insertions(+), 7 deletions(-)
+
+diff --git a/Cargo.lock b/Cargo.lock
+index 73e90fb..b2440d6 100644
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -291,7 +291,16 @@ version = "0.1.15"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ checksum = "dcad67dcec2d58ff56f6292582377e6921afdf3bfbd533e26fb8900ae575e002"
+ dependencies = [
+- "rawpointer",
++ "rawpointer 0.1.0",
++]
++
++[[package]]
++name = "matrixmultiply"
++version = "0.3.2"
++source = "registry+https://github.com/rust-lang/crates.io-index"
++checksum = "add85d4dd35074e6fedc608f8c8f513a3548619a9024b751949ef0e8e45a4d84"
++dependencies = [
++ "rawpointer 0.2.1",
+ ]
+ 
+ [[package]]
+@@ -317,11 +326,24 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
+ checksum = "91f269f8430fc8d08c01ac526d735ee6ac2f9e63acdf6bdad5ad319f7118575d"
+ dependencies = [
+  "itertools",
+- "matrixmultiply",
+- "num-complex",
++ "matrixmultiply 0.1.15",
++ "num-complex 0.1.43",
+  "num-traits 0.1.43",
+ ]
+ 
++[[package]]
++name = "ndarray"
++version = "0.15.6"
++source = "registry+https://github.com/rust-lang/crates.io-index"
++checksum = "adb12d4e967ec485a5f71c6311fe28158e9d6f4bc4a447b474184d0f91a8fa32"
++dependencies = [
++ "matrixmultiply 0.3.2",
++ "num-complex 0.4.3",
++ "num-integer",
++ "num-traits 0.2.14",
++ "rawpointer 0.2.1",
++]
++
+ [[package]]
+ name = "nix"
+ version = "0.17.0"
+@@ -350,6 +372,15 @@ dependencies = [
+  "num-traits 0.2.14",
+ ]
+ 
++[[package]]
++name = "num-complex"
++version = "0.4.3"
++source = "registry+https://github.com/rust-lang/crates.io-index"
++checksum = "02e0d21255c828d6f128a1e41534206671e8c3ea0c62f32291e808dc82cff17d"
++dependencies = [
++ "num-traits 0.2.14",
++]
++
+ [[package]]
+ name = "num-integer"
+ version = "0.1.44"
+@@ -418,9 +449,9 @@ dependencies = [
+ 
+ [[package]]
+ name = "parse_int"
+-version = "0.5.0"
++version = "0.6.0"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "15f96500577cfa0a3bad8a88a3c4daa66684828af2e7d349012fa7fc3c725f0c"
++checksum = "2d695b79916a2c08bcff7be7647ab60d1402885265005a6658ffe6d763553c5a"
+ dependencies = [
+  "num-traits 0.2.14",
+ ]
+@@ -534,6 +565,12 @@ version = "0.1.0"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ checksum = "ebac11a9d2e11f2af219b8b8d833b76b1ea0e054aa0e8d8e9e4cbde353bdf019"
+ 
++[[package]]
++name = "rawpointer"
++version = "0.2.1"
++source = "registry+https://github.com/rust-lang/crates.io-index"
++checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
++
+ [[package]]
+ name = "rdrand"
+ version = "0.4.0"
+@@ -790,6 +827,7 @@ dependencies = [
+  "flexi_logger",
+  "json",
+  "log",
++ "ndarray 0.15.6",
+  "nix",
+  "nom",
+  "parse_int",
+@@ -847,7 +885,7 @@ version = "0.3.0"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ checksum = "cc1594eb06a72bf2d8fe479e822e252eae1dae53e05c3a7197b29a5bb61ad17f"
+ dependencies = [
+- "ndarray",
++ "ndarray 0.8.4",
+  "nix",
+  "raw_tty",
+  "smallvec",
+diff --git a/Cargo.toml b/Cargo.toml
+index 235a30b..4b46905 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -28,7 +28,8 @@ json = "0.11"
+ rand = "0.3"
+ unix_socket = "0.5"
+ unicode-segmentation = "1.2"
+-parse_int = "0.5"
++parse_int = "0.6"
++ndarray = "0.15.4"
+ 
+ unsegen = "0.3"
+ unsegen_signals = "0.3"
+-- 
+2.40.0
+
diff --git a/srcpkgs/ugdb/patches/atomicu64.patch b/srcpkgs/ugdb/patches/0002-fix-build-on-platforms-without-64-bit-atomics.patch
similarity index 59%
rename from srcpkgs/ugdb/patches/atomicu64.patch
rename to srcpkgs/ugdb/patches/0002-fix-build-on-platforms-without-64-bit-atomics.patch
index ec56043af570..361d20a967cd 100644
--- a/srcpkgs/ugdb/patches/atomicu64.patch
+++ b/srcpkgs/ugdb/patches/0002-fix-build-on-platforms-without-64-bit-atomics.patch
@@ -1,14 +1,17 @@
-commit db6e990cc46d69526beae930e0048f65d5510c34
-Author: q66 <daniel@octaforge.org>
-Date:   Tue Aug 10 18:52:51 2021 +0200
+From 61695a6616345a23d522a4480388718d94d0e588 Mon Sep 17 00:00:00 2001
+From: q66 <daniel@octaforge.org>
+Date: Tue, 10 Aug 2021 18:52:51 +0200
+Subject: [PATCH 2/2] fix build on platforms without 64-bit atomics
 
-    fix build on platforms without 64-bit atomics
+---
+ src/main.rs | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/src/main.rs b/src/main.rs
-index ccfccab..fe2b52c 100644
+index 5af4b8b..17e0ab3 100644
 --- a/src/main.rs
 +++ b/src/main.rs
-@@ -284,7 +284,7 @@ struct MpscTimer {
+@@ -256,7 +256,7 @@ struct MpscTimer {
      next_sender: Option<Sender<Event>>,
      sender: Sender<Event>,
      evt_fn: Box<dyn Fn() -> Event>,
@@ -17,7 +20,7 @@ index ccfccab..fe2b52c 100644
  }
  
  impl MpscTimer {
-@@ -293,7 +293,7 @@ impl MpscTimer {
+@@ -265,7 +265,7 @@ impl MpscTimer {
              next_sender: Some(sender.clone()),
              sender,
              evt_fn,
@@ -26,3 +29,6 @@ index ccfccab..fe2b52c 100644
          }
      }
  
+-- 
+2.40.0
+
diff --git a/srcpkgs/ugdb/patches/i128.patch b/srcpkgs/ugdb/patches/i128.patch
deleted file mode 100644
index 4496ca498d2c..000000000000
--- a/srcpkgs/ugdb/patches/i128.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-Bump some versions to get num-traits support for i128.
-
---- a/Cargo.toml
-+++ b/Cargo.toml:wq
-@@ -28,7 +28,8 @@
- rand = "0.3"
- unix_socket = "0.5"
- unicode-segmentation = "1.2"
--parse_int = "0.5"
-+parse_int = "0.6"
-+ndarray = "0.15.4"
- 
- unsegen = "0.3"
- unsegen_signals = "0.3"
diff --git a/srcpkgs/ugdb/template b/srcpkgs/ugdb/template
index a5a1ba695183..4333dd2b53fa 100644
--- a/srcpkgs/ugdb/template
+++ b/srcpkgs/ugdb/template
@@ -1,8 +1,10 @@
 # Template file for 'ugdb'
 pkgname=ugdb
 version=0.1.11
-revision=2
+revision=3
 build_style=cargo
+hostmakedepends="pkg-config"
+makedepends="oniguruma-devel"
 checkdepends="gdb"
 short_desc="Alternative TUI for gdb"
 maintainer="Érico Nogueira <ericonr@disroot.org>"

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

* Re: RFC: common/build-style/cargo.sh: use --locked for build and check as well
  2023-04-03  6:50 [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well jcgruenhage
                   ` (15 preceding siblings ...)
  2023-04-13 14:21 ` [PR PATCH] [Updated] " jcgruenhage
@ 2023-04-13 14:22 ` jcgruenhage
  2023-04-13 14:27 ` jcgruenhage
                   ` (4 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: jcgruenhage @ 2023-04-13 14:22 UTC (permalink / raw)
  To: ml

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

New comment by jcgruenhage on void-packages repository

https://github.com/void-linux/void-packages/pull/43233#issuecomment-1507061014

Comment:
I don't see how that changes anything tbqh. After doing so, `Cargo.lock` contains 4 references to ndarray:
 - Definition of `ndarray@0.8.4`, this is what was in the dependency tree previously
 - Definition of `ndarray@0.15.6`, which we've just added
 - Dependency from `ugdb` to `ndarray@0.15.6`
 - Dependency from `unsegen` to `ndarray@0.8.4`
 
 Aside of that, there's also not much else changing here. I've committed that now to check, but I don't think it'll do anything.

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

* Re: RFC: common/build-style/cargo.sh: use --locked for build and check as well
  2023-04-03  6:50 [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well jcgruenhage
                   ` (16 preceding siblings ...)
  2023-04-13 14:22 ` jcgruenhage
@ 2023-04-13 14:27 ` jcgruenhage
  2023-04-13 14:44 ` [PR PATCH] [Updated] " jcgruenhage
                   ` (3 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: jcgruenhage @ 2023-04-13 14:27 UTC (permalink / raw)
  To: ml

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

New comment by jcgruenhage on void-packages repository

https://github.com/void-linux/void-packages/pull/43233#issuecomment-1507069702

Comment:
Okay, now that's interesting: I've built both variants locally, and adding the `ndarray` dep does indeed fix it, but I really, really, really don't understand how.

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

* Re: RFC: common/build-style/cargo.sh: use --locked for build and check as well
  2023-04-03  6:50 [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well jcgruenhage
                   ` (18 preceding siblings ...)
  2023-04-13 14:44 ` [PR PATCH] [Updated] " jcgruenhage
@ 2023-04-13 14:44 ` jcgruenhage
  2023-04-13 15:52 ` jcgruenhage
  2023-04-13 17:15 ` [PR PATCH] [Merged]: " classabbyamp
  21 siblings, 0 replies; 23+ messages in thread
From: jcgruenhage @ 2023-04-13 14:44 UTC (permalink / raw)
  To: ml

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

New comment by jcgruenhage on void-packages repository

https://github.com/void-linux/void-packages/pull/43233#issuecomment-1507098776

Comment:
Okay, I've dug a bit deeper, and I now do understand why adding `ndarray` makes it compile. Adding `ndarray` enables the `i128` feature on `num-traits`, which enables using `i128` in places where `num_traits::Num` is expected. Making `ugdb` depend on `num-traits` with the feature enabled explicitly instead of making it depend on a new-ish version of `ndarray` makes the patch a lot smaller though and easier to understand.

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

* Re: [PR PATCH] [Updated] RFC: common/build-style/cargo.sh: use --locked for build and check as well
  2023-04-03  6:50 [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well jcgruenhage
                   ` (17 preceding siblings ...)
  2023-04-13 14:27 ` jcgruenhage
@ 2023-04-13 14:44 ` jcgruenhage
  2023-04-13 14:44 ` jcgruenhage
                   ` (2 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: jcgruenhage @ 2023-04-13 14:44 UTC (permalink / raw)
  To: ml

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

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

https://github.com/jcgruenhage/void-packages locked-cargo
https://github.com/void-linux/void-packages/pull/43233

RFC: common/build-style/cargo.sh: use --locked for build and check as well
#### 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/43233.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-locked-cargo-43233.patch --]
[-- Type: text/x-diff, Size: 31238 bytes --]

From c108b6803e997443c5df6973e97cd6ed89c43047 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sun, 2 Apr 2023 16:25:24 +0200
Subject: [PATCH 01/12] common/build-style/cargo.sh: use --locked for build and
 check as well

---
 common/build-style/cargo.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/build-style/cargo.sh b/common/build-style/cargo.sh
index 387e711060bc..751911d8dbee 100644
--- a/common/build-style/cargo.sh
+++ b/common/build-style/cargo.sh
@@ -5,14 +5,14 @@
 do_build() {
 	: ${make_cmd:=cargo auditable}
 
-	${make_cmd} build --release --target ${RUST_TARGET} ${configure_args}
+	${make_cmd} build --release --locked --target ${RUST_TARGET} ${configure_args}
 }
 
 do_check() {
 	: ${make_cmd:=cargo auditable}
 
-	${make_check_pre} ${make_cmd} test --release --target ${RUST_TARGET} ${configure_args} \
-		${make_check_args}
+	${make_check_pre} ${make_cmd} test --release --locked --target ${RUST_TARGET} \
+		${configure_args} ${make_check_args}
 }
 
 do_install() {

From 55b00afb511f503daa6efe4ff36c58339c0e695e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Mon, 3 Apr 2023 08:49:10 +0200
Subject: [PATCH 02/12] cargo-update: generate lockfile

---
 srcpkgs/cargo-update/template | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/cargo-update/template b/srcpkgs/cargo-update/template
index f892886fca3f..f31800e0abe0 100644
--- a/srcpkgs/cargo-update/template
+++ b/srcpkgs/cargo-update/template
@@ -1,7 +1,7 @@
 # Template file for 'cargo-update'
 pkgname=cargo-update
 version=13.0.0
-revision=1
+revision=2
 build_style=cargo
 hostmakedepends="pkg-config go-md2man"
 makedepends="libcurl-devel libgit2-devel libssh2-devel openssl-devel"
@@ -18,6 +18,13 @@ if [ "$XBPS_TARGET_MACHINE" == "i686" ]; then
 	make_check_args="-- --skip ops::assert_index_path"
 fi
 
+post_patch() {
+	# Upstream does not ship a lockfile and is very vocal about that being
+	# the right way:
+	# https://github.com/nabijaczleweli/cargo-update/issues/50
+	cargo generate-lockfile
+}
+
 post_install() {
 	vlicense LICENSE
 	vdoc README.md

From 6dd84c8b9a2c54dd8601cfbb310e2ffbc92493ed Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 17:52:44 +0200
Subject: [PATCH 03/12] alert-after: patch lockfile

---
 .../patches/0001-Update-Cargo.lock.patch      | 155 ++++++++++++++++++
 srcpkgs/alert-after/template                  |   2 +-
 2 files changed, 156 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/alert-after/patches/0001-Update-Cargo.lock.patch

diff --git a/srcpkgs/alert-after/patches/0001-Update-Cargo.lock.patch b/srcpkgs/alert-after/patches/0001-Update-Cargo.lock.patch
new file mode 100644
index 000000000000..c0d727f8c2c5
--- /dev/null
+++ b/srcpkgs/alert-after/patches/0001-Update-Cargo.lock.patch
@@ -0,0 +1,155 @@
+From f4141915692ee8cc437209aaa6f507fc372792ed Mon Sep 17 00:00:00 2001
+From: Corey Farwell <coreyf@rwell.org>
+Date: Wed, 10 Apr 2019 06:36:39 -0400
+Subject: [PATCH] Update Cargo.lock
+
+---
+ Cargo.lock | 61 +++++++-----------------------------------------------
+ 1 file changed, 8 insertions(+), 53 deletions(-)
+
+diff --git a/Cargo.lock b/Cargo.lock
+index de84926..038c9ca 100644
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -2,9 +2,9 @@
+ # It is not intended for manual editing.
+ [[package]]
+ name = "alert-after"
+-version = "1.5.0"
++version = "1.5.1"
+ dependencies = [
+- "notifica 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
++ "notifica 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+ [[package]]
+@@ -154,12 +154,12 @@ dependencies = [
+ 
+ [[package]]
+ name = "notifica"
+-version = "1.0.0"
++version = "1.0.2"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ dependencies = [
+  "mac-notification-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
+  "notify-rust 3.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winrt 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
++ "winrt 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+ [[package]]
+@@ -211,24 +211,6 @@ dependencies = [
+  "objc 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+-[[package]]
+-name = "ole32-sys"
+-version = "0.2.0"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-dependencies = [
+- "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
+-]
+-
+-[[package]]
+-name = "oleaut32-sys"
+-version = "0.2.0"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-dependencies = [
+- "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
+-]
+-
+ [[package]]
+ name = "pkg-config"
+ version = "0.3.14"
+@@ -255,15 +237,6 @@ name = "redox_syscall"
+ version = "0.1.53"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ 
+-[[package]]
+-name = "runtimeobject-sys"
+-version = "0.2.0"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-dependencies = [
+- "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
+-]
+-
+ [[package]]
+ name = "rustc-demangle"
+ version = "0.1.13"
+@@ -305,11 +278,6 @@ name = "unicode-xid"
+ version = "0.1.0"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ 
+-[[package]]
+-name = "winapi"
+-version = "0.2.8"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-
+ [[package]]
+ name = "winapi"
+ version = "0.3.7"
+@@ -319,11 +287,6 @@ dependencies = [
+  "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+-[[package]]
+-name = "winapi-build"
+-version = "0.1.1"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-
+ [[package]]
+ name = "winapi-i686-pc-windows-gnu"
+ version = "0.4.0"
+@@ -336,13 +299,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
+ 
+ [[package]]
+ name = "winrt"
+-version = "0.3.0"
++version = "0.5.1"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ dependencies = [
+- "ole32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
+- "oleaut32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
+- "runtimeobject-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
+- "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
++ "winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+ 
+ [metadata]
+@@ -364,28 +324,23 @@ dependencies = [
+ "checksum mac-notification-sys 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "6a3639b6caa2db7443e5df80e12c450982f77fc3c140f53d6e48be91f965ea66"
+ "checksum mac-notification-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a7f588a226cfab0536c23ef64ce521d2a0469315731460c6f924b39d162bc162"
+ "checksum malloc_buf 0.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb"
+-"checksum notifica 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2dc6d2270aa8b606c081c25f2d06b870e3c9226b0e7b98e63b990bdb390cb488"
++"checksum notifica 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e4bf0be3d0aa13ec1467834b3b4d0a3fdee1215c7483b9b54b31fd4dad356814"
+ "checksum notify-rust 3.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "46d847abfe6489a4f7817ec893efeb27f8250755b2272bfa933bcf69af4bda42"
+ "checksum num-integer 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)" = "e83d528d2677f0518c570baf2b7abdcf0cd2d248860b68507bdcb3e91d4c0cea"
+ "checksum num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0b3a5d7cc97d6d30d8b9bc8fa19bf45349ffe46241e8816f50f62f6d6aaabee1"
+ "checksum objc 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "31d20fd2b37e07cf5125be68357b588672e8cefe9a96f8c17a9d46053b3e590d"
+ "checksum objc-foundation 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "1add1b659e36c9607c7aab864a76c7a4c2760cd0cd2e120f3fb8b952c7e22bf9"
+ "checksum objc_id 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c92d4ddb4bd7b50d730c215ff871754d0da6b2178849f8a2a2ab69712d0c073b"
+-"checksum ole32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5d2c49021782e5233cd243168edfa8037574afed4eba4bbaf538b3d8d1789d8c"
+-"checksum oleaut32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1fde17b30b27384afd9a5b02c5429cc356b82263f4bd15e5661c5df9e9df612f"
+ "checksum pkg-config 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)" = "676e8eb2b1b4c9043511a9b7bea0915320d7e502b0a079fb03f9635a5252b18c"
+ "checksum proc-macro2 0.4.27 (registry+https://github.com/rust-lang/crates.io-index)" = "4d317f9caece796be1980837fd5cb3dfec5613ebdb04ad0956deea83ce168915"
+ "checksum quote 0.6.11 (registry+https://github.com/rust-lang/crates.io-index)" = "cdd8e04bd9c52e0342b406469d494fcb033be4bdbe5c606016defbb1681411e1"
+ "checksum redox_syscall 0.1.53 (registry+https://github.com/rust-lang/crates.io-index)" = "53848511b7ee6eb9d5c3db48481aaa5779b38fc0131bc133c98cb4f2b2411928"
+-"checksum runtimeobject-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c2222472d6d46b6a047029b80a766759879590fa1d31a531456eff0cd855b273"
+ "checksum rustc-demangle 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)" = "adacaae16d02b6ec37fdc7acfcddf365978de76d1983d3ee22afc260e1ca9619"
+ "checksum syn 0.15.30 (registry+https://github.com/rust-lang/crates.io-index)" = "66c8865bf5a7cbb662d8b011950060b3c8743dca141b054bf7195b20d314d8e2"
+ "checksum synstructure 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)" = "73687139bf99285483c96ac0add482c3776528beac1d97d444f6e91f203a2015"
+ "checksum time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)" = "db8dcfca086c1143c9270ac42a2bbd8a7ee477b78ac8e45b19abfb0cbede4b6f"
+ "checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc"
+-"checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"
+ "checksum winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)" = "f10e386af2b13e47c89e7236a7a14a086791a2b88ebad6df9bf42040195cf770"
+-"checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"
+ "checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
+ "checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+-"checksum winrt 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ce322394c4d48755ad50fc867ffb70b433a336944935c3098b4e1ca4bbb0870a"
++"checksum winrt 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0c4c01eac5a45f4fcb31db47886257ff0b0ec8958b581ff841b0d992a7e97f94"
+-- 
+2.40.0
+
diff --git a/srcpkgs/alert-after/template b/srcpkgs/alert-after/template
index 27dcd62231e3..8345dc519624 100644
--- a/srcpkgs/alert-after/template
+++ b/srcpkgs/alert-after/template
@@ -1,7 +1,7 @@
 # Template file for 'alert-after'
 pkgname=alert-after
 version=1.5.1
-revision=1
+revision=2
 build_style=cargo
 hostmakedepends="pkg-config"
 makedepends="dbus-devel"

From 516f709a0293266b46a80dd8e80ca45c34eded6f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 18:07:02 +0200
Subject: [PATCH 04/12] blindfold: generate lockfile

---
 srcpkgs/blindfold/template | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/blindfold/template b/srcpkgs/blindfold/template
index ee605e767102..8c9306e69f7c 100644
--- a/srcpkgs/blindfold/template
+++ b/srcpkgs/blindfold/template
@@ -1,7 +1,7 @@
 # Template file for 'blindfold'
 pkgname=blindfold
 version=1.0.6
-revision=2
+revision=3
 build_style=cargo
 hostmakedepends="pkg-config"
 makedepends="openssl-devel"
@@ -12,6 +12,12 @@ homepage="https://github.com/Eoin-McMahon/blindfold"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=eff539920d4efa5c0fc35067c40347ceb8b01a922f443460a28e8c5e0b3237ca
 
+post_patch() {
+	# Upstream does not ship a lockfile yet:
+	# https://github.com/Eoin-McMahon/blindfold/issues/23
+	cargo generate-lockfile
+}
+
 post_install() {
 	vlicense LICENSE
 }

From 96c591b13d643c2e2283781fe9505c0dd005cc1b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 18:15:15 +0200
Subject: [PATCH 05/12] desed: generate lockfile

---
 srcpkgs/desed/template | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/desed/template b/srcpkgs/desed/template
index 2f163115a797..e6f854bc90ee 100644
--- a/srcpkgs/desed/template
+++ b/srcpkgs/desed/template
@@ -1,7 +1,7 @@
 # Template file for 'desed'
 pkgname=desed
 version=1.2.1
-revision=1
+revision=2
 build_style=cargo
 short_desc="Demystify and debug sed scripts"
 maintainer="Andrew Benson <abenson+void@gmail.com>"
@@ -9,3 +9,9 @@ license="GPL-3.0-or-later"
 homepage="https://github.com/SoptikHa2/desed"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=bee8c60d58f11472c036277b0318bdceb5520cce5a61965bc028b26ccbdeb706
+
+post_patch() {
+	# Upstream does not ship a lockfile yet:
+	# https://github.com/SoptikHa2/desed/issues/27
+	cargo generate-lockfile
+}

From 0b4cfe9aac8400bdffa40c967da56355a2b6f73b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 18:25:34 +0200
Subject: [PATCH 06/12] exa: patch lockfile

---
 .../patches/0001-Update-lockfile-854.patch    | 129 ++++++++++++++++++
 srcpkgs/exa/template                          |   3 +-
 2 files changed, 131 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/exa/patches/0001-Update-lockfile-854.patch

diff --git a/srcpkgs/exa/patches/0001-Update-lockfile-854.patch b/srcpkgs/exa/patches/0001-Update-lockfile-854.patch
new file mode 100644
index 000000000000..6b44fa814a49
--- /dev/null
+++ b/srcpkgs/exa/patches/0001-Update-lockfile-854.patch
@@ -0,0 +1,129 @@
+From 90b97753adb630513d68be7e66410e2b149ea446 Mon Sep 17 00:00:00 2001
+From: Haren S <harens@macports.org>
+Date: Mon, 26 Apr 2021 22:37:32 +0100
+Subject: [PATCH] Update lockfile (#854)
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Update lockfile (exa now requires Rust 1.45.2 or higher)
+
+Co-authored-by: Mélanie Chauvel <perso@hack-libre.org>
+---
+ .travis.yml |  2 +-
+ Cargo.lock  | 22 +++++++++++-----------
+ README.md   |  6 +++---
+ 3 files changed, 15 insertions(+), 15 deletions(-)
+
+diff --git a/.travis.yml b/.travis.yml
+index cc98081..1f08108 100644
+--- a/.travis.yml
++++ b/.travis.yml
+@@ -1,6 +1,6 @@
+ language: rust
+ rust:
+-  - 1.42.0
++  - 1.45.2
+   - stable
+   - beta
+   - nightly
+diff --git a/Cargo.lock b/Cargo.lock
+index df94188..6a0665d 100644
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -57,7 +57,7 @@ dependencies = [
+ 
+ [[package]]
+ name = "exa"
+-version = "0.11.0-pre"
++version = "0.10.1"
+ dependencies = [
+  "ansi_term",
+  "datetime",
+@@ -90,9 +90,9 @@ dependencies = [
+ 
+ [[package]]
+ name = "git2"
+-version = "0.13.17"
++version = "0.13.18"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "1d250f5f82326884bd39c2853577e70a121775db76818ffa452ed1e80de12986"
++checksum = "b483c6c2145421099df1b4efd50e0f6205479a072199460eff852fa15e5603c7"
+ dependencies = [
+  "bitflags",
+  "libc",
+@@ -119,9 +119,9 @@ dependencies = [
+ 
+ [[package]]
+ name = "idna"
+-version = "0.2.2"
++version = "0.2.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "89829a5d69c23d348314a7ac337fe39173b61149a9864deabd260983aed48c21"
++checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8"
+ dependencies = [
+  "matches",
+  "unicode-bidi",
+@@ -130,9 +130,9 @@ dependencies = [
+ 
+ [[package]]
+ name = "jobserver"
+-version = "0.1.21"
++version = "0.1.22"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "5c71313ebb9439f74b00d9d2dcec36440beaf57a6aa0623068441dd7cd81a7f2"
++checksum = "972f5ae5d1cb9c6ae417789196c803205313edde988685da5e3aae0827b9e7fd"
+ dependencies = [
+  "libc",
+ ]
+@@ -151,9 +151,9 @@ checksum = "9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41"
+ 
+ [[package]]
+ name = "libgit2-sys"
+-version = "0.12.18+1.1.0"
++version = "0.12.19+1.1.0"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "3da6a42da88fc37ee1ecda212ffa254c25713532980005d5f7c0b0fbe7e6e885"
++checksum = "f322155d574c8b9ebe991a04f6908bb49e68a79463338d24a43d6274cb6443e6"
+ dependencies = [
+  "cc",
+  "libc",
+@@ -357,9 +357,9 @@ dependencies = [
+ 
+ [[package]]
+ name = "vcpkg"
+-version = "0.2.11"
++version = "0.2.12"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "b00bca6106a5e23f3eee943593759b7fcddb00554332e856d990c893966879fb"
++checksum = "cbdbff6266a24120518560b5dc983096efb98462e51d0d68169895b237be3e5d"
+ 
+ [[package]]
+ name = "winapi"
+diff --git a/README.md b/README.md
+index 1939928..898394d 100644
+--- a/README.md
++++ b/README.md
+@@ -201,8 +201,8 @@ To build without Git support, run `cargo install --no-default-features exa` is a
+ <a id="development">
+ <h1>Development
+ 
+-<a href="https://blog.rust-lang.org/2020/03/12/Rust-1.42.html">
+-    <img src="https://img.shields.io/badge/rustc-1.42+-lightgray.svg" alt="Rust 1.42+" />
++<a href="https://blog.rust-lang.org/2020/08/03/Rust-1.45.2.html">
++    <img src="https://img.shields.io/badge/rustc-1.45.2+-lightgray.svg" alt="Rust 1.45.2+" />
+ </a>
+ 
+ <a href="https://github.com/ogham/exa/blob/master/LICENCE">
+@@ -211,7 +211,7 @@ To build without Git support, run `cargo install --no-default-features exa` is a
+ </h1></a>
+ 
+ exa is written in [Rust](https://www.rust-lang.org/).
+-You will need rustc version 1.42.0 or higher.
++You will need rustc version 1.45.2 or higher.
+ The recommended way to install Rust for development is from the [official download page](https://www.rust-lang.org/tools/install), using rustup.
+ 
+ Once Rust is installed, you can compile exa with Cargo:
+-- 
+2.40.0
+
diff --git a/srcpkgs/exa/template b/srcpkgs/exa/template
index 248fda1e8188..ec5649613174 100644
--- a/srcpkgs/exa/template
+++ b/srcpkgs/exa/template
@@ -1,7 +1,7 @@
 # Template file for 'exa'
 pkgname=exa
 version=0.10.1
-revision=2
+revision=3
 create_wrksrc=yes
 build_wrksrc="${pkgname}-${version}"
 build_style=cargo
@@ -15,6 +15,7 @@ distfiles="https://github.com/ogham/exa/archive/refs/tags/v${version}.tar.gz
  https://github.com/ogham/exa/releases/download/v${version}/exa-accoutrements-v${version}.zip"
 checksum="ff0fa0bfc4edef8bdbbb3cabe6fdbd5481a71abbbcc2159f402dea515353ae7c
  531596a1ef2a757c7728087529528150e6eb52bb8224fe575aa00a5f1b762849"
+patch_args="-Np1 -d ${build_wrksrc}"
 
 post_extract() {
 	mkdir "${build_wrksrc}/accoutrements"

From 4abcd69feb92081628f1e802945e461b1a65764a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 18:53:19 +0200
Subject: [PATCH 07/12] nasa-wallpaper: generate lockfile

---
 srcpkgs/nasa-wallpaper/template | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/nasa-wallpaper/template b/srcpkgs/nasa-wallpaper/template
index be30791e780a..72bcbd802b45 100644
--- a/srcpkgs/nasa-wallpaper/template
+++ b/srcpkgs/nasa-wallpaper/template
@@ -1,7 +1,7 @@
 # Template file for 'nasa-wallpaper'
 pkgname=nasa-wallpaper
 version=2.0
-revision=3
+revision=4
 build_style="cargo"
 hostmakedepends="pkg-config"
 makedepends="openssl-devel"
@@ -11,3 +11,9 @@ license="Apache-2.0"
 homepage="https://github.com/davidpob99/nasa-wallpaper/"
 distfiles="https://github.com/davidpob99/nasa-wallpaper/archive/v${version}.tar.gz"
 checksum=5bdf85cabc954069f7188f32c5579a6d47aae1781bc438bead7d7a0af335f5f8
+
+post_patch() {
+	# Upstream does not ship a lockfile yet:
+	# https://github.com/davidpob99/nasa-wallpaper/issues/12
+	cargo generate-lockfile
+}

From 483b9b816f8a0003f0a937f675745f6e39ff34be Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 19:01:24 +0200
Subject: [PATCH 08/12] pijul: generate lockfile

---
 srcpkgs/pijul/template | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/pijul/template b/srcpkgs/pijul/template
index a6a6d048b1ec..ba0d9c8def65 100644
--- a/srcpkgs/pijul/template
+++ b/srcpkgs/pijul/template
@@ -1,7 +1,7 @@
 # Template file for 'pijul'
 pkgname=pijul
 version=0.12.2
-revision=5
+revision=6
 create_wrksrc=yes
 build_style=cargo
 _sequoia_ver=0.9.0
@@ -21,6 +21,11 @@ post_extract() {
 	mv sequoia-* sequoia
 }
 
+post_patch() {
+	# Upstream does not ship a lockfile yet
+	cargo generate-lockfile
+}
+
 # We only want to install the binary, so don't run cargo install
 do_install() {
 	vbin target/${RUST_TARGET}/release/pijul

From cd4f349d15844b65b6108f2b443416f608488be3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 19:21:06 +0200
Subject: [PATCH 09/12] sss-cli: patch lockfile

---
 .../patches/0001-Update-Cargo.lock.patch      | 34 +++++++++++++++++++
 srcpkgs/sss-cli/template                      |  2 +-
 2 files changed, 35 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/sss-cli/patches/0001-Update-Cargo.lock.patch

diff --git a/srcpkgs/sss-cli/patches/0001-Update-Cargo.lock.patch b/srcpkgs/sss-cli/patches/0001-Update-Cargo.lock.patch
new file mode 100644
index 000000000000..9a9db8c77f98
--- /dev/null
+++ b/srcpkgs/sss-cli/patches/0001-Update-Cargo.lock.patch
@@ -0,0 +1,34 @@
+From 38727743d904261ac74caa3750ef801ba88092ec Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
+ <jan.christian@gruenhage.xyz>
+Date: Sat, 8 Apr 2023 19:18:31 +0200
+Subject: [PATCH] Update Cargo.lock
+
+---
+ Cargo.lock | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/Cargo.lock b/Cargo.lock
+index a57c5d8..27278d9 100644
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -1,5 +1,7 @@
+ # This file is automatically @generated by Cargo.
+ # It is not intended for manual editing.
++version = 3
++
+ [[package]]
+ name = "aho-corasick"
+ version = "0.7.15"
+@@ -253,7 +255,7 @@ dependencies = [
+ 
+ [[package]]
+ name = "shamirsecretsharing-cli"
+-version = "0.1.0"
++version = "0.1.1"
+ dependencies = [
+  "atty",
+  "clap",
+-- 
+2.40.0
+
diff --git a/srcpkgs/sss-cli/template b/srcpkgs/sss-cli/template
index 1d49663b2148..462c6b5892f1 100644
--- a/srcpkgs/sss-cli/template
+++ b/srcpkgs/sss-cli/template
@@ -1,7 +1,7 @@
 # Template file for 'sss-cli'
 pkgname=sss-cli
 version=0.1.1
-revision=1
+revision=2
 build_style=cargo
 short_desc="Shamir's secret sharing scheme CLI tool"
 maintainer="Louis Dupré Bertoni <contact@louisdb.xyz>"

From ca05ad99a14d556e10b2010df65a24e42fe0304b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 19:28:40 +0200
Subject: [PATCH 10/12] svgcleaner: generate lockfile

---
 srcpkgs/svgcleaner/template | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/svgcleaner/template b/srcpkgs/svgcleaner/template
index 8f4c9cde387a..98cd332dfec5 100644
--- a/srcpkgs/svgcleaner/template
+++ b/srcpkgs/svgcleaner/template
@@ -1,7 +1,7 @@
 # Template file for 'svgcleaner'
 pkgname=svgcleaner
 version=0.9.5
-revision=1
+revision=2
 build_style=cargo
 short_desc="Tool for reducing size of svg images without loss"
 maintainer="Alexander Mamay <alexander@mamay.su>"
@@ -9,3 +9,8 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/RazrFalcon/SVGCleaner"
 distfiles="https://github.com/RazrFalcon/SVGCleaner/archive/v${version}.tar.gz"
 checksum=dcf8dbc8939699e2e82141cb86688b6cd09da8cae5e18232ef14085c2366290c
+
+post_patch() {
+	# Upstream does not ship a lockfile yet:
+	cargo generate-lockfile
+}

From b025db92452bcdc5e3578030d4710805604a3092 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 19:54:10 +0200
Subject: [PATCH 11/12] tmplgen: switch to git tag based tarball

---
 srcpkgs/tmplgen/template | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/tmplgen/template b/srcpkgs/tmplgen/template
index f352a5f3fd60..f51cced3b077 100644
--- a/srcpkgs/tmplgen/template
+++ b/srcpkgs/tmplgen/template
@@ -1,7 +1,7 @@
 # Template file for 'tmplgen'
 pkgname=tmplgen
 version=1.3.1
-revision=4
+revision=5
 build_style=cargo
 hostmakedepends="pkg-config"
 makedepends="openssl-devel"
@@ -9,8 +9,10 @@ short_desc="Void Linux template generator for language-specific package managers
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="https://github.com/Cogitri/tmplgen"
-distfiles="https://static.crates.io/crates/tmplgen/tmplgen-${version}.crate"
-checksum=5e5dc4b3e50f4f2dc87f510bb3d1547a86ecd5a52c0f33305a0a7a3dca40bee9
+distfiles="https://github.com/Cogitri/tmplgen/archive/refs/tags/v${version}.tar.gz"
+checksum=8c8aa5b65045614529626978852416a965d57c77dd5953be58bc84f8d8b27f9b
+# cba for now, tests weren't shipped in the previous tarballs
+make_check=no
 
 post_install() {
 	vman man/tmplgen.1

From bd46b0be6262d2070a00ce6050100c989df62619 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 20:11:12 +0200
Subject: [PATCH 12/12] ugdb: include Cargo.lock in patches, fix oniguruma
 linking

---
 .../patches/0001-unbreak-i128-support.patch   | 51 +++++++++++++++++++
 ...on-platforms-without-64-bit-atomics.patch} | 20 +++++---
 srcpkgs/ugdb/patches/i128.patch               | 14 -----
 srcpkgs/ugdb/template                         |  4 +-
 4 files changed, 67 insertions(+), 22 deletions(-)
 create mode 100644 srcpkgs/ugdb/patches/0001-unbreak-i128-support.patch
 rename srcpkgs/ugdb/patches/{atomicu64.patch => 0002-fix-build-on-platforms-without-64-bit-atomics.patch} (59%)
 delete mode 100644 srcpkgs/ugdb/patches/i128.patch

diff --git a/srcpkgs/ugdb/patches/0001-unbreak-i128-support.patch b/srcpkgs/ugdb/patches/0001-unbreak-i128-support.patch
new file mode 100644
index 000000000000..7e20d228eb9d
--- /dev/null
+++ b/srcpkgs/ugdb/patches/0001-unbreak-i128-support.patch
@@ -0,0 +1,51 @@
+From 9f9fd4ec05587aae2b65a20fadabccb02c593ce2 Mon Sep 17 00:00:00 2001
+From: Leah Neukirchen <leah@vuxu.org>
+Date: Mon, 7 Feb 2022 18:52:43 +0100
+Subject: [PATCH 1/2] unbreak i128 support
+
+---
+ Cargo.lock | 5 +++--
+ Cargo.toml | 3 ++-
+ 2 files changed, 5 insertions(+), 3 deletions(-)
+
+diff --git a/Cargo.lock b/Cargo.lock
+index 73e90fb..1b0c1e9 100644
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -418,9 +418,9 @@ dependencies = [
+ 
+ [[package]]
+ name = "parse_int"
+-version = "0.5.0"
++version = "0.6.0"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "15f96500577cfa0a3bad8a88a3c4daa66684828af2e7d349012fa7fc3c725f0c"
++checksum = "2d695b79916a2c08bcff7be7647ab60d1402885265005a6658ffe6d763553c5a"
+ dependencies = [
+  "num-traits 0.2.14",
+ ]
+@@ -792,6 +792,7 @@ dependencies = [
+  "log",
+  "nix",
+  "nom",
++ "num-traits 0.2.14",
+  "parse_int",
+  "rand 0.3.23",
+  "structopt",
+diff --git a/Cargo.toml b/Cargo.toml
+index 235a30b..1bd3319 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -28,7 +28,8 @@ json = "0.11"
+ rand = "0.3"
+ unix_socket = "0.5"
+ unicode-segmentation = "1.2"
+-parse_int = "0.5"
++parse_int = "0.6"
++num-traits = { version = "0.2", features = ["i128"] }
+ 
+ unsegen = "0.3"
+ unsegen_signals = "0.3"
+-- 
+2.40.0
+
diff --git a/srcpkgs/ugdb/patches/atomicu64.patch b/srcpkgs/ugdb/patches/0002-fix-build-on-platforms-without-64-bit-atomics.patch
similarity index 59%
rename from srcpkgs/ugdb/patches/atomicu64.patch
rename to srcpkgs/ugdb/patches/0002-fix-build-on-platforms-without-64-bit-atomics.patch
index ec56043af570..ff6a6ce7635b 100644
--- a/srcpkgs/ugdb/patches/atomicu64.patch
+++ b/srcpkgs/ugdb/patches/0002-fix-build-on-platforms-without-64-bit-atomics.patch
@@ -1,14 +1,17 @@
-commit db6e990cc46d69526beae930e0048f65d5510c34
-Author: q66 <daniel@octaforge.org>
-Date:   Tue Aug 10 18:52:51 2021 +0200
+From 1add8448a097566dab2463f9383f6dccaf307bdd Mon Sep 17 00:00:00 2001
+From: q66 <daniel@octaforge.org>
+Date: Tue, 10 Aug 2021 18:52:51 +0200
+Subject: [PATCH 2/2] fix build on platforms without 64-bit atomics
 
-    fix build on platforms without 64-bit atomics
+---
+ src/main.rs | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/src/main.rs b/src/main.rs
-index ccfccab..fe2b52c 100644
+index 5af4b8b..17e0ab3 100644
 --- a/src/main.rs
 +++ b/src/main.rs
-@@ -284,7 +284,7 @@ struct MpscTimer {
+@@ -256,7 +256,7 @@ struct MpscTimer {
      next_sender: Option<Sender<Event>>,
      sender: Sender<Event>,
      evt_fn: Box<dyn Fn() -> Event>,
@@ -17,7 +20,7 @@ index ccfccab..fe2b52c 100644
  }
  
  impl MpscTimer {
-@@ -293,7 +293,7 @@ impl MpscTimer {
+@@ -265,7 +265,7 @@ impl MpscTimer {
              next_sender: Some(sender.clone()),
              sender,
              evt_fn,
@@ -26,3 +29,6 @@ index ccfccab..fe2b52c 100644
          }
      }
  
+-- 
+2.40.0
+
diff --git a/srcpkgs/ugdb/patches/i128.patch b/srcpkgs/ugdb/patches/i128.patch
deleted file mode 100644
index 4496ca498d2c..000000000000
--- a/srcpkgs/ugdb/patches/i128.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-Bump some versions to get num-traits support for i128.
-
---- a/Cargo.toml
-+++ b/Cargo.toml:wq
-@@ -28,7 +28,8 @@
- rand = "0.3"
- unix_socket = "0.5"
- unicode-segmentation = "1.2"
--parse_int = "0.5"
-+parse_int = "0.6"
-+ndarray = "0.15.4"
- 
- unsegen = "0.3"
- unsegen_signals = "0.3"
diff --git a/srcpkgs/ugdb/template b/srcpkgs/ugdb/template
index a5a1ba695183..4333dd2b53fa 100644
--- a/srcpkgs/ugdb/template
+++ b/srcpkgs/ugdb/template
@@ -1,8 +1,10 @@
 # Template file for 'ugdb'
 pkgname=ugdb
 version=0.1.11
-revision=2
+revision=3
 build_style=cargo
+hostmakedepends="pkg-config"
+makedepends="oniguruma-devel"
 checkdepends="gdb"
 short_desc="Alternative TUI for gdb"
 maintainer="Érico Nogueira <ericonr@disroot.org>"

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

* Re: RFC: common/build-style/cargo.sh: use --locked for build and check as well
  2023-04-03  6:50 [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well jcgruenhage
                   ` (19 preceding siblings ...)
  2023-04-13 14:44 ` jcgruenhage
@ 2023-04-13 15:52 ` jcgruenhage
  2023-04-13 17:15 ` [PR PATCH] [Merged]: " classabbyamp
  21 siblings, 0 replies; 23+ messages in thread
From: jcgruenhage @ 2023-04-13 15:52 UTC (permalink / raw)
  To: ml

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

New comment by jcgruenhage on void-packages repository

https://github.com/void-linux/void-packages/pull/43233#issuecomment-1507206983

Comment:
One last push to mark svgcleaner as broken on musl, then this should be good to go?

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

* Re: [PR PATCH] [Merged]: RFC: common/build-style/cargo.sh: use --locked for build and check as well
  2023-04-03  6:50 [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well jcgruenhage
                   ` (20 preceding siblings ...)
  2023-04-13 15:52 ` jcgruenhage
@ 2023-04-13 17:15 ` classabbyamp
  21 siblings, 0 replies; 23+ messages in thread
From: classabbyamp @ 2023-04-13 17:15 UTC (permalink / raw)
  To: ml

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

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

RFC: common/build-style/cargo.sh: use --locked for build and check as well
https://github.com/void-linux/void-packages/pull/43233

Description:
#### 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] 23+ messages in thread

end of thread, other threads:[~2023-04-13 17:15 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-03  6:50 [PR PATCH] common/build-style/cargo.sh: use --locked for build and check as well jcgruenhage
2023-04-03  6:59 ` [PR PATCH] [Updated] RFC: " jcgruenhage
2023-04-03  9:00 ` stefankreutz
2023-04-03  9:57 ` jcgruenhage
2023-04-03 15:54 ` icp1994
2023-04-03 18:44 ` jcgruenhage
2023-04-03 19:12 ` icp1994
2023-04-04  1:21 ` classabbyamp
2023-04-04  8:43 ` jcgruenhage
2023-04-04  8:44 ` jcgruenhage
2023-04-08 18:11 ` [PR PATCH] [Updated] " jcgruenhage
2023-04-08 18:29 ` jcgruenhage
2023-04-08 18:31 ` jcgruenhage
2023-04-13  5:01 ` classabbyamp
2023-04-13  5:59 ` jcgruenhage
2023-04-13 13:24 ` classabbyamp
2023-04-13 14:21 ` [PR PATCH] [Updated] " jcgruenhage
2023-04-13 14:22 ` jcgruenhage
2023-04-13 14:27 ` jcgruenhage
2023-04-13 14:44 ` [PR PATCH] [Updated] " jcgruenhage
2023-04-13 14:44 ` jcgruenhage
2023-04-13 15:52 ` jcgruenhage
2023-04-13 17:15 ` [PR PATCH] [Merged]: " classabbyamp

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