1 |
commit: a2e397fa34ee64ad43c6cb3867c0fd7dbbb6496c |
2 |
Author: Salah Coronya <salah.coronya <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Oct 8 03:42:55 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 12 09:05:57 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2e397fa |
7 |
|
8 |
app-crypt/swtpm: Remove old |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
11 |
Signed-off-by: Salah Coronya <salah.coronya <AT> gmail.com> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/17106 |
13 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
14 |
|
15 |
app-crypt/swtpm/Manifest | 1 - |
16 |
...xplicitly-link-libswtpm_libtpms-with-lcry.patch | 49 ------------- |
17 |
...se-AC_COMPILE_IFELSE-to-check-for-unused-.patch | 56 --------------- |
18 |
.../files/swtpm-disable-test-dependencies.patch | 36 ---------- |
19 |
app-crypt/swtpm/files/swtpm-fix-localca-path.patch | 29 -------- |
20 |
app-crypt/swtpm/swtpm-0.3.2.ebuild | 82 ---------------------- |
21 |
6 files changed, 253 deletions(-) |
22 |
|
23 |
diff --git a/app-crypt/swtpm/Manifest b/app-crypt/swtpm/Manifest |
24 |
index d8b82e32ecb..3a8b2fa15a3 100644 |
25 |
--- a/app-crypt/swtpm/Manifest |
26 |
+++ b/app-crypt/swtpm/Manifest |
27 |
@@ -1,2 +1 @@ |
28 |
-DIST swtpm-0.3.2.tar.gz 308843 BLAKE2B 501c600e36a437fc99f662f1c217169cab15b0d4ec4a4551a29dd83541c9718e182c7eb13a43e541da453fc28c48232354b617525e32d9721e697744eaa5a17a SHA512 5da668cd8091f0db70bec52cd8d26bacf7b18e4c27c83c1cba25e59c69bb2ba7a1d011d9bf4bafa44e1a49065538445eb56683806be6f1875cba383f8edb6a4f |
29 |
DIST swtpm-0.5.0.tar.gz 309011 BLAKE2B 3977acef1e68adca82ed5b51adb5f8787f6eb874ee16768b5b4bbbb13b043f8a39f534b2aa99ef92fb1608f0c4c805b51bb8fbc83297b71afcec2d99faff03d9 SHA512 ba7dafc9a9ddd28252615028a45fe3e68efd12df948c1e8ec938caabb840406a7a1935e1e4a6e1b6b8848bee08450673138dc5a0d63f0447f5e0e07350e4aed7 |
30 |
|
31 |
diff --git a/app-crypt/swtpm/files/swtpm-build-sys-Explicitly-link-libswtpm_libtpms-with-lcry.patch b/app-crypt/swtpm/files/swtpm-build-sys-Explicitly-link-libswtpm_libtpms-with-lcry.patch |
32 |
deleted file mode 100644 |
33 |
index d4ad9cda0c2..00000000000 |
34 |
--- a/app-crypt/swtpm/files/swtpm-build-sys-Explicitly-link-libswtpm_libtpms-with-lcry.patch |
35 |
+++ /dev/null |
36 |
@@ -1,49 +0,0 @@ |
37 |
-From d9bc718871810d18c70ba9d4e9ee23071bd6db36 Mon Sep 17 00:00:00 2001 |
38 |
-From: Stefan Berger <stefanb@××××××××××××××.com> |
39 |
-Date: Tue, 21 Jul 2020 18:39:07 -0400 |
40 |
-Subject: [PATCH 2/2] build-sys: Explicitly link libswtpm_libtpms with -lcrypto |
41 |
- (Gentoo) |
42 |
- |
43 |
-This patch fixes the following linker issue reported for Gentoo in |
44 |
-issue #280. |
45 |
- |
46 |
-ld.lld: error: /var/tmp/portage/app-crypt/swtpm-0.3.1-r1/work/swtpm-0.3.1/src/swtpm/.libs/libswtpm_libtpms.so: undefined reference to EVP_sha512 |
47 |
-ld.lld: error: /var/tmp/portage/app-crypt/swtpm-0.3.1-r1/work/swtpm-0.3.1/src/swtpm/.libs/libswtpm_libtpms.so: undefined reference to PKCS5_PBKDF2_HMAC |
48 |
-ld.lld: error: /var/tmp/portage/app-crypt/swtpm-0.3.1-r1/work/swtpm-0.3.1/src/swtpm/.libs/libswtpm_libtpms.so: undefined reference to SHA512 |
49 |
- |
50 |
-Signed-off-by: Stefan Berger <stefanb@×××××××××.com> |
51 |
---- |
52 |
- configure.ac | 2 ++ |
53 |
- src/swtpm/Makefile.am | 3 ++- |
54 |
- 2 files changed, 4 insertions(+), 1 deletion(-) |
55 |
- |
56 |
-diff --git a/configure.ac b/configure.ac |
57 |
-index 56d3f09..7aaa201 100644 |
58 |
---- a/configure.ac |
59 |
-+++ b/configure.ac |
60 |
-@@ -150,6 +150,8 @@ openssl) |
61 |
- AC_CHECK_HEADERS([openssl/aes.h],[], |
62 |
- AC_MSG_ERROR(Is openssl-devel/libssl-dev installed?)) |
63 |
- AC_MSG_RESULT([Building with openssl crypto library]) |
64 |
-+ LIBCRYPTO_LIBS=$(pkg-config --libs libcrypto) |
65 |
-+ AC_SUBST([LIBCRYPTO_LIBS]) |
66 |
- ;; |
67 |
- esac |
68 |
- |
69 |
-diff --git a/src/swtpm/Makefile.am b/src/swtpm/Makefile.am |
70 |
-index dd2a63a..b5f15e3 100644 |
71 |
---- a/src/swtpm/Makefile.am |
72 |
-+++ b/src/swtpm/Makefile.am |
73 |
-@@ -69,7 +69,8 @@ libswtpm_libtpms_la_LIBADD = \ |
74 |
- $(LIBTPMS_LIBS) \ |
75 |
- $(GLIB_LIBS) \ |
76 |
- $(LIBRT_LIBS) \ |
77 |
-- $(LIBSECCOMP_LIBS) |
78 |
-+ $(LIBSECCOMP_LIBS) \ |
79 |
-+ $(LIBCRYPTO_LIBS) |
80 |
- |
81 |
- bin_PROGRAMS = swtpm |
82 |
- if WITH_CUSE |
83 |
--- |
84 |
-2.26.2 |
85 |
- |
86 |
|
87 |
diff --git a/app-crypt/swtpm/files/swtpm-build-sys-Use-AC_COMPILE_IFELSE-to-check-for-unused-.patch b/app-crypt/swtpm/files/swtpm-build-sys-Use-AC_COMPILE_IFELSE-to-check-for-unused-.patch |
88 |
deleted file mode 100644 |
89 |
index 58219970805..00000000000 |
90 |
--- a/app-crypt/swtpm/files/swtpm-build-sys-Use-AC_COMPILE_IFELSE-to-check-for-unused-.patch |
91 |
+++ /dev/null |
92 |
@@ -1,56 +0,0 @@ |
93 |
-From b6d16129a525f572ef37d20ba1cd70d59ca4f079 Mon Sep 17 00:00:00 2001 |
94 |
-From: Stefan Berger <stefanb@××××××××××××××.com> |
95 |
-Date: Tue, 21 Jul 2020 17:38:10 -0400 |
96 |
-Subject: [PATCH 1/2] build-sys: Use AC_COMPILE_IFELSE to check for unused |
97 |
- linker flags (clang) |
98 |
- |
99 |
-This patch fixes a clang issue report in issue #280. |
100 |
- |
101 |
-clang does not use ld, so we cannot grep for support of certain linker |
102 |
-flags but have to test-compile. |
103 |
- |
104 |
-Signed-off-by: Stefan Berger <stefanb@×××××××××.com> |
105 |
---- |
106 |
- configure.ac | 26 +++++++++++++++++++------- |
107 |
- 1 file changed, 19 insertions(+), 7 deletions(-) |
108 |
- |
109 |
-diff --git a/configure.ac b/configure.ac |
110 |
-index b4d4258..56d3f09 100644 |
111 |
---- a/configure.ac |
112 |
-+++ b/configure.ac |
113 |
-@@ -357,13 +357,25 @@ if test "x$enable_hardening" != "xno"; then |
114 |
- if test -z "$TMP1" && test -n "$TPM2"; then |
115 |
- HARDENING_CFLAGS="$HARDENING_CFLAGS -D_FORTIFY_SOURCE=2 " |
116 |
- fi |
117 |
-- dnl Check ld for 'relro' and 'now' |
118 |
-- if $LD --help 2>&1 | $GREP '\-z relro ' > /dev/null; then |
119 |
-- HARDENING_CFLAGS="$HARDENING_CFLAGS -Wl,-z,relro " |
120 |
-- fi |
121 |
-- if $LD --help 2>&1 | $GREP '\-z now ' > /dev/null; then |
122 |
-- HARDENING_CFLAGS="$HARDENING_CFLAGS -Wl,-z,now " |
123 |
-- fi |
124 |
-+ dnl Check linker for 'relro' and 'now' |
125 |
-+ save_CFLAGS="$CFLAGS" |
126 |
-+ CFLAGS="-Wl,-z,relro -Werror" |
127 |
-+ AC_MSG_CHECKING([whether linker supports -Wl,-z,relro]) |
128 |
-+ AC_COMPILE_IFELSE( |
129 |
-+ [AC_LANG_SOURCE([[int main() { return 0; }]])], |
130 |
-+ [HARDENING_CFLAGS="$HARDENING_CFLAGS -Wl,-z,relro" |
131 |
-+ AC_MSG_RESULT(yes)], |
132 |
-+ [AC_MSG_RESULT(no)] |
133 |
-+ ) |
134 |
-+ CFLAGS="-Wl,-z,now -Werror" |
135 |
-+ AC_MSG_CHECKING([whether linker supports -Wl,-z,now]) |
136 |
-+ AC_COMPILE_IFELSE( |
137 |
-+ [AC_LANG_SOURCE([[int main() { return 0; }]])], |
138 |
-+ [HARDENING_CFLAGS="$HARDENING_CFLAGS -Wl,-z,now" |
139 |
-+ AC_MSG_RESULT(yes)], |
140 |
-+ [AC_MSG_RESULT(no)] |
141 |
-+ ) |
142 |
-+ CFLAGS="$save_CFLAGS" |
143 |
- AC_SUBST([HARDENING_CFLAGS]) |
144 |
- fi |
145 |
- |
146 |
--- |
147 |
-2.26.2 |
148 |
- |
149 |
|
150 |
diff --git a/app-crypt/swtpm/files/swtpm-disable-test-dependencies.patch b/app-crypt/swtpm/files/swtpm-disable-test-dependencies.patch |
151 |
deleted file mode 100644 |
152 |
index ff253667663..00000000000 |
153 |
--- a/app-crypt/swtpm/files/swtpm-disable-test-dependencies.patch |
154 |
+++ /dev/null |
155 |
@@ -1,36 +0,0 @@ |
156 |
-diff --git a/Makefile.am b/Makefile.am |
157 |
-index 47b091a..61192bf 100644 |
158 |
---- a/Makefile.am |
159 |
-+++ b/Makefile.am |
160 |
-@@ -9,9 +9,7 @@ SUBDIRS = \ |
161 |
- include \ |
162 |
- man \ |
163 |
- samples \ |
164 |
-- src \ |
165 |
-- tests |
166 |
-- |
167 |
-+ src |
168 |
- ACLOCAL_AMFLAGS = -I m4 |
169 |
- |
170 |
- EXTRA_DIST = \ |
171 |
-diff --git a/configure.ac b/configure.ac |
172 |
-index c7b4e98..8e6445b 100644 |
173 |
---- a/configure.ac |
174 |
-+++ b/configure.ac |
175 |
-@@ -330,16 +330,6 @@ if test "x$GAWK" = "x"; then |
176 |
- AC_MSG_ERROR([gawk is required: gawk package]) |
177 |
- fi |
178 |
- |
179 |
--AC_PATH_PROG([SOCAT], socat) |
180 |
--if test "x$SOCAT" = "x"; then |
181 |
-- AC_MSG_ERROR([socat is required: socat package]) |
182 |
--fi |
183 |
-- |
184 |
--AC_PATH_PROG([PYTHON], python3) |
185 |
--if test "x$PYTHON" = "x"; then |
186 |
-- AC_MSG_ERROR([python3 is required]) |
187 |
--fi |
188 |
-- |
189 |
- AC_ARG_ENABLE([hardening], |
190 |
- AS_HELP_STRING([--disable-hardening], [Disable hardening flags])) |
191 |
- |
192 |
|
193 |
diff --git a/app-crypt/swtpm/files/swtpm-fix-localca-path.patch b/app-crypt/swtpm/files/swtpm-fix-localca-path.patch |
194 |
deleted file mode 100644 |
195 |
index c83758da563..00000000000 |
196 |
--- a/app-crypt/swtpm/files/swtpm-fix-localca-path.patch |
197 |
+++ /dev/null |
198 |
@@ -1,29 +0,0 @@ |
199 |
-diff --git a/samples/Makefile.am b/samples/Makefile.am |
200 |
-index 4558d66..6fc6d77 100644 |
201 |
---- a/samples/Makefile.am |
202 |
-+++ b/samples/Makefile.am |
203 |
-@@ -16,9 +16,9 @@ samplessysconf_DATA = \ |
204 |
- swtpm-localca.options |
205 |
- |
206 |
- install-data-local: |
207 |
-- $(MKDIR_P) $(DESTDIR)$(localstatedir)/lib/swtpm-localca |
208 |
-+ $(MKDIR_P) $(DESTDIR)$(localstatedir)/swtpm-localca |
209 |
- if test -z $(DESTDIR); then \ |
210 |
-- chown @TSS_USER@:@TSS_GROUP@ $(DESTDIR)$(localstatedir)/lib/swtpm-localca || true; \ |
211 |
-+ chown @TSS_USER@:@TSS_GROUP@ $(DESTDIR)$(localstatedir)/swtpm-localca || true; \ |
212 |
- fi |
213 |
- |
214 |
- EXTRA_DIST= \ |
215 |
-diff --git a/samples/swtpm-localca.conf.in b/samples/swtpm-localca.conf.in |
216 |
-index 1f0b48d..63f1fed 100644 |
217 |
---- a/samples/swtpm-localca.conf.in |
218 |
-+++ b/samples/swtpm-localca.conf.in |
219 |
-@@ -1,4 +1,4 @@ |
220 |
--statedir = @LOCALSTATEDIR@/lib/swtpm-localca |
221 |
--signingkey = @LOCALSTATEDIR@/lib/swtpm-localca/signkey.pem |
222 |
--issuercert = @LOCALSTATEDIR@/lib/swtpm-localca/issuercert.pem |
223 |
--certserial = @LOCALSTATEDIR@/lib/swtpm-localca/certserial |
224 |
-+statedir = @LOCALSTATEDIR@/swtpm-localca |
225 |
-+signingkey = @LOCALSTATEDIR@/swtpm-localca/signkey.pem |
226 |
-+issuercert = @LOCALSTATEDIR@/swtpm-localca/issuercert.pem |
227 |
-+certserial = @LOCALSTATEDIR@/swtpm-localca/certserial |
228 |
|
229 |
diff --git a/app-crypt/swtpm/swtpm-0.3.2.ebuild b/app-crypt/swtpm/swtpm-0.3.2.ebuild |
230 |
deleted file mode 100644 |
231 |
index 00ff234d61a..00000000000 |
232 |
--- a/app-crypt/swtpm/swtpm-0.3.2.ebuild |
233 |
+++ /dev/null |
234 |
@@ -1,82 +0,0 @@ |
235 |
-# Copyright 1999-2020 Gentoo Authors |
236 |
-# Distributed under the terms of the GNU General Public License v2 |
237 |
- |
238 |
-EAPI=7 |
239 |
- |
240 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
241 |
- |
242 |
-inherit autotools python-any-r1 |
243 |
- |
244 |
-DESCRIPTION="Libtpms-based TPM emulator" |
245 |
-HOMEPAGE="https://github.com/stefanberger/swtpm" |
246 |
-SRC_URI="https://github.com/stefanberger/swtpm/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
247 |
- |
248 |
-LICENSE="BSD" |
249 |
-SLOT="0" |
250 |
-KEYWORDS="~amd64" |
251 |
-IUSE="fuse gnutls libressl seccomp test" |
252 |
- |
253 |
-RESTRICT="!test? ( test )" |
254 |
- |
255 |
-COMMON_DEPEND=" |
256 |
- fuse? ( |
257 |
- dev-libs/glib:2 |
258 |
- sys-fs/fuse:0 |
259 |
- ) |
260 |
- gnutls? ( |
261 |
- dev-libs/libtasn1:= |
262 |
- >=net-libs/gnutls-3.1.0[tools] |
263 |
- ) |
264 |
- !libressl? ( |
265 |
- dev-libs/openssl:0= |
266 |
- dev-libs/libtpms[-libressl] |
267 |
- ) |
268 |
- libressl? ( |
269 |
- dev-libs/libressl:0= |
270 |
- dev-libs/libtpms[libressl] |
271 |
- ) |
272 |
- seccomp? ( sys-libs/libseccomp ) |
273 |
-" |
274 |
- |
275 |
-DEPEND="${COMMON_DEPEND} |
276 |
- test? ( |
277 |
- net-misc/socat |
278 |
- ${PYTHON_DEPS} |
279 |
- ) |
280 |
-" |
281 |
- |
282 |
-RDEPEND="${COMMON_DEPEND} |
283 |
- acct-group/tss |
284 |
- acct-user/tss |
285 |
- app-crypt/tpm-tools |
286 |
- app-crypt/trousers |
287 |
- dev-tcltk/expect" |
288 |
- |
289 |
-PATCHES=( |
290 |
- "${FILESDIR}/${PN}-fix-localca-path.patch" |
291 |
- "${FILESDIR}/${PN}-build-sys-Explicitly-link-libswtpm_libtpms-with-lcry.patch" |
292 |
- "${FILESDIR}/${PN}-build-sys-Use-AC_COMPILE_IFELSE-to-check-for-unused-.patch" |
293 |
- ) |
294 |
- |
295 |
-src_prepare() { |
296 |
- use test || eapply "${FILESDIR}/${PN}-disable-test-dependencies.patch" |
297 |
- default |
298 |
- eautoreconf |
299 |
-} |
300 |
- |
301 |
-src_configure() { |
302 |
- econf \ |
303 |
- --disable-static \ |
304 |
- --with-openssl \ |
305 |
- --without-selinux \ |
306 |
- $(use_with fuse cuse) \ |
307 |
- $(use_with gnutls) \ |
308 |
- $(use_with seccomp) |
309 |
-} |
310 |
- |
311 |
-src_install() { |
312 |
- default |
313 |
- fowners tss:tss /var/lib/swtpm-localca |
314 |
- keepdir /var/lib/swtpm-localca |
315 |
- find "${D}" -name '*.la' -delete || die |
316 |
-} |