app-crypt/rage: add patch to fix tests

Closes: https://bugs.gentoo.org/974522
Signed-off-by: Ceres <ceres@ceressees.dev>
This commit is contained in:
Ceres
2026-05-12 17:08:45 +01:00
parent bd8e888b88
commit 53f7323423
2 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
Fixes tests by making them timezone agnostic
Closes: https://bugs.gentoo.org/974522
From: https://github.com/str4d/rage/commit/dfb60a5c04df217daaceb1d7b74b2e13be7a621b
--- a/rage/tests/cmd/rage-keygen/gen-output.out/key.txt
+++ b/rage/tests/cmd/rage-keygen/gen-output.out/key.txt
@@ -1,3 +1,3 @@
-# created: 20[..]-[..]-[..]T[..]:[..]:[..]Z
+# created: 20[..]-[..]-[..]T[..]:[..]:[..]
# public key: age1[..]
-AGE-SECRET-KEY-1[..]
\ No newline at end of file
+AGE-SECRET-KEY-1[..]
--- a/rage/tests/cmd/rage-keygen/gen-stdout.toml
+++ b/rage/tests/cmd/rage-keygen/gen-stdout.toml
@@ -1,7 +1,7 @@
bin.name = "rage-keygen"
args = ""
stdout = """
-# created: 20[..]-[..]-[..]T[..]:[..]:[..]Z
+# created: 20[..]-[..]-[..]T[..]:[..]:[..]
# public key: age1[..]
AGE-SECRET-KEY-1[..]
"""

View File

@@ -27,6 +27,8 @@ QA_FLAGS_IGNORED="
/usr/bin/${PN}-keygen
"
PATCHES=( "${FILESDIR}/${P}-keygen-test.patch" )
src_install() {
cargo_src_install --path rage
}