Dominique Leuenberger 2020-09-04 09:13:10 +00:00 committed by Git OBS Bridge
commit d2700be82f
3 changed files with 20 additions and 0 deletions

13
ibmswtpm2-fix-ppc32.patch Normal file
View File

@ -0,0 +1,13 @@
diff -ur ibmswtpm2-1637.orig/src/LibSupport.h ibmswtpm2-1637/src/LibSupport.h
--- ibmswtpm2-1637.orig/src/LibSupport.h 2020-05-27 21:35:29.000000000 +0200
+++ ibmswtpm2-1637/src/LibSupport.h 2020-09-01 14:32:06.752690872 +0200
@@ -75,7 +75,8 @@
# define RADIX_BITS 64
# elif defined(__i386__) || defined(__i386) || defined(i386) \
|| defined(_WIN32) || defined(_M_IX86) \
- || defined(_M_ARM) || defined(__arm__) || defined(__thumb__)
+ || defined(_M_ARM) || defined(__arm__) || defined(__thumb__) \
+ || defined(__powerpc__)
# define RADIX_BITS 32
# else
# error Unable to determine RADIX_BITS from compiler environment

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Sep 1 12:34:41 UTC 2020 - Michal Suchanek <msuchanek@suse.de>
- Fix ppc32 build.
+ ibmswtpm2-fix-ppc32.patch
-------------------------------------------------------------------
Mon Aug 17 16:59:04 UTC 2020 - Michal Suchanek <msuchanek@suse.de>

View File

@ -35,6 +35,7 @@ Source: https://sourceforge.net/projects/ibmswtpm2/files/ibmtpm%{version
Patch: makefile.patch
Patch1: ibmswtpm2-TcpServerPosix-Fix-use-of-uninitialized-value.patch
Patch2: ibmswtpm2-NVDynamic-Fix-use-of-uninitialized-value.patch
Patch3: ibmswtpm2-fix-ppc32.patch
BuildRequires: libopenssl-devel >= 1.0
%description