1 |
commit: 93587254f82cffb914ee9cb4a32dfd9f57e5b323 |
2 |
Author: Christopher Byrne <salah.coronya <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Sep 29 16:21:37 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 6 10:56:18 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93587254 |
7 |
|
8 |
dev-libs/libtpms: Bump to 0.9.0 |
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/22442 |
13 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
14 |
|
15 |
dev-libs/libtpms/Manifest | 1 + |
16 |
.../files/libtpms-0.9.0-Remove-WError.patch | 13 ++++++ |
17 |
dev-libs/libtpms/libtpms-0.9.0.ebuild | 47 ++++++++++++++++++++++ |
18 |
3 files changed, 61 insertions(+) |
19 |
|
20 |
diff --git a/dev-libs/libtpms/Manifest b/dev-libs/libtpms/Manifest |
21 |
index 356d8760a53..e634b547396 100644 |
22 |
--- a/dev-libs/libtpms/Manifest |
23 |
+++ b/dev-libs/libtpms/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST libtpms-0.8.7.tar.gz 1256807 BLAKE2B d3630ece39a78dcc99d15ad603eec5c3d858d1d0c928ae2d3ae5ad5e4d419e186fa23b25ad15824806838401aac33e7224d7cc7ce6fb79647500d4b3a3871223 SHA512 061ec66bbeee9838f12c6a9724ba953cd604981148d6f3a8ebe444e89e59b228b763d8f98c55d67b9477277ccbf9987f2e5632d1b518e78d182f5d7066020ed4 |
26 |
+DIST libtpms-0.9.0.tar.gz 1261212 BLAKE2B 06b065c47bd151cc0001bfffb8aa54aa6d7ef81340f244fb235958bf5801df0fe8cb8a62c51168284e40f34d1a467b4456862087f35f6ac256dcc5e2d12527c5 SHA512 8e9c9e3d1c0c2fb0de3a40b1a84e866e0de662cd00b3bf75dbe01c35d6558a0b325b9c91508d80eeb2bc5162b1413cc624a1f0de1876b9ebe4573cb6343c8287 |
27 |
|
28 |
diff --git a/dev-libs/libtpms/files/libtpms-0.9.0-Remove-WError.patch b/dev-libs/libtpms/files/libtpms-0.9.0-Remove-WError.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..14fe4c5a878 |
31 |
--- /dev/null |
32 |
+++ b/dev-libs/libtpms/files/libtpms-0.9.0-Remove-WError.patch |
33 |
@@ -0,0 +1,13 @@ |
34 |
+diff --git a/configure.ac b/configure.ac |
35 |
+index 5f995a8..957c461 100644 |
36 |
+--- a/configure.ac |
37 |
++++ b/configure.ac |
38 |
+@@ -321,7 +321,7 @@ if test "x$enable_hardening" != "xno"; then |
39 |
+ AC_SUBST([HARDENING_LDFLAGS]) |
40 |
+ fi |
41 |
+ |
42 |
+-AM_CFLAGS="$CFLAGS $COVERAGE_CFLAGS -Wall -Werror -Wreturn-type -Wsign-compare -Wno-self-assign -Wmissing-prototypes" |
43 |
++AM_CFLAGS="$CFLAGS $COVERAGE_CFLAGS -Wall -Wreturn-type -Wsign-compare -Wno-self-assign -Wmissing-prototypes" |
44 |
+ AM_CFLAGS="$AM_CFLAGS" |
45 |
+ AM_LDFLAGS="$LDFLAGS $COVERAGE_LDFLAGS" |
46 |
+ |
47 |
|
48 |
diff --git a/dev-libs/libtpms/libtpms-0.9.0.ebuild b/dev-libs/libtpms/libtpms-0.9.0.ebuild |
49 |
new file mode 100644 |
50 |
index 00000000000..0eed7e6454d |
51 |
--- /dev/null |
52 |
+++ b/dev-libs/libtpms/libtpms-0.9.0.ebuild |
53 |
@@ -0,0 +1,47 @@ |
54 |
+# Copyright 1999-2021 Gentoo Authors |
55 |
+# Distributed under the terms of the GNU General Public License v2 |
56 |
+ |
57 |
+EAPI=8 |
58 |
+ |
59 |
+inherit autotools |
60 |
+ |
61 |
+DESCRIPTION="Library providing software emultion of a TPM" |
62 |
+HOMEPAGE="https://github.com/stefanberger/libtpms" |
63 |
+SRC_URI="https://github.com/stefanberger/libtpms/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
64 |
+LICENSE="BSD" |
65 |
+SLOT="0" |
66 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
67 |
+ |
68 |
+DEPEND="dev-libs/openssl:=" |
69 |
+RDEPEND="${DEPEND}" |
70 |
+BDEPEND="virtual/pkgconfig" |
71 |
+ |
72 |
+PATCHES=( |
73 |
+ "${FILESDIR}/${PN}-0.9.0-Remove-WError.patch" |
74 |
+) |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ default |
78 |
+ eautoreconf |
79 |
+} |
80 |
+ |
81 |
+src_configure() { |
82 |
+ econf \ |
83 |
+ --with-openssl |
84 |
+} |
85 |
+ |
86 |
+src_install() { |
87 |
+ default |
88 |
+ find "${ED}" -name '*.la' -delete || die |
89 |
+} |
90 |
+ |
91 |
+pkg_postinst() { |
92 |
+ if [[ ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 0.8.0; then |
93 |
+ elog "Versions of libtpms prior to 0.8.0 generate weaker than expected TPM 2.0 RSA" |
94 |
+ elog "keys due to a flawed key creation algorithm. Because fixing this would render" |
95 |
+ elog "existing sealed data inaccessible, to use the corrected algorithm, the old" |
96 |
+ elog "TPM state file must be deleted and a new TPM state file created. Data still" |
97 |
+ elog "sealed using the old state file will be permanently inaccessible. For the" |
98 |
+ elog "details see https://github.com/stefanberger/libtpms/issues/183" |
99 |
+ fi |
100 |
+} |