public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:master commit in: app-crypt/tpm2-openssl/files/, app-crypt/tpm2-openssl/
@ 2023-03-16  8:41 Florian Schmaus
  0 siblings, 0 replies; only message in thread
From: Florian Schmaus @ 2023-03-16  8:41 UTC (permalink / raw
  To: gentoo-commits

commit:     111cabeae34e03a8d729ef287adc27ecb3d3b87f
Author:     Christopher Byrne <salah.coronya <AT> gmail <DOT> com>
AuthorDate: Tue Mar 14 23:28:52 2023 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
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.gotthard@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.coronya@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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-16  8:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-16  8:41 [gentoo-commits] repo/proj/guru:master commit in: app-crypt/tpm2-openssl/files/, app-crypt/tpm2-openssl/ Florian Schmaus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox