From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (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 A78171581F3 for ; Mon, 2 Dec 2024 14:50:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 717C7E07EC; Mon, 2 Dec 2024 14:50:47 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 pigeon.gentoo.org (Postfix) with ESMTPS id C4AA9E07EE for ; Mon, 2 Dec 2024 14:50:46 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EE53A342FEC for ; Mon, 2 Dec 2024 14:50:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 019771EC5 for ; Mon, 2 Dec 2024 14:50:44 +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: <1733150904.bd60fb07f2716ed71b22201b32e7ba730e1a99da.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/tpm2-pytss/files/, dev-python/tpm2-pytss/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/tpm2-pytss/files/tpm2-pytss-2.3.0-preprocess-as-C99.patch dev-python/tpm2-pytss/tpm2-pytss-2.3.0.ebuild X-VCS-Directories: dev-python/tpm2-pytss/ dev-python/tpm2-pytss/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: bd60fb07f2716ed71b22201b32e7ba730e1a99da X-VCS-Branch: master Date: Mon, 2 Dec 2024 14:50:44 +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: 566c290a-dbcd-4111-92dc-15b355def07d X-Archives-Hash: 8608d9a8df856ccb092ce0b87734ed32 commit: bd60fb07f2716ed71b22201b32e7ba730e1a99da Author: Christopher Byrne gmail com> AuthorDate: Mon Dec 2 03:26:25 2024 +0000 Commit: Sam James gentoo org> CommitDate: Mon Dec 2 14:48:24 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd60fb07 dev-python/tpm2-pytss: Fix compile under gcc-15 Added a patch to force "-std=c99" when preprocessing. As pcyparser only supports completely C99, this shouldn't be an issue Closes: https://bugs.gentoo.org/943997 Closes: https://bugs.gentoo.org/945056 Signed-off-by: Christopher Byrne gmail.com> Signed-off-by: Sam James gentoo.org> .../files/tpm2-pytss-2.3.0-preprocess-as-C99.patch | 21 +++++++++++++++++++++ dev-python/tpm2-pytss/tpm2-pytss-2.3.0.ebuild | 4 ++++ 2 files changed, 25 insertions(+) diff --git a/dev-python/tpm2-pytss/files/tpm2-pytss-2.3.0-preprocess-as-C99.patch b/dev-python/tpm2-pytss/files/tpm2-pytss-2.3.0-preprocess-as-C99.patch new file mode 100644 index 000000000000..582735bd81f3 --- /dev/null +++ b/dev-python/tpm2-pytss/files/tpm2-pytss-2.3.0-preprocess-as-C99.patch @@ -0,0 +1,21 @@ +diff --git a/setup.py b/setup.py +index 1b5f513..0e6208f 100644 +--- a/setup.py ++++ b/setup.py +@@ -184,7 +184,7 @@ class type_generator(build_ext): + f"unable to find tss2_tpm2_types.h in {pk['include_dirs']}" + ) + pdata = preprocess_file( +- header_path, cpp_args=["-D__extension__=", "-D__attribute__(x)="] ++ header_path, cpp_args=["-std=c99", "-D__extension__=", "-D__attribute__(x)="] + ) + parser = c_parser.CParser() + ast = parser.parse(pdata, "tss2_tpm2_types.h") +@@ -205,6 +205,7 @@ class type_generator(build_ext): + pdata = preprocess_file( + policy_header_path, + cpp_args=[ ++ "-std=c99", + "-D__extension__=", + "-D__attribute__(x)=", + "-D__float128=long double", diff --git a/dev-python/tpm2-pytss/tpm2-pytss-2.3.0.ebuild b/dev-python/tpm2-pytss/tpm2-pytss-2.3.0.ebuild index 9ad2962b3fa8..bad0a03aac9a 100644 --- a/dev-python/tpm2-pytss/tpm2-pytss-2.3.0.ebuild +++ b/dev-python/tpm2-pytss/tpm2-pytss-2.3.0.ebuild @@ -38,6 +38,10 @@ BDEPEND=" dev-python/setuptools-scm[${PYTHON_USEDEP}] " +PATCHES=( + "${FILESDIR}/${PN}-2.3.0-preprocess-as-C99.patch" + ) + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} distutils_enable_tests pytest