1 |
commit: 55d5d568d0ef0c2a5d4f136906104d2654afb0c0 |
2 |
Author: Salah Coronya <salah.coronya <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Feb 20 02:06:07 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 26 16:17:25 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55d5d568 |
7 |
|
8 |
app-crypt/tpm2-tss-engine: Remove libressl support |
9 |
|
10 |
Libressl dropped all engine support in 2.3.0 . |
11 |
|
12 |
Closes: https://bugs.gentoo.org/692558 |
13 |
Closes: https://bugs.gentoo.org/687132 |
14 |
Package-Manager: Portage-2.3.79, Repoman-2.3.16 |
15 |
Signed-off-by: Salah Coronya <salah.coronya <AT> gmail.com> |
16 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
17 |
|
18 |
...ine-1.0.1-build-add-disable-defaultflags.patch} | 19 +++++------- |
19 |
.../files/tpm2-tss-engine-1.0.1-libressl.patch | 35 ---------------------- |
20 |
.../tpm2-tss-engine/tpm2-tss-engine-1.0.1.ebuild | 8 ++--- |
21 |
3 files changed, 11 insertions(+), 51 deletions(-) |
22 |
|
23 |
diff --git a/app-crypt/tpm2-tss-engine/files/tpm2-tss-engine-1.0.1-build.patch b/app-crypt/tpm2-tss-engine/files/tpm2-tss-engine-1.0.1-build-add-disable-defaultflags.patch |
24 |
similarity index 78% |
25 |
rename from app-crypt/tpm2-tss-engine/files/tpm2-tss-engine-1.0.1-build.patch |
26 |
rename to app-crypt/tpm2-tss-engine/files/tpm2-tss-engine-1.0.1-build-add-disable-defaultflags.patch |
27 |
index aa2b2e4e4fd..7556a80600d 100644 |
28 |
--- a/app-crypt/tpm2-tss-engine/files/tpm2-tss-engine-1.0.1-build.patch |
29 |
+++ b/app-crypt/tpm2-tss-engine/files/tpm2-tss-engine-1.0.1-build-add-disable-defaultflags.patch |
30 |
@@ -1,22 +1,20 @@ |
31 |
-From 92aee12fbd246461a22925dd054c4d6394c4fdf5 Mon Sep 17 00:00:00 2001 |
32 |
+From 56cc4110e1ef0667ff248a689c50803c2ec4312b Mon Sep 17 00:00:00 2001 |
33 |
From: Alon Bar-Lev <alon.barlev@×××××.com> |
34 |
Date: Fri, 31 May 2019 02:30:37 +0300 |
35 |
-Subject: [PATCH] build: add --disable-defaultflags |
36 |
+Subject: [PATCH 2/3] build: add --disable-defaultflags |
37 |
|
38 |
Align with tpm2-tss to allow downstream to provide flags. |
39 |
|
40 |
Signed-off-by: Alon Bar-Lev <alon.barlev@×××××.com> |
41 |
--- |
42 |
- configure.ac | 42 +++++++++++++++++++++++++----------------- |
43 |
- 1 file changed, 25 insertions(+), 17 deletions(-) |
44 |
- |
45 |
-https://github.com/tpm2-software/tpm2-tss-engine/pull/117 |
46 |
+ configure.ac | 41 ++++++++++++++++++++++++----------------- |
47 |
+ 1 file changed, 24 insertions(+), 17 deletions(-) |
48 |
|
49 |
diff --git a/configure.ac b/configure.ac |
50 |
-index f3a399c..f59cfaf 100644 |
51 |
+index d14c4d7..3ee45c5 100644 |
52 |
--- a/configure.ac |
53 |
+++ b/configure.ac |
54 |
-@@ -80,23 +80,31 @@ AS_IF([test "x$enable_tctienvvar" = xyes], [AC_DEFINE([ENABLE_TCTIENVVAR], [1])] |
55 |
+@@ -84,23 +84,30 @@ AC_ARG_ENABLE([tctienvvar], |
56 |
|
57 |
AC_CONFIG_FILES([Makefile]) |
58 |
|
59 |
@@ -39,8 +37,7 @@ index f3a399c..f59cfaf 100644 |
60 |
-AX_ADD_LINK_FLAG([-Wl,-z,relro]) |
61 |
+AC_ARG_ENABLE([defaultflags], |
62 |
+ [AS_HELP_STRING([--disable-defaultflags], |
63 |
-+ [Disable default preprocessor, compiler, and linker flags.])], |
64 |
-+ [enable_defaultflags=$enableval], |
65 |
++ [Disable default preprocessor, compiler, and linker flags.])],, |
66 |
+ [enable_defaultflags=yes]) |
67 |
+AS_IF([test "x$enable_defaultflags" = "xyes"], |
68 |
+ [ |
69 |
@@ -66,5 +63,5 @@ index f3a399c..f59cfaf 100644 |
70 |
AX_CODE_COVERAGE |
71 |
m4_ifdef([_AX_CODE_COVERAGE_RULES], |
72 |
-- |
73 |
-2.21.0 |
74 |
+2.24.1 |
75 |
|
76 |
|
77 |
diff --git a/app-crypt/tpm2-tss-engine/files/tpm2-tss-engine-1.0.1-libressl.patch b/app-crypt/tpm2-tss-engine/files/tpm2-tss-engine-1.0.1-libressl.patch |
78 |
deleted file mode 100644 |
79 |
index 66bb68e7694..00000000000 |
80 |
--- a/app-crypt/tpm2-tss-engine/files/tpm2-tss-engine-1.0.1-libressl.patch |
81 |
+++ /dev/null |
82 |
@@ -1,35 +0,0 @@ |
83 |
-From deb2b6697babf99aaf3f64b342ce414b48638ea3 Mon Sep 17 00:00:00 2001 |
84 |
-From: Alon Bar-Lev <alon.barlev@×××××.com> |
85 |
-Date: Fri, 31 May 2019 20:36:47 +0300 |
86 |
-Subject: [PATCH] build: libressl fix incomplete type |
87 |
-MIME-Version: 1.0 |
88 |
-Content-Type: text/plain; charset=UTF-8 |
89 |
-Content-Transfer-Encoding: 8bit |
90 |
- |
91 |
-src/tpm2-tss-engine-rand.c:90:1: error: variable ‘rand_methods’ has initializer but incomplete type |
92 |
- 90 | static RAND_METHOD rand_methods = { |
93 |
- | ^~~~~~ |
94 |
-src/tpm2-tss-engine-rand.c:91:5: warning: excess elements in struct initializer |
95 |
- |
96 |
-Signed-off-by: Alon Bar-Lev <alon.barlev@×××××.com> |
97 |
---- |
98 |
- src/tpm2-tss-engine-rand.c | 1 + |
99 |
- 1 file changed, 1 insertion(+) |
100 |
- |
101 |
-https://github.com/tpm2-software/tpm2-tss-engine/pull/120 |
102 |
- |
103 |
-diff --git a/src/tpm2-tss-engine-rand.c b/src/tpm2-tss-engine-rand.c |
104 |
-index 50d5661..86980a5 100644 |
105 |
---- a/src/tpm2-tss-engine-rand.c |
106 |
-+++ b/src/tpm2-tss-engine-rand.c |
107 |
-@@ -32,6 +32,7 @@ |
108 |
- #include <string.h> |
109 |
- |
110 |
- #include <openssl/engine.h> |
111 |
-+#include <openssl/rand.h> |
112 |
- |
113 |
- #include <tss2/tss2_mu.h> |
114 |
- #include <tss2/tss2_esys.h> |
115 |
--- |
116 |
-2.21.0 |
117 |
- |
118 |
|
119 |
diff --git a/app-crypt/tpm2-tss-engine/tpm2-tss-engine-1.0.1.ebuild b/app-crypt/tpm2-tss-engine/tpm2-tss-engine-1.0.1.ebuild |
120 |
index f1b1b5c2ca0..8bdced04657 100644 |
121 |
--- a/app-crypt/tpm2-tss-engine/tpm2-tss-engine-1.0.1.ebuild |
122 |
+++ b/app-crypt/tpm2-tss-engine/tpm2-tss-engine-1.0.1.ebuild |
123 |
@@ -12,19 +12,17 @@ SRC_URI="https://github.com/tpm2-software/${PN}/releases/download/v${PV}/${P}.ta |
124 |
LICENSE="BSD" |
125 |
SLOT="0" |
126 |
KEYWORDS="~amd64" |
127 |
-IUSE="libressl test" |
128 |
+IUSE="test" |
129 |
RESTRICT="!test? ( test )" |
130 |
|
131 |
RDEPEND=">=app-crypt/tpm2-tss-2.2.2:= |
132 |
- !libressl? ( dev-libs/openssl:0= ) |
133 |
- libressl? ( dev-libs/libressl:0= )" |
134 |
+ dev-libs/openssl:0" |
135 |
DEPEND="${RDEPEND} |
136 |
test? ( dev-util/cmocka )" |
137 |
BDEPEND="virtual/pkgconfig" |
138 |
|
139 |
PATCHES=( |
140 |
- "${FILESDIR}/${P}-build.patch" |
141 |
- "${FILESDIR}/${P}-libressl.patch" |
142 |
+ "${FILESDIR}/${P}-build-add-disable-defaultflags.patch" |
143 |
) |
144 |
|
145 |
src_prepare() { |