From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/tpm2-pytss/files/, dev-python/tpm2-pytss/
Date: Mon, 2 Dec 2024 14:50:44 +0000 (UTC) [thread overview]
Message-ID: <1733150904.bd60fb07f2716ed71b22201b32e7ba730e1a99da.sam@gentoo> (raw)
commit: bd60fb07f2716ed71b22201b32e7ba730e1a99da
Author: Christopher Byrne <salah.coronya <AT> gmail <DOT> com>
AuthorDate: Mon Dec 2 03:26:25 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> 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 <salah.coronya <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> 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
next reply other threads:[~2024-12-02 14:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-02 14:50 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-03-04 14:54 [gentoo-commits] repo/gentoo:master commit in: dev-python/tpm2-pytss/files/, dev-python/tpm2-pytss/ Joonas Niilola
2022-09-05 13:07 Joonas Niilola
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1733150904.bd60fb07f2716ed71b22201b32e7ba730e1a99da.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox