Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-tpm2-pytss for 
openSUSE:Factory checked in at 2023-02-17 16:45:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-tpm2-pytss (Old)
 and      /work/SRC/openSUSE:Factory/.python-tpm2-pytss.new.22824 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-tpm2-pytss"

Fri Feb 17 16:45:47 2023 rev:4 rq:1066386 version:2.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-tpm2-pytss/python-tpm2-pytss.changes      
2023-02-16 21:10:00.308275594 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-tpm2-pytss.new.22824/python-tpm2-pytss.changes
   2023-02-17 16:46:14.035277876 +0100
@@ -1,0 +2,5 @@
+Fri Feb 17 13:17:22 UTC 2023 - Alberto Planas Dominguez <[email protected]>
+
+- Add fix_pycparse_float128.patch to fix issue in 32bits platforms
+
+-------------------------------------------------------------------

New:
----
  fix_pycparse_float128.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-tpm2-pytss.spec ++++++
--- /var/tmp/diff_new_pack.7ls3S8/_old  2023-02-17 16:46:14.595281029 +0100
+++ /var/tmp/diff_new_pack.7ls3S8/_new  2023-02-17 16:46:14.599281052 +0100
@@ -27,6 +27,8 @@
 License:        BSD-2-Clause
 URL:            https://github.com/tpm2-software/tpm2-pkcs11
 Source:         %{srcname}-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM fix_pycparse_float128.patch 
gh#tpm2-software/tpm2-pytss#497
+Patch0:         fix_pycparse_float128.patch
 BuildRequires:  %{python_module PyYAML}
 BuildRequires:  %{python_module asn1crypto}
 BuildRequires:  %{python_module cffi}

++++++ fix_pycparse_float128.patch ++++++
>From 9bcd83905e5b7e718fe3787600f3ecf957c66430 Mon Sep 17 00:00:00 2001
From: Alberto Planas <[email protected]>
Date: Fri, 17 Feb 2023 13:58:18 +0100
Subject: [PATCH] setup: define __float128 for pycparse

When compiling in 32bit stddef.h makes use of the __float128 type, that
pycparse cannot recognize.

This patch define the type as "long double", fixing the issue in 32bits
platforms.

Fix #497

Signed-off-by: Alberto Planas <[email protected]>
---
 setup.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 17736597..4554db0b 100644
--- a/setup.py
+++ b/setup.py
@@ -204,7 +204,11 @@ def get_mappings(self):
             if policy_header_path:
                 pdata = preprocess_file(
                     policy_header_path,
-                    cpp_args=["-D__extension__=", "-D__attribute__(x)="],
+                    cpp_args=[
+                        "-D__extension__=",
+                        "-D__attribute__(x)=",
+                        "-D__float128=long double",
+                    ],
                 )
                 parser = c_parser.CParser()
                 past = parser.parse(pdata, "tss2_policy.h")

Reply via email to