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/, app-crypt/tpm2-tss/files/
Date: Thu, 30 May 2019 23:46:42
Message-Id: 1559259966.9a3ca0cd4d6daaff4e90f65c6f484dde5c675ae4.alonbl@gentoo
1 commit: 9a3ca0cd4d6daaff4e90f65c6f484dde5c675ae4
2 Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 30 21:24:44 2019 +0000
4 Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
5 CommitDate: Thu May 30 23:46:06 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a3ca0cd
7
8 app-crypt/tpm2-tss: version bump
9
10 Closes: https://bugs.gentoo.org/show_bug.cgi?id=687034
11 Signed-off-by: Alon Bar-Lev <alonbl <AT> gentoo.org>
12 Package-Manager: Portage-2.3.66, Repoman-2.3.11
13
14 app-crypt/tpm2-tss/Manifest | 2 +-
15 .../tpm2-tss/files/tpm2-tss-2.1.0-build.patch | 88 ----------------------
16 .../tpm2-tss/files/tpm2-tss-2.1.0-tests.patch | 30 --------
17 ...tpm2-tss-2.1.0.ebuild => tpm2-tss-2.2.3.ebuild} | 18 ++---
18 4 files changed, 6 insertions(+), 132 deletions(-)
19
20 diff --git a/app-crypt/tpm2-tss/Manifest b/app-crypt/tpm2-tss/Manifest
21 index 50abb292c49..533d36c8bbe 100644
22 --- a/app-crypt/tpm2-tss/Manifest
23 +++ b/app-crypt/tpm2-tss/Manifest
24 @@ -1 +1 @@
25 -DIST tpm2-tss-2.1.0.tar.gz 922814 BLAKE2B 06baa6b817b99c0955a5190b0f90f8a0c55987eb06feb827cb950b69992ec1623367db488617722712ce9932ad8310c1b743af038ac77508106fb8f6f4409b1c SHA512 2aea80a4cb2be59a87de6eda74a2907a2832aa76c3c208f610172f4c5bd29133b24b0876286c40855a742d6068b8f843e32f6d995b0e51c2d1e0a752b92fff7c
26 +DIST tpm2-tss-2.2.3.tar.gz 912179 BLAKE2B 36b2a462512822dccb3adab605ea9922132f027455a1d2895b6735f6200fe44f08288477c99afd0f6c06b4bff3090104b6412b12ea4a518888cf756fb8ee53c4 SHA512 68087cbf2b7acc33788e90b3825bf2c91faa65cfc04b576790634c88876a8a6930d6943f83b7cf0858e37e5e7307703d0c975b9fc0b0ad1d87f66c74b65bd411
27
28 diff --git a/app-crypt/tpm2-tss/files/tpm2-tss-2.1.0-build.patch b/app-crypt/tpm2-tss/files/tpm2-tss-2.1.0-build.patch
29 deleted file mode 100644
30 index 85f84c38e1f..00000000000
31 --- a/app-crypt/tpm2-tss/files/tpm2-tss-2.1.0-build.patch
32 +++ /dev/null
33 @@ -1,88 +0,0 @@
34 -Next version removes these using --disable-defaultflags
35 -
36 ----
37 -
38 -diff --git a/configure.ac b/configure.ac
39 -index c42b487f..f9118642 100644
40 ---- a/configure.ac
41 -+++ b/configure.ac
42 -@@ -189,19 +189,6 @@ AM_CONDITIONAL([ENABLE_INTEGRATION],[test "x$enable_integration" = "xyes"])
43 -
44 - gl_LD_VERSION_SCRIPT
45 -
46 --AX_ADD_COMPILER_FLAG([-std=c99])
47 --AX_ADD_COMPILER_FLAG([-Wall])
48 --AX_ADD_COMPILER_FLAG([-Wextra])
49 --AX_ADD_COMPILER_FLAG([-Wformat-security])
50 --AX_ADD_COMPILER_FLAG([-Werror])
51 --AX_ADD_COMPILER_FLAG([-fstack-protector-all])
52 --AX_ADD_COMPILER_FLAG([-fpic])
53 --AX_ADD_COMPILER_FLAG([-fPIC])
54 --
55 --AX_ADD_PREPROC_FLAG([-D_DEFAULT_SOURCE])
56 --AX_ADD_PREPROC_FLAG([-D_BSD_SOURCE])
57 --AX_ADD_PREPROC_FLAG([-D_POSIX_SOURCE])
58 --
59 - AC_ARG_WITH([maxloglevel],
60 - [AS_HELP_STRING([--with-maxloglevel={none,error,warning,info,debug,trace}],
61 - [sets the maximum log level (default is trace)])],
62 -@@ -227,20 +214,9 @@ AC_ARG_ENABLE([debug],
63 - [enable_debug=$enableval],
64 - [enable_debug=no])
65 - AS_IF([test "x$enable_debug" = "xyes"], AX_ADD_COMPILER_FLAG([-ggdb3 -Og]))
66 --AS_IF([test "x$enable_debug" = "xno"], [AX_ADD_PREPROC_FLAG([-U_FORTIFY_SOURCE])
67 -- AX_ADD_PREPROC_FLAG([-D_FORTIFY_SOURCE=2])
68 -- AX_ADD_COMPILER_FLAG([-g -O2])])
69 --AX_ADD_LINK_FLAG([-Wl,--no-undefined])
70 --AX_ADD_LINK_FLAG([-Wl,-z,noexecstack])
71 --AX_ADD_LINK_FLAG([-Wl,-z,now])
72 --AX_ADD_LINK_FLAG([-Wl,-z,relro])
73 -
74 - AC_SUBST([PATH])
75 -
76 --# work around GCC bug #53119
77 --# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119
78 --AX_ADD_COMPILER_FLAG([-Wno-missing-braces])
79 --
80 - dnl --------- Physical TPM device -----------------------
81 -
82 - AC_ARG_WITH([ptpm],
83 -From 74037d3c15b9f9d98f9b50ca4f1c1a99d239d751 Mon Sep 17 00:00:00 2001
84 -From: Philip Tricca <flihp@××××××.org>
85 -Date: Sun, 4 Nov 2018 16:17:19 -0800
86 -Subject: [PATCH] build: Fix breakage in generated configure script when CFLAGS
87 - is set.
88 -
89 -This fixes a bug introduced in 3980bad87fe18ad9d32914e9d21dba145eba973f.
90 -That patch references the documentation for AC_PROG_CC but it misread
91 -the recommended workaround. The leading colon (aka `:`) in the
92 -documentation is significant.
93 -
94 -The `:` is a shell 'builtin' command that is equivalent to invoking the
95 -'true' command. By placing the conditional substitution of the CFLAGS
96 -after this, the result of the substitution will be ignored and the
97 -script won't fail. Without this the contents of the CFLAGS variable set
98 -in the environment will be interpreted as a command and since they're
99 -not commands the configure script will abort.
100 -
101 -Signed-off-by: Philip Tricca <flihp@××××××.org>
102 ----
103 - configure.ac | 2 +-
104 - 1 file changed, 1 insertion(+), 1 deletion(-)
105 -
106 -diff --git a/configure.ac b/configure.ac
107 -index c4e4592e..f88fe38b 100644
108 ---- a/configure.ac
109 -+++ b/configure.ac
110 -@@ -31,7 +31,7 @@ AC_INIT([tpm2-tss],
111 - [],
112 - [https://github.com/tpm2-software/tpm2-tss])
113 - AC_CONFIG_MACRO_DIR([m4])
114 --${CFLAGS=""}
115 -+: ${CFLAGS=""}
116 - AC_PROG_CC
117 - LT_INIT()
118 - AM_INIT_AUTOMAKE([foreign
119 ---
120 -2.19.2
121 -
122
123 diff --git a/app-crypt/tpm2-tss/files/tpm2-tss-2.1.0-tests.patch b/app-crypt/tpm2-tss/files/tpm2-tss-2.1.0-tests.patch
124 deleted file mode 100644
125 index d537c40e1a9..00000000000
126 --- a/app-crypt/tpm2-tss/files/tpm2-tss-2.1.0-tests.patch
127 +++ /dev/null
128 @@ -1,30 +0,0 @@
129 -From 1ea85a32c0ae20a104badcec807b72ef458d356d Mon Sep 17 00:00:00 2001
130 -From: Andreas Fuchs <andreas.fuchs@××××××××××××××.de>
131 -Date: Tue, 25 Sep 2018 09:35:33 +0200
132 -Subject: [PATCH] ESYS: Fix crypto_ossl return code
133 -
134 -Fix returncode and thus test of interal hmac_finish function.
135 -
136 -Fixes: #1157
137 -
138 -Signed-off-by: Andreas Fuchs <andreas.fuchs@××××××××××××××.de>
139 ----
140 - src/tss2-esys/esys_crypto_ossl.c | 2 +-
141 - 1 file changed, 1 insertion(+), 1 deletion(-)
142 -
143 -diff --git a/src/tss2-esys/esys_crypto_ossl.c b/src/tss2-esys/esys_crypto_ossl.c
144 -index 43088f4a..91871de1 100644
145 ---- a/src/tss2-esys/esys_crypto_ossl.c
146 -+++ b/src/tss2-esys/esys_crypto_ossl.c
147 -@@ -448,7 +448,7 @@ iesys_cryptossl_hmac_finish(IESYS_CRYPTO_CONTEXT_BLOB ** context,
148 - IESYS_CRYPTOSSL_CONTEXT *mycontext =
149 - (IESYS_CRYPTOSSL_CONTEXT *) * context;
150 - if (mycontext->type != IESYS_CRYPTOSSL_TYPE_HMAC) {
151 -- return_error(TSS2_ESYS_RC_BAD_VALUE, "bad context");
152 -+ return_error(TSS2_ESYS_RC_BAD_REFERENCE, "bad context");
153 - }
154 -
155 - if (*size < mycontext->hmac.hmac_len) {
156 ---
157 -2.19.2
158 -
159
160 diff --git a/app-crypt/tpm2-tss/tpm2-tss-2.1.0.ebuild b/app-crypt/tpm2-tss/tpm2-tss-2.2.3.ebuild
161 similarity index 81%
162 rename from app-crypt/tpm2-tss/tpm2-tss-2.1.0.ebuild
163 rename to app-crypt/tpm2-tss/tpm2-tss-2.2.3.ebuild
164 index 07b4fb47e67..8496a3630e8 100644
165 --- a/app-crypt/tpm2-tss/tpm2-tss-2.1.0.ebuild
166 +++ b/app-crypt/tpm2-tss/tpm2-tss-2.2.3.ebuild
167 @@ -3,7 +3,7 @@
168
169 EAPI=7
170
171 -inherit autotools linux-info udev
172 +inherit linux-info udev user
173
174 DESCRIPTION="TCG Trusted Platform Module 2.0 Software Stack"
175 HOMEPAGE="https://github.com/tpm2-software/tpm2-tss"
176 @@ -21,36 +21,28 @@ REQUIRED_USE="
177
178 RDEPEND="gcrypt? ( dev-libs/libgcrypt:0= )
179 openssl? ( dev-libs/openssl:0= )"
180 -DEPEND="${DEPEND}
181 +DEPEND="${RDEPEND}
182 test? ( dev-util/cmocka )"
183 BDEPEND="virtual/pkgconfig
184 - ~sys-devel/autoconf-archive-2018.03.13
185 doc? ( app-doc/doxygen )"
186
187 -PATCHES=(
188 - "${FILESDIR}/${P}-build.patch"
189 - "${FILESDIR}/${P}-tests.patch"
190 -)
191 -
192 pkg_setup() {
193 local CONFIG_CHECK=" \
194 ~TCG_TPM
195 "
196 linux-info_pkg_setup
197 kernel_is ge 4 12 0 || ewarn "At least kernel 4.12.0 is required"
198 -}
199
200 -src_prepare() {
201 - default
202 - eautoreconf
203 + enewgroup tss
204 + enewuser tss -1 -1 /var/lib/tpm tss
205 }
206
207 src_configure() {
208 - # next version add --disable-defaultflags
209 econf \
210 $(use_enable doc doxygen-doc) \
211 $(use_enable static-libs static) \
212 $(use_enable test unit) \
213 + --disable-defaultflags \
214 --with-crypto="$(usex gcrypt gcrypt ossl)" \
215 --with-udevrulesdir="$(get_udevdir)/rules.d" \
216 --with-udevrulesprefix=60-