diff options
author | 2019-05-31 20:43:16 +0300 | |
---|---|---|
committer | 2019-05-31 20:43:44 +0300 | |
commit | 068c8bdae6d0baa32ccd8f788b4a2bef2be8f74b (patch) | |
tree | 477af34ce06cec57b2ebe38f685ce3c079da8270 /app-crypt/tpm2-tss-engine | |
parent | app-crypt/tpm2-tss-engine: update tpm2-tss dependency (diff) | |
download | gentoo-068c8bdae6d0baa32ccd8f788b4a2bef2be8f74b.tar.gz gentoo-068c8bdae6d0baa32ccd8f788b4a2bef2be8f74b.tar.bz2 gentoo-068c8bdae6d0baa32ccd8f788b4a2bef2be8f74b.zip |
app-crypt/tpm2-tss-engine: fix libressl issue
Closes: https://bugs.gentoo.org/show_bug.cgi?id=687084
Thanks: Toralf Förster
Signed-off-by: Alon Bar-Lev <alonbl@gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11
Diffstat (limited to 'app-crypt/tpm2-tss-engine')
-rw-r--r-- | app-crypt/tpm2-tss-engine/files/tpm2-tss-engine-1.0.0-libressl.patch | 35 | ||||
-rw-r--r-- | app-crypt/tpm2-tss-engine/tpm2-tss-engine-1.0.0.ebuild | 1 |
2 files changed, 36 insertions, 0 deletions
diff --git a/app-crypt/tpm2-tss-engine/files/tpm2-tss-engine-1.0.0-libressl.patch b/app-crypt/tpm2-tss-engine/files/tpm2-tss-engine-1.0.0-libressl.patch new file mode 100644 index 000000000000..66bb68e76940 --- /dev/null +++ b/app-crypt/tpm2-tss-engine/files/tpm2-tss-engine-1.0.0-libressl.patch @@ -0,0 +1,35 @@ +From deb2b6697babf99aaf3f64b342ce414b48638ea3 Mon Sep 17 00:00:00 2001 +From: Alon Bar-Lev <alon.barlev@gmail.com> +Date: Fri, 31 May 2019 20:36:47 +0300 +Subject: [PATCH] build: libressl fix incomplete type +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +src/tpm2-tss-engine-rand.c:90:1: error: variable ‘rand_methods’ has initializer but incomplete type + 90 | static RAND_METHOD rand_methods = { + | ^~~~~~ +src/tpm2-tss-engine-rand.c:91:5: warning: excess elements in struct initializer + +Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> +--- + src/tpm2-tss-engine-rand.c | 1 + + 1 file changed, 1 insertion(+) + +https://github.com/tpm2-software/tpm2-tss-engine/pull/120 + +diff --git a/src/tpm2-tss-engine-rand.c b/src/tpm2-tss-engine-rand.c +index 50d5661..86980a5 100644 +--- a/src/tpm2-tss-engine-rand.c ++++ b/src/tpm2-tss-engine-rand.c +@@ -32,6 +32,7 @@ + #include <string.h> + + #include <openssl/engine.h> ++#include <openssl/rand.h> + + #include <tss2/tss2_mu.h> + #include <tss2/tss2_esys.h> +-- +2.21.0 + diff --git a/app-crypt/tpm2-tss-engine/tpm2-tss-engine-1.0.0.ebuild b/app-crypt/tpm2-tss-engine/tpm2-tss-engine-1.0.0.ebuild index ede034153e9a..b42ef4ae8168 100644 --- a/app-crypt/tpm2-tss-engine/tpm2-tss-engine-1.0.0.ebuild +++ b/app-crypt/tpm2-tss-engine/tpm2-tss-engine-1.0.0.ebuild @@ -23,6 +23,7 @@ BDEPEND="virtual/pkgconfig" PATCHES=( "${FILESDIR}/${P}-build.patch" + "${FILESDIR}/${P}-libressl.patch" ) src_prepare() { |