[packages/libtpms] - added x32 patch

qboosh qboosh at pld-linux.org
Mon Feb 21 22:08:15 CET 2022


commit f3c858f57feeab779634448bf552d5c049b771ba
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Feb 21 22:10:01 2022 +0100

    - added x32 patch

 libtpms-x32.patch | 12 ++++++++++++
 libtpms.spec      |  2 ++
 2 files changed, 14 insertions(+)
---
diff --git a/libtpms.spec b/libtpms.spec
index c24fcfd..9c3f39b 100644
--- a/libtpms.spec
+++ b/libtpms.spec
@@ -12,6 +12,7 @@ Group:		Libraries
 #Source0Download: https://github.com/stefanberger/libtpms/tags
 Source0:	https://github.com/stefanberger/libtpms/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	8489cc4ade32f63c71697bb36f349c59
+Patch0:		%{name}-x32.patch
 URL:		https://github.com/stefanberger/libtpms
 BuildRequires:	autoconf >= 2.69
 BuildRequires:	automake >= 1.6
@@ -54,6 +55,7 @@ Statyczna biblioteka libtpms.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
diff --git a/libtpms-x32.patch b/libtpms-x32.patch
new file mode 100644
index 0000000..81328ef
--- /dev/null
+++ b/libtpms-x32.patch
@@ -0,0 +1,12 @@
+--- libtpms-0.9.2/src/tpm2/TpmProfile.h.orig	2022-01-05 21:59:06.000000000 +0100
++++ libtpms-0.9.2/src/tpm2/TpmProfile.h	2022-02-21 21:56:29.918521366 +0100
+@@ -177,6 +177,9 @@
+ # ifdef THIRTY_TWO_BIT
+ #  define RADIX_BITS                     32
+ # endif
++# ifdef SIXTY_FOUR_BIT
++#  define RADIX_BITS                     64
++# endif
+ # ifdef SIXTY_FOUR_BIT_LONG
+ #  define RADIX_BITS                     64
+ # endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libtpms.git/commitdiff/f3c858f57feeab779634448bf552d5c049b771ba



More information about the pld-cvs-commit mailing list