17
0

3 Commits

5 changed files with 56 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
<services> <services>
<service name="tar_scm" mode="disabled"> <service name="tar_scm" mode="manual">
<param name="filename">tpm2-pytss</param> <param name="filename">tpm2-pytss</param>
<param name="revision">2.3.0</param> <param name="revision">2.3.0</param>
<param name="scm">git</param> <param name="scm">git</param>
@@ -10,9 +10,9 @@
<param name="versionrewrite-replacement">\1</param> <param name="versionrewrite-replacement">\1</param>
<param name="changesgenerate">enable</param> <param name="changesgenerate">enable</param>
</service> </service>
<service name="recompress" mode="disabled"> <service name="recompress" mode="manual">
<param name="file">*.tar</param> <param name="file">*.tar</param>
<param name="compression">gz</param> <param name="compression">gz</param>
</service> </service>
<service name="set_version" mode="disabled"/> <service name="set_version" mode="manual"/>
</services> </services>

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Aug 7 15:57:42 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Refresh the source tarball.
-------------------------------------------------------------------
Mon Aug 4 13:52:43 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
- add patch use-c99-for-preproccessing.patch to fix build
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Oct 9 04:00:45 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com> Wed Oct 9 04:00:45 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-tpm2-pytss # spec file for package python-tpm2-pytss
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC and contributors
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -25,7 +25,9 @@ Release: 0
Summary: Python bindings for TSS Summary: Python bindings for TSS
License: BSD-2-Clause License: BSD-2-Clause
URL: https://github.com/tpm2-software/tpm2-pytss URL: https://github.com/tpm2-software/tpm2-pytss
Source: %{srcname}-%{version}.tar.gz Source: https://github.com/tpm2-software/%{srcname}/archive/refs/tags/%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
#PATCH-FIX-UPSTREAM use-c99-for-preproccessing.patch from https://github.com/tpm2-software/tpm2-pytss/commit/61d00b4dcca131b3f03f674ceabf4260bdbd6a61
Patch: use-c99-for-preproccessing.patch
BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module asn1crypto} BuildRequires: %{python_module asn1crypto}
BuildRequires: %{python_module cffi} BuildRequires: %{python_module cffi}

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:57c9e04cb600f2ba07f01a355e33d8b8d2d1119f116e28d5ab20924aee9db1dc oid sha256:d101e7c4c9b4c27ccc572e8a16a68d725fdc3fd30fd3e338f21dbf8db83d8bbc
size 216441 size 210816

View File

@@ -0,0 +1,37 @@
From 61d00b4dcca131b3f03f674ceabf4260bdbd6a61 Mon Sep 17 00:00:00 2001
From: Christopher Byrne <salah.coronya@gmail.com>
Date: Sun, 15 Dec 2024 17:06:13 -0600
Subject: [PATCH] setup.py: Explicilty use C99 for preprocessing
GCC 15 uses -std=c23 by default, which causes pycparser to error out
with "pycparser.plyparser.ParseError:
/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/stddef.h:450:31:
before: nullptr_t". As pcyparser only supports completely C99,
this shouldn't be an issue.
Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
---
setup.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Index: tpm2-pytss-2.3.0/setup.py
===================================================================
--- tpm2-pytss-2.3.0.orig/setup.py
+++ tpm2-pytss-2.3.0/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",