Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/tpm2-tools/files/, app-crypt/tpm2-tools/
Date: Mon, 04 Oct 2021 14:24:21
Message-Id: 1633357433.22efe441fa7828eeec91ce9d69a7a2c3062fa67a.ionen@gentoo
1 commit: 22efe441fa7828eeec91ce9d69a7a2c3062fa67a
2 Author: Christopher Byrne <salah.coronya <AT> gmail <DOT> com>
3 AuthorDate: Tue Sep 28 19:54:42 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 4 14:23:53 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22efe441
7
8 app-crypt/tpm2-tools: Remove old
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Christopher Byrne <salah.coronya <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/22434
13 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
14
15 app-crypt/tpm2-tools/Manifest | 1 -
16 .../tpm2-tools-5.1.1-fix-tpm-checkquote.patch | 34 ----------
17 app-crypt/tpm2-tools/tpm2-tools-5.1.1-r2.ebuild | 72 ----------------------
18 3 files changed, 107 deletions(-)
19
20 diff --git a/app-crypt/tpm2-tools/Manifest b/app-crypt/tpm2-tools/Manifest
21 index 158898da959..d710f2982f6 100644
22 --- a/app-crypt/tpm2-tools/Manifest
23 +++ b/app-crypt/tpm2-tools/Manifest
24 @@ -1,3 +1,2 @@
25 DIST tpm2-tools-4.3.2.tar.gz 887708 BLAKE2B ee6fe3d0566138d6289d1a91252ccb106d36ff80d55f2d6f9ee30c8e16338d706e80085ac5f4f56a79bcb339e5dcb240efcf71d4003bcffdad366f3cd7a1165b SHA512 1aa47c62c3d2a83195ec649e50c0be2c8be39f926806d8d7cb96edc499c385d527661813e02024e98f83ae9ebcb22d7dadc507ddfab48be9bbe428d9439d7ee1
26 -DIST tpm2-tools-5.1.1.tar.gz 1044427 BLAKE2B 885ff61ad971c95d067bf8f9339de289f082f3103d1c382f45ac3ffbd4d5effc343ddc3c2c74b97b9d31f3f823d264991d1726c1f9c21d5c9b82ac1cdf714d3f SHA512 4e094dcffb66103773d85e866ab9ba8db5d0f205ff9658e08fe14e8e41250570a7f7274b4048934adf256ea41650fa498fc3d6da2786adc241a4bf2e8f7bf78e
27 DIST tpm2-tools-5.2.tar.gz 1072078 BLAKE2B 27d035e0f44029db57477a1fd10e1cee9b470ad54411297985cb7f33ba7bbb7a94ac392815e32287d69abf928dce0c361703542b812ae88b208ddca645bb3be2 SHA512 9fb5dc298717a8a57c89d286e3590370a096c81b14d2d8d4eb5fca140d66148a8e24727ee04fb02057bbfcc3ede50e93ba0ef22396888c9df48bf6f42a5d6e6b
28
29 diff --git a/app-crypt/tpm2-tools/files/tpm2-tools-5.1.1-fix-tpm-checkquote.patch b/app-crypt/tpm2-tools/files/tpm2-tools-5.1.1-fix-tpm-checkquote.patch
30 deleted file mode 100644
31 index 73fb0e3f487..00000000000
32 --- a/app-crypt/tpm2-tools/files/tpm2-tools-5.1.1-fix-tpm-checkquote.patch
33 +++ /dev/null
34 @@ -1,34 +0,0 @@
35 -From 3d7edb1c70cba6c34c71c9b856c07b8adcebb15c Mon Sep 17 00:00:00 2001
36 -From: Alberto Planas <aplanas@××××.com>
37 -Date: Thu, 17 Jun 2021 11:07:25 +0200
38 -Subject: [PATCH] tpm2_checkquote: fix uninitialized variable
39 -
40 -The variable `temp_pcrs` is uninitialized, and later partially
41 -uninitialized when reading the selection data from file.
42 -
43 -When activating lto optimizations, this bug presents itself showing an
44 -error during the read of the quote:
45 -
46 -ERROR: Malformed PCR file, pcr count cannot be greater than 32, got: ...
47 -
48 -Fixes: #2767
49 -
50 -Co-authored-by: Martin Liska <marxin.liska@×××××.com>
51 -Signed-off-by: Alberto Planas <aplanas@××××.com>
52 ----
53 - tools/misc/tpm2_checkquote.c | 2 +-
54 - 1 file changed, 1 insertion(+), 1 deletion(-)
55 -
56 -diff --git a/tools/misc/tpm2_checkquote.c b/tools/misc/tpm2_checkquote.c
57 -index 531508579..8d780f111 100644
58 ---- a/tools/misc/tpm2_checkquote.c
59 -+++ b/tools/misc/tpm2_checkquote.c
60 -@@ -376,7 +376,7 @@ static tool_rc init(void) {
61 - TPM2B_ATTEST *msg = NULL;
62 - TPML_PCR_SELECTION pcr_select;
63 - tpm2_pcrs *pcrs;
64 -- tpm2_pcrs temp_pcrs;
65 -+ tpm2_pcrs temp_pcrs = {};
66 - tool_rc return_value = tool_rc_general_error;
67 -
68 - msg = message_from_file(ctx.msg_file_path);
69
70 diff --git a/app-crypt/tpm2-tools/tpm2-tools-5.1.1-r2.ebuild b/app-crypt/tpm2-tools/tpm2-tools-5.1.1-r2.ebuild
71 deleted file mode 100644
72 index 6ede7d5e055..00000000000
73 --- a/app-crypt/tpm2-tools/tpm2-tools-5.1.1-r2.ebuild
74 +++ /dev/null
75 @@ -1,72 +0,0 @@
76 -# Copyright 1999-2021 Gentoo Authors
77 -# Distributed under the terms of the GNU General Public License v2
78 -
79 -EAPI=7
80 -
81 -PYTHON_COMPAT=( python3_{8,9} )
82 -inherit autotools bash-completion-r1 python-single-r1
83 -
84 -DESCRIPTION="Tools for the TPM 2.0 TSS"
85 -HOMEPAGE="https://github.com/tpm2-software/tpm2-tools"
86 -SRC_URI="https://github.com/tpm2-software/${PN}/releases/download/${PV}/${P}.tar.gz"
87 -
88 -LICENSE="BSD"
89 -SLOT="0"
90 -KEYWORDS="~amd64 ~x86"
91 -IUSE="+fapi test"
92 -
93 -RDEPEND=">=app-crypt/tpm2-tss-3.0.1[fapi?]
94 - dev-libs/openssl:=
95 - net-misc/curl
96 - sys-libs/efivar:=
97 - ${PYTHON_DEPS}"
98 -DEPEND="${RDEPEND}
99 - test? (
100 - app-crypt/swtpm
101 - app-crypt/tpm2-abrmd
102 - app-editors/vim-core
103 - dev-tcltk/expect
104 - dev-util/cmocka
105 - dev-python/pyyaml
106 - )"
107 -BDEPEND="virtual/pkgconfig
108 - sys-devel/autoconf-archive"
109 -
110 -RESTRICT="!test? ( test )"
111 -REQUIRED_USE=" ${PYTHON_REQUIRED_USE} "
112 -
113 -# One of the tests fails without this patch. See
114 -# https://github.com/tpm2-software/tpm2-tools/issues/2767
115 -PATCHES=(
116 - "${FILESDIR}/${PN}-5.1.1-fix-tpm-checkquote.patch"
117 - "${FILESDIR}/${PN}-5.1.1-no-efivar-automagic.patch"
118 -)
119 -
120 -src_prepare() {
121 - sed -i \
122 - "s/m4_esyscmd_s(\[git describe --tags --always --dirty\])/${PV}/" \
123 - "${S}/configure.ac" || die
124 - "${S}/scripts/utils/man_to_bashcompletion.sh"
125 - default
126 - eautoreconf
127 -}
128 -
129 -src_configure() {
130 - econf \
131 - $(use_enable fapi) \
132 - $(use_enable test unit) \
133 - --with-bashcompdir=$(get_bashcompdir) \
134 - --enable-hardening
135 -}
136 -
137 -src_install() {
138 - default
139 -
140 - mv "${D}/$(get_bashcompdir)/tpm2_completion.bash" \
141 - "${D}/$(get_bashcompdir)/tpm2" || die
142 - for B in "${D}"/usr/bin/tpm2_*
143 - do
144 - TPM2_UTILS="${TPM2_UTILS} $(basename ${B})"
145 - done
146 - bashcomp_alias tpm2 ${TPM2_UTILS}
147 -}