]> git.pld-linux.org Git - packages/ibmswtpm2.git/commitdiff
- added openssl3 patch, use -Wno-error=deprecated-declarations to fix build with... auto/th/ibmswtpm2-1661-2
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 2 Jul 2022 06:40:19 +0000 (08:40 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 2 Jul 2022 06:40:19 +0000 (08:40 +0200)
- release 2

ibmswtpm2-openssl3.patch [new file with mode: 0644]
ibmswtpm2.spec

diff --git a/ibmswtpm2-openssl3.patch b/ibmswtpm2-openssl3.patch
new file mode 100644 (file)
index 0000000..da88826
--- /dev/null
@@ -0,0 +1,11 @@
+--- ibmswtpm2-1661/src/TpmToOsslMath.h.orig    2021-01-23 00:14:01.000000000 +0100
++++ ibmswtpm2-1661/src/TpmToOsslMath.h 2022-07-01 22:24:21.822533492 +0200
+@@ -73,7 +73,7 @@
+ #define SYMMETRIC_ALIGNMENT RADIX_BYTES
+-#if OPENSSL_VERSION_NUMBER >= 0x10200000L
++#if OPENSSL_VERSION_NUMBER >= 0x30100000L
+ // Check the bignum_st definition in crypto/bn/bn_lcl.h and either update the
+ // version check or provide the new definition for this version.
+ #   error Untested OpenSSL version
index fa12fad057995f25195477ccc99c4aa139970015..1bcd9c64f34947650d1a6fd51123689b818cde7d 100644 (file)
@@ -2,11 +2,12 @@ Summary:      IBM's Software TPM 2.0
 Summary(pl.UTF-8):     Programowy TPM 2.0 stworzony przez IBM
 Name:          ibmswtpm2
 Version:       1661
-Release:       1
+Release:       2
 License:       BSD
 Group:         Development/Tools
 Source0:       https://downloads.sourceforge.net/ibmswtpm2/ibmtpm%{version}.tar.gz
 # Source0-md5: df691c9c548023c1126742ff9213c006
+Patch0:                %{name}-openssl3.patch
 URL:           https://sourceforge.net/projects/ibmswtpm2/
 BuildRequires: openssl-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -23,11 +24,12 @@ Microsoft z dodatkowymi plikami dopełniającymi implementację.
 
 %prep
 %setup -q -c
+%patch0 -p1
 
 %build
 %{__make} -C src \
        CC="%{__cc}" \
-       CCFLAGS="%{rpmcflags} %{rpmcppflags} -Wall -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Werror -Wsign-compare -Wno-uninitialized -DTPM_POSIX -D_POSIX_ -DTPM_NUVOTON -I. -c" \
+       CCFLAGS="%{rpmcflags} %{rpmcppflags} -Wall -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Werror -Wsign-compare -Wno-uninitialized -Wno-error=deprecated-declarations -DTPM_POSIX -D_POSIX_ -DTPM_NUVOTON -I. -c" \
        LNFLAGS="%{rpmldflags} %{rpmcflags} -lcrypto -lpthread -lrt"
 
 %install
This page took 0.094748 seconds and 4 git commands to generate.