Gentoo Archives: gentoo-commits

From: Alon Bar-Lev <alonbl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/tpm2-tss-engine/, app-crypt/tpm2-tss-engine/files/
Date: Fri, 31 May 2019 17:44:10
Message-Id: 1559324624.068c8bdae6d0baa32ccd8f788b4a2bef2be8f74b.alonbl@gentoo
1 commit: 068c8bdae6d0baa32ccd8f788b4a2bef2be8f74b
2 Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 31 17:43:16 2019 +0000
4 Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
5 CommitDate: Fri May 31 17:43:44 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=068c8bda
7
8 app-crypt/tpm2-tss-engine: fix libressl issue
9
10 Closes: https://bugs.gentoo.org/show_bug.cgi?id=687084
11 Thanks: Toralf Förster
12 Signed-off-by: Alon Bar-Lev <alonbl <AT> gentoo.org>
13 Package-Manager: Portage-2.3.66, Repoman-2.3.11
14
15 .../files/tpm2-tss-engine-1.0.0-libressl.patch | 35 ++++++++++++++++++++++
16 .../tpm2-tss-engine/tpm2-tss-engine-1.0.0.ebuild | 1 +
17 2 files changed, 36 insertions(+)
18
19 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
20 new file mode 100644
21 index 00000000000..66bb68e7694
22 --- /dev/null
23 +++ b/app-crypt/tpm2-tss-engine/files/tpm2-tss-engine-1.0.0-libressl.patch
24 @@ -0,0 +1,35 @@
25 +From deb2b6697babf99aaf3f64b342ce414b48638ea3 Mon Sep 17 00:00:00 2001
26 +From: Alon Bar-Lev <alon.barlev@×××××.com>
27 +Date: Fri, 31 May 2019 20:36:47 +0300
28 +Subject: [PATCH] build: libressl fix incomplete type
29 +MIME-Version: 1.0
30 +Content-Type: text/plain; charset=UTF-8
31 +Content-Transfer-Encoding: 8bit
32 +
33 +src/tpm2-tss-engine-rand.c:90:1: error: variable ‘rand_methods’ has initializer but incomplete type
34 + 90 | static RAND_METHOD rand_methods = {
35 + | ^~~~~~
36 +src/tpm2-tss-engine-rand.c:91:5: warning: excess elements in struct initializer
37 +
38 +Signed-off-by: Alon Bar-Lev <alon.barlev@×××××.com>
39 +---
40 + src/tpm2-tss-engine-rand.c | 1 +
41 + 1 file changed, 1 insertion(+)
42 +
43 +https://github.com/tpm2-software/tpm2-tss-engine/pull/120
44 +
45 +diff --git a/src/tpm2-tss-engine-rand.c b/src/tpm2-tss-engine-rand.c
46 +index 50d5661..86980a5 100644
47 +--- a/src/tpm2-tss-engine-rand.c
48 ++++ b/src/tpm2-tss-engine-rand.c
49 +@@ -32,6 +32,7 @@
50 + #include <string.h>
51 +
52 + #include <openssl/engine.h>
53 ++#include <openssl/rand.h>
54 +
55 + #include <tss2/tss2_mu.h>
56 + #include <tss2/tss2_esys.h>
57 +--
58 +2.21.0
59 +
60
61 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
62 index ede034153e9..b42ef4ae816 100644
63 --- a/app-crypt/tpm2-tss-engine/tpm2-tss-engine-1.0.0.ebuild
64 +++ b/app-crypt/tpm2-tss-engine/tpm2-tss-engine-1.0.0.ebuild
65 @@ -23,6 +23,7 @@ BDEPEND="virtual/pkgconfig"
66
67 PATCHES=(
68 "${FILESDIR}/${P}-build.patch"
69 + "${FILESDIR}/${P}-libressl.patch"
70 )
71
72 src_prepare() {