commit: 111cabeae34e03a8d729ef287adc27ecb3d3b87f Author: Christopher Byrne <salah.coronya <AT> gmail <DOT> com> AuthorDate: Tue Mar 14 23:28:52 2023 +0000 Commit: Christopher Byrne <salah.coronya <AT> gmail <DOT> com> CommitDate: Tue Mar 14 23:28:52 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=111cabea
app-crypt/tpm2-openssl: Fix failing test Closes: https://bugs.gentoo.org/901005 Signed-off-by: Christopher Byrne <salah.coronya <AT> gmail.com> ...de-base-provider-required-to-load-ecparam.patch | 25 ++++++++++++++++++++++ app-crypt/tpm2-openssl/metadata.xml | 4 ++++ app-crypt/tpm2-openssl/tpm2-openssl-1.1.1.ebuild | 4 ++++ 3 files changed, 33 insertions(+) diff --git a/app-crypt/tpm2-openssl/files/tpm2-openssl-1.1.1-tests-include-base-provider-required-to-load-ecparam.patch b/app-crypt/tpm2-openssl/files/tpm2-openssl-1.1.1-tests-include-base-provider-required-to-load-ecparam.patch new file mode 100644 index 000000000..5a5554628 --- /dev/null +++ b/app-crypt/tpm2-openssl/files/tpm2-openssl-1.1.1-tests-include-base-provider-required-to-load-ecparam.patch @@ -0,0 +1,25 @@ +From 483030d85563e26a62e4baeac3b0fdca0e314199 Mon Sep 17 00:00:00 2001 +From: Petr Gotthard <petr.gotth...@advantech.cz> +Date: Fri, 23 Dec 2022 10:46:40 +0100 +Subject: [PATCH] tests: include base provider required to load ecparam + +--- + test/ec_genpkey_parameters.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test/ec_genpkey_parameters.sh b/test/ec_genpkey_parameters.sh +index 406b558..a4f68d7 100755 +--- a/test/ec_genpkey_parameters.sh ++++ b/test/ec_genpkey_parameters.sh +@@ -6,7 +6,7 @@ set -eufx + openssl ecparam -name prime256v1 -out testparam.pem + + # generate private key as PEM +-openssl genpkey -provider tpm2 -paramfile testparam.pem -out testkey.pem ++openssl genpkey -provider tpm2 -provider base -paramfile testparam.pem -out testkey.pem + + # display private key info + openssl ec -provider tpm2 -provider base -in testkey.pem -check -text -noout +-- +2.39.2 + diff --git a/app-crypt/tpm2-openssl/metadata.xml b/app-crypt/tpm2-openssl/metadata.xml index cd1ce1c8a..aa195a46b 100644 --- a/app-crypt/tpm2-openssl/metadata.xml +++ b/app-crypt/tpm2-openssl/metadata.xml @@ -5,4 +5,8 @@ <email>salah.coro...@gmail.com</email> <name>Christopher Byrne</name> </maintainer> + <upstream> + <remote-id type="github">tpm2-software/tpm2-openssl</remote-id> + </upstream> </pkgmetadata> + diff --git a/app-crypt/tpm2-openssl/tpm2-openssl-1.1.1.ebuild b/app-crypt/tpm2-openssl/tpm2-openssl-1.1.1.ebuild index fff830dd8..1033293fb 100644 --- a/app-crypt/tpm2-openssl/tpm2-openssl-1.1.1.ebuild +++ b/app-crypt/tpm2-openssl/tpm2-openssl-1.1.1.ebuild @@ -26,6 +26,10 @@ BDEPEND="sys-devel/autoconf-archive RESTRICT="!test? ( test )" +PATCHES=( + "${FILESDIR}/${PN}-1.1.1-tests-include-base-provider-required-to-load-ecparam.patch" + ) + dbus_run() { ( # start isolated dbus session bus