From 17e5f1ea4a2e1c5664f96480ca46348d008e8711 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 10 May 2024 00:01:14 +0100 Subject: gentoo auto-resync : 10:05:2024 - 00:01:13 --- app-crypt/Manifest.gz | Bin 24947 -> 24944 bytes app-crypt/tpm2-pkcs11/Manifest | 3 +- app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.9.0-r1.ebuild | 70 ------------- app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.9.0-r2.ebuild | 70 +++++++++++++ app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.9.0.ebuild | 61 ----------- app-crypt/tpm2-tss/Manifest | 3 + .../files/tpm2-tss-4.1.1-Remove-bash-syntax.patch | 28 ++++++ ...piler-common.sh-Remove-dependency-on-whic.patch | 32 ++++++ app-crypt/tpm2-tss/tpm2-tss-4.1.1-r1.ebuild | 112 +++++++++++++++++++++ 9 files changed, 246 insertions(+), 133 deletions(-) delete mode 100644 app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.9.0-r1.ebuild create mode 100644 app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.9.0-r2.ebuild delete mode 100644 app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.9.0.ebuild create mode 100644 app-crypt/tpm2-tss/files/tpm2-tss-4.1.1-Remove-bash-syntax.patch create mode 100644 app-crypt/tpm2-tss/files/tpm2-tss-4.1.1-int-log-compiler-common.sh-Remove-dependency-on-whic.patch create mode 100644 app-crypt/tpm2-tss/tpm2-tss-4.1.1-r1.ebuild (limited to 'app-crypt') diff --git a/app-crypt/Manifest.gz b/app-crypt/Manifest.gz index 73c3c6de2545..38ce9eee84bc 100644 Binary files a/app-crypt/Manifest.gz and b/app-crypt/Manifest.gz differ diff --git a/app-crypt/tpm2-pkcs11/Manifest b/app-crypt/tpm2-pkcs11/Manifest index bc13ab85aeb9..a21256b83086 100644 --- a/app-crypt/tpm2-pkcs11/Manifest +++ b/app-crypt/tpm2-pkcs11/Manifest @@ -1,5 +1,4 @@ AUX tpm2-pkcs11-1.9.0-Remove-incorrect-append-in-configure-ac.patch 936 BLAKE2B bb44105eeacf605d9a9340c83c32fd4e7b22f30ae7d655d48dd7fbb611b94e187e9995a31edc04965bd88e3e03b9013f83cb934e255d32f1144ba304a224f5da SHA512 22d61f93170ce8e385f4caec03c3da032e07af7ea21355f986d192c549eb91a6c530a9f0b686483c411c34abfb1057525cc6b0c1eb63d0410855a2a94ec8be36 DIST tpm2-pkcs11-1.9.0.tar.gz 1396590 BLAKE2B a5880b61463154d8f17549c442c7eca49b7a438335c264022d81fa93079b83633cba8ff8c3377f5829a896e6f5f55688018d8c3a78cb8223a888c7d6bfcaf555 SHA512 e88e78790a8d4d5a67713855106860e90dd18da00dc738ca7bfebf7979cdde54ce5089d0be015e7a208117bf393db700ca7739986c5e8138ee0e3b37344614b0 -EBUILD tpm2-pkcs11-1.9.0-r1.ebuild 1535 BLAKE2B 954259336c73d524706adda741539d59511b3e8ce2c5d730be44c84a4e9ceaa34c0cb5017fa00e27b694b38539654fbd1712bc98ab203ba1e34ab0fe4f467f14 SHA512 94bec161a3c626d8b4b7872d763899a2497a7128a3bc077d035cbcc386888e37d71ffcae18228667cae0ab9d8ee48649ce54145748d1cf745c001983eb5028b8 -EBUILD tpm2-pkcs11-1.9.0.ebuild 1398 BLAKE2B 428b221e8bd46c3204be0191097ca9b63f0c148648323ab5864971d6691f3c8b107ecde764b9caefb0a2f9d94c45b07ea72436aa5ead1dbe0cd77d6f0750b459 SHA512 664880872d8db594b9b76bc95af0ed8fdaf3640bc7c37a8abca59c2f2a24231e7193eeff109db70e33c7659e6a7b71b3193c1e4b24ddd6f3e0cbc46a21578f26 +EBUILD tpm2-pkcs11-1.9.0-r2.ebuild 1535 BLAKE2B 5dc0aa73843a20453d3b011990b0e0a00449f170c2c8edae7db38380e46fbb8ea58beb4689019cfcd29e1f1d1108f0995eedd15a3da5876f726b54d71c21e8e9 SHA512 0e11c46722330cbc83e8284fe4ce5ce53ef1feaaa899d0546c536535f409e97601d15713a33aee2e9e79cabf6fd2ed9fe01d15cfabbc2ca594763ff4ce8aee56 MISC metadata.xml 563 BLAKE2B 2941f98612d53afaa52bb0d6b635ab83f51932a9446dfb4724326ce9a3da9b3c5a94cf1550f1a7d29b0d0bb2176c3d5b9ab38810f2d520617cc36eff029a607e SHA512 7f0b1d5349a60227c434bee6d150f1287182bda634b1197f9b9ebd91cac32cdb4a2e21796728526b1168e9f8d358fdc8d836e93ca65fb6419d26e418ccf87275 diff --git a/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.9.0-r1.ebuild b/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.9.0-r1.ebuild deleted file mode 100644 index 9f263b30a998..000000000000 --- a/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.9.0-r1.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..11} ) -PYTHON_REQ_USE="sqlite" - -inherit autotools python-single-r1 - -DESCRIPTION="A PKCS#11 interface for TPM2 hardware" -HOMEPAGE="https://tpm2-software.github.io/" -SRC_URI="https://github.com/tpm2-software/tpm2-pkcs11/releases/download/${PV}/${P}.tar.gz" - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="~amd64" - -IUSE="fapi test" -REQUIRED_USE="( ${PYTHON_REQUIRED_USE} )" - -# Units tests only for now -RESTRICT="!test? ( test )" - -RDEPEND="${PYTHON_DEPS} - app-crypt/p11-kit - app-crypt/tpm2-abrmd - app-crypt/tpm2-tools[fapi?] - !fapi? ( app-crypt/tpm2-tss:= ) - fapi? ( >=app-crypt/tpm2-tss-3.0.1:=[fapi] ) - dev-db/sqlite:3 - dev-libs/libyaml - dev-libs/openssl:= - $(python_gen_cond_dep ' - dev-python/bcrypt[${PYTHON_USEDEP}] - dev-python/cryptography[${PYTHON_USEDEP}] - dev-python/pyasn1[${PYTHON_USEDEP}] - dev-python/pyasn1-modules[${PYTHON_USEDEP}] - dev-python/pyyaml[${PYTHON_USEDEP}] - dev-python/tpm2-pytss[${PYTHON_USEDEP}] - ') -" - -DEPEND="test? ( dev-util/cmocka ) - ${RDEPEND}" -BDEPEND="${PYTHON_DEPS} - dev-build/autoconf-archive - virtual/pkgconfig" - -PATCHES=( - "${FILESDIR}/${PN}-1.9.0-Remove-incorrect-append-in-configure-ac.patch" -) - -src_prepare() { - default - eautoreconf -} - -src_configure() { - econf \ - $(use_enable fapi) \ - $(use_enable test unit) -} - -src_install() { - default - python_domodule tools/tpm2_pkcs11 - python_newscript tools/tpm2_ptool.py tpm2_ptool - find "${ED}" -name '*.la' -delete || die -} diff --git a/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.9.0-r2.ebuild b/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.9.0-r2.ebuild new file mode 100644 index 000000000000..2efa0a2d8d04 --- /dev/null +++ b/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.9.0-r2.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_REQ_USE="sqlite" + +inherit autotools python-single-r1 + +DESCRIPTION="A PKCS#11 interface for TPM2 hardware" +HOMEPAGE="https://tpm2-software.github.io/" +SRC_URI="https://github.com/tpm2-software/tpm2-pkcs11/releases/download/${PV}/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="fapi test" +REQUIRED_USE="( ${PYTHON_REQUIRED_USE} )" + +# Units tests only for now +RESTRICT="!test? ( test )" + +RDEPEND="${PYTHON_DEPS} + app-crypt/p11-kit + app-crypt/tpm2-abrmd + app-crypt/tpm2-tools[fapi?] + !fapi? ( app-crypt/tpm2-tss:= ) + fapi? ( >=app-crypt/tpm2-tss-3.0.1:=[fapi] ) + dev-db/sqlite:3 + dev-libs/libyaml + dev-libs/openssl:= + $(python_gen_cond_dep ' + dev-python/bcrypt[${PYTHON_USEDEP}] + dev-python/cryptography[${PYTHON_USEDEP}] + dev-python/pyasn1[${PYTHON_USEDEP}] + dev-python/pyasn1-modules[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/tpm2-pytss[${PYTHON_USEDEP}] + ') +" + +DEPEND="test? ( dev-util/cmocka ) + ${RDEPEND}" +BDEPEND="${PYTHON_DEPS} + dev-build/autoconf-archive + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${PN}-1.9.0-Remove-incorrect-append-in-configure-ac.patch" +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + $(use_enable fapi) \ + $(use_enable test unit) +} + +src_install() { + default + python_domodule tools/tpm2_pkcs11 + python_newscript tools/tpm2_ptool.py tpm2_ptool + find "${ED}" -name '*.la' -delete || die +} diff --git a/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.9.0.ebuild b/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.9.0.ebuild deleted file mode 100644 index fab1bce25187..000000000000 --- a/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.9.0.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..11} ) -PYTHON_REQ_USE="sqlite" - -inherit python-single-r1 - -DESCRIPTION="A PKCS#11 interface for TPM2 hardware" -HOMEPAGE="https://tpm2-software.github.io/" -SRC_URI="https://github.com/tpm2-software/tpm2-pkcs11/releases/download/${PV}/${P}.tar.gz" - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="~amd64" - -IUSE="fapi test" -REQUIRED_USE="( ${PYTHON_REQUIRED_USE} )" - -# Units tests only for now -RESTRICT="!test? ( test )" - -RDEPEND="${PYTHON_DEPS} - app-crypt/p11-kit - app-crypt/tpm2-abrmd - app-crypt/tpm2-tools[fapi?] - !fapi? ( app-crypt/tpm2-tss:= ) - fapi? ( >=app-crypt/tpm2-tss-3.0.1:=[fapi] ) - dev-db/sqlite:3 - dev-libs/libyaml - dev-libs/openssl:= - $(python_gen_cond_dep ' - dev-python/bcrypt[${PYTHON_USEDEP}] - dev-python/cryptography[${PYTHON_USEDEP}] - dev-python/pyasn1[${PYTHON_USEDEP}] - dev-python/pyasn1-modules[${PYTHON_USEDEP}] - dev-python/pyyaml[${PYTHON_USEDEP}] - dev-python/tpm2-pytss[${PYTHON_USEDEP}] - ') -" - -DEPEND="test? ( dev-util/cmocka ) - ${RDEPEND}" -BDEPEND="${PYTHON_DEPS} - dev-build/autoconf-archive - virtual/pkgconfig" - -src_configure() { - econf \ - $(use_enable fapi) \ - $(use_enable test unit) -} - -src_install() { - default - python_domodule tools/tpm2_pkcs11 - python_newscript tools/tpm2_ptool.py tpm2_ptool - find "${ED}" -name '*.la' -delete || die -} diff --git a/app-crypt/tpm2-tss/Manifest b/app-crypt/tpm2-tss/Manifest index 43b71cf0c1a6..249f56e8de1b 100644 --- a/app-crypt/tpm2-tss/Manifest +++ b/app-crypt/tpm2-tss/Manifest @@ -2,11 +2,14 @@ AUX tpm2-tss-4.0.0-Dont-install-files-into-run.patch 880 BLAKE2B 8ae9b55e853dcd1 AUX tpm2-tss-4.0.1-Do-not-consider-failures-to-write-files-in-sys-hard.patch 1493 BLAKE2B 4e22a79f54758295905625ce907ee1d718ec8ab34e1917f376c2e318beabbcd424588458bb0360757d8027b87ca7fb14279585fb35e29a7bd53d7eb3fdb43c99 SHA512 f4badedc611e9903daa034306c6cca3b0a3f3ed56350af18f48586c67ffba9f4b5cc8784e4d008b123b885c33b7a3fbfd1c5bc846aa35ab648cd48be3476deb1 AUX tpm2-tss-4.0.1-Make-sysusers-and-tmpfiles-optional.patch 1814 BLAKE2B 259a2b4618eeaf34228a07d6e9479658e04b7e36affa6d8d894563014a3f9ba571f1676623b744c1158ceb2fd738fe627fad76014b1893471a9467da41847f2e SHA512 78f1f6d5a448f29fd5dfbfadfb1913464d8e55eabebc9c0eca16c70031bcee9198742b1567eba2bae444cf11e32bea3c3663db155eb1e8da750ba8bb78d725c0 AUX tpm2-tss-4.0.2-Dont-install-files-into-run.patch 878 BLAKE2B 8a3d248dcb89b08bf61834aa0cbde89e7086d561826da154104eb6cddd760fd42538f3c353ba1d3df072617bdfa9a2976f7c7ba6947600578e8aa398f3091bea SHA512 02a354429a3f1b803364c1277b4791f0a406b2510e320dff13dc4988efa443d06aec3fe325ec05439597ebf78beef2983e4dabfd557d4cdf6c43c4b7042a1797 +AUX tpm2-tss-4.1.1-Remove-bash-syntax.patch 1293 BLAKE2B b13f767e097fb2fe4912c0ba3411498a91446429ac98f2737bd8afe116e8a760babb18661fc5d4ab32aec62ce561e7653189e2e99c36e304507449a816e625c1 SHA512 10730084d14317affa994f5298b57b64f9255aa263d7d18d0e9b56db91674de0b16fa35e92c782f4895553b7b9864b13cf106e0942f5cd191574a1426e84fb6f +AUX tpm2-tss-4.1.1-int-log-compiler-common.sh-Remove-dependency-on-whic.patch 1052 BLAKE2B 67171fb9b1d2e37bbc71c70d5517930aedb68f7fe326cd63cc2a8cec29f4ca06a5e5823da155a06dccc4f7defa4a6c70bd92d3cc0547a23ab9ef9c6ff686aa39 SHA512 f93bae0037b5ded19ea78cf3dfbffc22db4072d01e0507648d85d581948863b873a468640b571bcd862e486dd5a8b267697ecdf14efa57ee6f83d0ea29580ae2 DIST tpm2-tss-4.0.1.tar.gz 1787139 BLAKE2B 627cdefeff6c64148f9da1425922a0a7a72debcee4930ffab208a3b9b66127c2d4f923e3e105bfd45410cdb13c19cb40cc15a720e9a05dd32ff622dabf5fcc32 SHA512 ed6ddc52cb0e8c1082a4bb001e1225eb9905fd2380da88db5fd69ff5b5d9d43a93eb67b634e49d53eb5d586832da3aef2c4c7e5f18d51bb730481f8913319d7d DIST tpm2-tss-4.0.2.tar.gz 1833499 BLAKE2B 91e70bcc66099fe5d7d53cf98a2c46582e96f204fc7bcb89c46497cc811ca1eb39c752be077a6e8132fc980a6581a2df075fcc6670d646d1270e642c144f043c SHA512 e92038de985ac928bf87a707b0f9b190aaa936827923ea5e3cbdda216cbc6cf8590af650c59c2e1e420ad9914dc6c1f14232ab7930ffc1a50fb0c49fdef6d3f0 DIST tpm2-tss-4.1.1.tar.gz 1901759 BLAKE2B 96e154e0778caf8ba8d7299c82ff1614c26254fe741290a588fa251a3013bdda26f720c148d400dc068851746e85719ae78068d64eef1067f3d45c540a303284 SHA512 a8fdc85e44c4a7960cdc21fd46154fbdb63992e072cc4356f472c962a751a826906604848b7b2608344494f85f72d591f4c0bdf42e3df7491446bdecbe22f2af EBUILD tpm2-tss-4.0.1-r1.ebuild 2588 BLAKE2B b9a58449aa540dd800e5453091c464edeba60987e0119044cf0caccfbb14ef7d15c7fc28ee27d45d80044f4b6d4df9c56cbead18fffd4819afd53dde921692f0 SHA512 bad17cc8511c05ff8295c1812ac78f48c097563efe2224d9bcf6d3f1cd131149571596f1fc47a7423ee10b88b7221ae8f52bbe05a01ab402369a66ba0a8e62d5 EBUILD tpm2-tss-4.0.1.ebuild 2492 BLAKE2B a31affba60e4b53ba69ba9bc3dece3bfca550cad98eb21d5cabb4b24e427b321fdb4104cabe6676e8128719d1e0dbf8992ad778df025f2709aefe078e01c3458 SHA512 502461ec7f03aba7d346ede6db2b0f365f16c5e37d4272f27467f62d84c09c12258994f22733f33e3869fa90fefe1fb2e3004e4ec38e5276a67f1ada32442749 EBUILD tpm2-tss-4.0.2.ebuild 2583 BLAKE2B dddc3558af2f942663de1157c99fb4d26a845d51684f94b9c2d95b3af82cd1744852fe69c45d7aeedf45e68a334f76ddb081b1fd1fe5db8208d5dd64ebac0afb SHA512 7df61c8d336026c2679071571ed48143d5a4c367677f2b40b514832a15d468c1d8bc03f0bea61922a42faf304b5743f000cce6903193b16ad63d72679eb7c873 +EBUILD tpm2-tss-4.1.1-r1.ebuild 2652 BLAKE2B 274e9278d380cd4edbcc343fbc3a7af09fafef9892e4565ec1d601688ce6163ff6f837e3eea29cf4ba03d8a99d9b5a9803d456dec3d54add5bf2e00d66476163 SHA512 26318d63e67c5fc10ad0e5e8e3e668b1be2b6c668733d39f47a8667895ef7105edd9ac40770a2a0b4a9ed471def7c26f56dc7feb92a075fab273c6f7d137ec0b EBUILD tpm2-tss-4.1.1.ebuild 2434 BLAKE2B 6d9d66fa2e03c9a1933d14b7fe09f5146df232aa3b11cba4008ae5e1c1c7f247ab0bb38553f3a9bced5f3536fb2eb95b4c3bc8fe113a067c21b64481afb9ab05 SHA512 80bc38751bf15cbe7e65733f00af178e7cba5d66976fb87d39ed55108365997de41258fd3e0890fce34aec7521f31fdb6d0c1be6826585f8b99d1b45979866e2 MISC metadata.xml 835 BLAKE2B 58fcbb63b8fd77dd42f081e060cec1fc5593d13ad9237bd644462fd839a1fea9936342d5339a3ec8d339106ca6074c73ac31e7546feb0f1c5f0f212b21831d8a SHA512 941bfce986619b387410d49fe046218a388243c257a3164293033f8ebb4e2d64d7ff06d35dd4ef770a9e9194035839d68dcf1f00edbe439272c2e9c01ecb3c6b diff --git a/app-crypt/tpm2-tss/files/tpm2-tss-4.1.1-Remove-bash-syntax.patch b/app-crypt/tpm2-tss/files/tpm2-tss-4.1.1-Remove-bash-syntax.patch new file mode 100644 index 000000000000..81673e55f4fa --- /dev/null +++ b/app-crypt/tpm2-tss/files/tpm2-tss-4.1.1-Remove-bash-syntax.patch @@ -0,0 +1,28 @@ +From 03726ba7684d672201dd773a49b7bec86ca877f5 Mon Sep 17 00:00:00 2001 +From: David Seifert +Date: Tue, 7 May 2024 20:37:14 +0200 +Subject: [PATCH] Remove bash syntax + +* `==` is bash and not POSIX +Bug: https://bugs.gentoo.org/931239 +Signed-off-by: David Seifert +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index a763b683..eb6051ea 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -652,7 +652,7 @@ AS_IF([test "x$enable_self_generated_certificate" = xyes], + [AC_DEFINE([SELF_GENERATED_CERTIFICATE], [1], [Allow usage of self generated root certificate])], + [AS_IF([test "x$integration_tcti" != "xdevice"], [AC_DEFINE([FAPI_TEST_EK_CERT_LESS], [1], [Perform integration tests without EK certificate verification])])]) + +-AM_CONDITIONAL([INIT_CA], [test "x$enable_self_generated_certificate" == xyes]) ++AM_CONDITIONAL([INIT_CA], [test "x$enable_self_generated_certificate" = xyes]) + + AS_IF([test "x$enable_integration" = "xyes" && test "x$enable_self_generated_certificate" != "xyes" && test "x$integration_tcti" != "xdevice"], + [AC_MSG_WARN([Running integration tests without EK certificate verification, use --enable-self-generated-certificate for full test coverage])]) +-- +2.43.2 + diff --git a/app-crypt/tpm2-tss/files/tpm2-tss-4.1.1-int-log-compiler-common.sh-Remove-dependency-on-whic.patch b/app-crypt/tpm2-tss/files/tpm2-tss-4.1.1-int-log-compiler-common.sh-Remove-dependency-on-whic.patch new file mode 100644 index 000000000000..1a3a203ae5b1 --- /dev/null +++ b/app-crypt/tpm2-tss/files/tpm2-tss-4.1.1-int-log-compiler-common.sh-Remove-dependency-on-whic.patch @@ -0,0 +1,32 @@ +From ce2ca92af5f215e9c3fa262ea40de0c1d2ff71a3 Mon Sep 17 00:00:00 2001 +From: Christopher Byrne +Date: Fri, 3 May 2024 10:30:34 -0500 +Subject: [PATCH] int-log-compiler-common.sh: Remove dependency on which + +Signed-off-by: Christopher Byrne +--- + script/int-log-compiler-common.sh | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/script/int-log-compiler-common.sh b/script/int-log-compiler-common.sh +index 5d0b3b95..5dddd77a 100755 +--- a/script/int-log-compiler-common.sh ++++ b/script/int-log-compiler-common.sh +@@ -55,12 +55,12 @@ sanity_test () + exit 1 + fi + +- if [ -z "$(which ${sock_tool})" ]; then ++ if [ -z "$(command -v ${sock_tool})" ]; then + echo "ss not on PATH; exiting" + exit 1 + fi + +- if [[ ! -z ${simulator_bin} && -z "$(which ${simulator_bin})" ]]; then ++ if [[ ! -z ${simulator_bin} && -z "$(command -v ${simulator_bin})" ]]; then + echo "${simulator_bin} not on PATH; exiting" + exit 1 + fi +-- +2.43.2 + diff --git a/app-crypt/tpm2-tss/tpm2-tss-4.1.1-r1.ebuild b/app-crypt/tpm2-tss/tpm2-tss-4.1.1-r1.ebuild new file mode 100644 index 000000000000..eb0fa6293ad5 --- /dev/null +++ b/app-crypt/tpm2-tss/tpm2-tss-4.1.1-r1.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic linux-info multilib-minimal tmpfiles udev + +DESCRIPTION="TCG Trusted Platform Module 2.0 Software Stack" +HOMEPAGE="https://github.com/tpm2-software/tpm2-tss" +SRC_URI="https://github.com/tpm2-software/${PN}/releases/download/${PV}/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0/4" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" +IUSE="doc +fapi +openssl mbedtls +policy static-libs test" +RESTRICT="!test? ( test )" + +REQUIRED_USE=" + ^^ ( mbedtls openssl ) + fapi? ( openssl !mbedtls ) + policy? ( openssl !mbedtls ) +" + +RDEPEND=" + acct-group/tss + acct-user/tss + sys-apps/util-linux:=[${MULTILIB_USEDEP}] + fapi? ( + dev-libs/json-c:=[${MULTILIB_USEDEP}] + >=net-misc/curl-7.80.0[${MULTILIB_USEDEP}] + ) + mbedtls? ( net-libs/mbedtls:=[${MULTILIB_USEDEP}] ) + openssl? ( dev-libs/openssl:=[${MULTILIB_USEDEP}] ) +" + +DEPEND=" + ${RDEPEND} + test? ( app-crypt/swtpm + dev-libs/uthash + dev-util/cmocka + fapi? ( >=net-misc/curl-7.80.0 ) ) +" + +BDEPEND=" + sys-apps/acl + virtual/pkgconfig + doc? ( app-text/doxygen ) +" + +PATCHES=( + "${FILESDIR}/${PN}-4.0.2-Dont-install-files-into-run.patch" + "${FILESDIR}/${PN}-4.1.1-int-log-compiler-common.sh-Remove-dependency-on-whic.patch" + "${FILESDIR}/${PN}-4.1.1-Remove-bash-syntax.patch" +) + +pkg_setup() { + local CONFIG_CHECK="~TCG_TPM" + linux-info_pkg_setup + kernel_is ge 4 12 0 || ewarn "At least kernel 4.12.0 is required" +} + +src_prepare() { + default + eautoreconf +} + +multilib_src_configure() { + # Fails with inlining + filter-flags -fno-semantic-interposition + # tests fail with LTO enabbled. See bug 865275 and 865279 + filter-lto + + local myconf=( + --localstatedir=/var + $(multilib_native_use_enable doc doxygen-doc) + $(use_enable fapi) + $(use_enable policy) + $(use_enable static-libs static) + $(multilib_native_use_enable test unit) + $(multilib_native_use_enable test integration) + $(multilib_native_use_enable test self-generated-certificate) + --disable-tcti-libtpms + --disable-tcti-spi-ltt2go + --disable-tcti-spi-ftdi + --disable-tcti-i2c-ftdi + --disable-defaultflags + --disable-weakcrypto + --with-crypto="$(usex mbedtls mbed ossl)" + --with-runstatedir=/run + --with-udevrulesdir="$(get_udevdir)/rules.d" + --with-udevrulesprefix=60- + --without-sysusersdir + --with-tmpfilesdir="/usr/lib/tmpfiles.d" + ) + + ECONF_SOURCE=${S} econf "${myconf[@]}" +} + +multilib_src_install() { + default + keepdir /var/lib/tpm2-tss/system/keystore + find "${ED}" -name '*.la' -delete || die +} + +pkg_postinst() { + tmpfiles_process tpm2-tss-fapi.conf + udev_reload +} + +pkg_postrm() { + udev_reload +} -- cgit v1.2.3