From e23a08d0c97a0cc415aaa165da840b056f93c997 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 8 Oct 2021 23:06:07 +0100 Subject: gentoo resync : 08.10.2021 --- dev-libs/libtpms/Manifest | 3 ++ .../files/libtpms-0.9.0-Remove-WError.patch | 13 ++++++ dev-libs/libtpms/libtpms-0.9.0.ebuild | 47 ++++++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 dev-libs/libtpms/files/libtpms-0.9.0-Remove-WError.patch create mode 100644 dev-libs/libtpms/libtpms-0.9.0.ebuild (limited to 'dev-libs/libtpms') diff --git a/dev-libs/libtpms/Manifest b/dev-libs/libtpms/Manifest index 994f78f8903a..028ee03ef777 100644 --- a/dev-libs/libtpms/Manifest +++ b/dev-libs/libtpms/Manifest @@ -1,4 +1,7 @@ AUX libtpms-0.8.7-Remove-WError.patch 501 BLAKE2B 6fef81cd6b20519c693e4389a679bdd039ef0f415e0313e3baf867ba1581e9ff51fbb909f143cfde98c6135995807e1ffd08ab02332ff4ba7a568eecd437cc14 SHA512 5eb9d1f1e1124ac07b453d514f0c6cdbf5f0947dbf046593df19ab93d29e1a75854df0d6e3a37d9c20b7f01bd5b33694d8103b9796a0fbf4a118e1d9e0570790 +AUX libtpms-0.9.0-Remove-WError.patch 508 BLAKE2B 33178598a1fef1189039c30814996f00ec37215b3f10a0ff9df521a866147b2a6844d86c3b372e450f701e6e2ae3e587443765c39848076536861342e5b42d63 SHA512 e0d55045bcb667278dc1ae1c509b7be466f23421683f8b0b7c830d724f83b1923b09a61f2a8e649e08150d1d313f0456cfc5f5a1b5fe3bf168565e443595dd12 DIST libtpms-0.8.7.tar.gz 1256807 BLAKE2B d3630ece39a78dcc99d15ad603eec5c3d858d1d0c928ae2d3ae5ad5e4d419e186fa23b25ad15824806838401aac33e7224d7cc7ce6fb79647500d4b3a3871223 SHA512 061ec66bbeee9838f12c6a9724ba953cd604981148d6f3a8ebe444e89e59b228b763d8f98c55d67b9477277ccbf9987f2e5632d1b518e78d182f5d7066020ed4 +DIST libtpms-0.9.0.tar.gz 1261212 BLAKE2B 06b065c47bd151cc0001bfffb8aa54aa6d7ef81340f244fb235958bf5801df0fe8cb8a62c51168284e40f34d1a467b4456862087f35f6ac256dcc5e2d12527c5 SHA512 8e9c9e3d1c0c2fb0de3a40b1a84e866e0de662cd00b3bf75dbe01c35d6558a0b325b9c91508d80eeb2bc5162b1413cc624a1f0de1876b9ebe4573cb6343c8287 EBUILD libtpms-0.8.7.ebuild 1297 BLAKE2B 0a756e5c7642cd78740685a7b2484183d5830855580c3fd408a09e6a3b639d096affc86974a8d8ad27f1318afe658d8ecd40cd41dc4ff47e72d03a57da3ff715 SHA512 f3b689949c3a164ab2e53edfa84c7c5369a51fd2ed205c641a0e17c0652509e7c5db07ba91523a1e60285c7d1295c41b959b1a072381f82c0095c03250afa42d +EBUILD libtpms-0.9.0.ebuild 1297 BLAKE2B 60e19a6be447a90167fa15bfda53f9e8ce1724046100a59590c1e27ecf609e0ff0f6565325f24ecb43603e1fcc655aed7a51b9d44c0d5b67a0bc4bc0f1578276 SHA512 6a979e72dab2bacca9bd53d97984d667ecb588878127d7b598873e46e4279a1a53b5e66fe4b49b7e648974caab34b05cd7362de2d21665a30b7de11f9789e24d MISC metadata.xml 536 BLAKE2B 75236814e21cb3e98feaa2646ccf680973a71e168d5ccd95cdd12f06214a1b18454cb40b1825df9335e3c4881b7d8d3cffdf03c48dcedd99da4a0dd50d81fe1b SHA512 3abebe84fc62f5082d22e0a3d146a22e7e799d0b1d0f3cfa282aac408ca8c0b8f396f7b081c92aec290037bb7405e672ce7f6f4f8da5b1966a0b4eda8005d721 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 new file mode 100644 index 000000000000..14fe4c5a8788 --- /dev/null +++ b/dev-libs/libtpms/files/libtpms-0.9.0-Remove-WError.patch @@ -0,0 +1,13 @@ +diff --git a/configure.ac b/configure.ac +index 5f995a8..957c461 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -321,7 +321,7 @@ if test "x$enable_hardening" != "xno"; then + AC_SUBST([HARDENING_LDFLAGS]) + fi + +-AM_CFLAGS="$CFLAGS $COVERAGE_CFLAGS -Wall -Werror -Wreturn-type -Wsign-compare -Wno-self-assign -Wmissing-prototypes" ++AM_CFLAGS="$CFLAGS $COVERAGE_CFLAGS -Wall -Wreturn-type -Wsign-compare -Wno-self-assign -Wmissing-prototypes" + AM_CFLAGS="$AM_CFLAGS" + AM_LDFLAGS="$LDFLAGS $COVERAGE_LDFLAGS" + diff --git a/dev-libs/libtpms/libtpms-0.9.0.ebuild b/dev-libs/libtpms/libtpms-0.9.0.ebuild new file mode 100644 index 000000000000..0eed7e6454dd --- /dev/null +++ b/dev-libs/libtpms/libtpms-0.9.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="Library providing software emultion of a TPM" +HOMEPAGE="https://github.com/stefanberger/libtpms" +SRC_URI="https://github.com/stefanberger/libtpms/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" + +DEPEND="dev-libs/openssl:=" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${PN}-0.9.0-Remove-WError.patch" +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --with-openssl +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die +} + +pkg_postinst() { + if [[ ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 0.8.0; then + elog "Versions of libtpms prior to 0.8.0 generate weaker than expected TPM 2.0 RSA" + elog "keys due to a flawed key creation algorithm. Because fixing this would render" + elog "existing sealed data inaccessible, to use the corrected algorithm, the old" + elog "TPM state file must be deleted and a new TPM state file created. Data still" + elog "sealed using the old state file will be permanently inaccessible. For the" + elog "details see https://github.com/stefanberger/libtpms/issues/183" + fi +} -- cgit v1.2.3