From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E4B351581EE for ; Thu, 27 Mar 2025 19:09:58 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id B732F343202 for ; Thu, 27 Mar 2025 19:09:58 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id A84661104B0; Thu, 27 Mar 2025 19:09:51 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id A40751104B0 for ; Thu, 27 Mar 2025 19:09:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5ACBD3431D6 for ; Thu, 27 Mar 2025 19:09:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E3FAE2848 for ; Thu, 27 Mar 2025 19:09:49 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1743102554.a4c5eb1a5d9dd2852fb8f82d0e97d6dedf000a94.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/swtpm/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/swtpm/swtpm-0.10.0-r1.ebuild X-VCS-Directories: app-crypt/swtpm/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: a4c5eb1a5d9dd2852fb8f82d0e97d6dedf000a94 X-VCS-Branch: master Date: Thu, 27 Mar 2025 19:09:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ed67f514-75d0-4baf-85f0-be8afe0a7226 X-Archives-Hash: 66512ece9b3a8c42e199ce7be1fa7880 commit: a4c5eb1a5d9dd2852fb8f82d0e97d6dedf000a94 Author: Christopher Byrne gmail com> AuthorDate: Thu Mar 27 17:01:56 2025 +0000 Commit: Sam James gentoo org> CommitDate: Thu Mar 27 19:09:14 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4c5eb1a app-crypt/swtpm: Add python 3.13 support Closes: https://bugs.gentoo.org/952187 Signed-off-by: Christopher Byrne gmail.com> Closes: https://github.com/gentoo/gentoo/pull/41323 Signed-off-by: Sam James gentoo.org> app-crypt/swtpm/swtpm-0.10.0-r1.ebuild | 75 ++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/app-crypt/swtpm/swtpm-0.10.0-r1.ebuild b/app-crypt/swtpm/swtpm-0.10.0-r1.ebuild new file mode 100644 index 000000000000..99daf56aa985 --- /dev/null +++ b/app-crypt/swtpm/swtpm-0.10.0-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) + +inherit autotools python-any-r1 + +DESCRIPTION="Libtpms-based TPM emulator" +HOMEPAGE="https://github.com/stefanberger/swtpm" +SRC_URI="https://github.com/stefanberger/swtpm/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +IUSE="fuse seccomp test" +RESTRICT="!test? ( test )" + +# net-libs/gnutls[pkcs11,tools] is required otherwsie it not possible to +# provision new vTPMs. swtpm_cert spawns certttool, and upstream expects +# pkcs11 in gnutls: https://github.com/stefanberger/swtpm/issues/477. + +RDEPEND="fuse? ( + dev-libs/glib:2 + sys-fs/fuse:0 + ) + seccomp? ( sys-libs/libseccomp ) + acct-group/tss + acct-user/tss + dev-libs/gmp:= + dev-libs/openssl:= + dev-libs/json-glib + >=dev-libs/libtpms-0.10.0 + dev-libs/libtasn1:= + net-libs/gnutls:=[pkcs11,tools] +" + +DEPEND="${RDEPEND} + test? ( + net-misc/socat + dev-tcltk/expect + )" + +BDEPEND="${PYTHON_DEPS}" + +PATCHES=( + "${FILESDIR}/${PN}-0.6.0-fix-localca-path.patch" + "${FILESDIR}/${PN}-0.10.0-build-sys-Remove-WError.patch" + "${FILESDIR}/${PN}-0.8.2-slibtool.patch" +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --with-openssl \ + --with-gnutls \ + --without-selinux \ + $(use_with fuse cuse) \ + $(use_with seccomp) \ + $(use_enable test tests) +} + +src_install() { + default + rm -fr "${ED}/usr/libexec/installed-tests/swtpm" + fowners -R tss:root /var/lib/swtpm-localca + fperms 750 /var/lib/swtpm-localca + keepdir /var/lib/swtpm-localca + find "${D}" -name '*.la' -delete || die +}