diff --git a/app-crypt/rage/files/rage-0.11.2-keygen-test.patch b/app-crypt/rage/files/rage-0.11.2-keygen-test.patch new file mode 100644 index 0000000000..399b9d1eec --- /dev/null +++ b/app-crypt/rage/files/rage-0.11.2-keygen-test.patch @@ -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[..] + """ diff --git a/app-crypt/rage/rage-0.11.2.ebuild b/app-crypt/rage/rage-0.11.2.ebuild index 556c8bd71e..4c5770aaf2 100644 --- a/app-crypt/rage/rage-0.11.2.ebuild +++ b/app-crypt/rage/rage-0.11.2.ebuild @@ -27,6 +27,8 @@ QA_FLAGS_IGNORED=" /usr/bin/${PN}-keygen " +PATCHES=( "${FILESDIR}/${P}-keygen-test.patch" ) + src_install() { cargo_src_install --path rage }