Accepting request 1073545 from home:msmeissn:branches:security
- swtpm-fix-build.patch: disable -Wstack-protector, it fails on s390x OBS-URL: https://build.opensuse.org/request/show/1073545 OBS-URL: https://build.opensuse.org/package/show/security/swtpm?expand=0&rev=33
This commit is contained in:
parent
93f24082f9
commit
8828873bbc
19
swtpm-fix-build.patch
Normal file
19
swtpm-fix-build.patch
Normal file
@ -0,0 +1,19 @@
|
||||
Index: swtpm-0.8.0/configure.ac
|
||||
===================================================================
|
||||
--- swtpm-0.8.0.orig/configure.ac
|
||||
+++ swtpm-0.8.0/configure.ac
|
||||
@@ -418,11 +418,11 @@ if test "x$enable_hardening" != "xno"; t
|
||||
# Some versions of gcc fail with -Wstack-protector,
|
||||
# some with -Wstack-protector-strong enabled
|
||||
if ! $CC -fstack-protector-strong -Wstack-protector $srcdir/include/swtpm/tpm_ioctl.h 2>/dev/null; then
|
||||
- if $CC -fstack-protector -Wstack-protector $srcdir/include/swtpm/tpm_ioctl.h 2>/dev/null; then
|
||||
- HARDENING_CFLAGS="-fstack-protector -Wstack-protector"
|
||||
+ if $CC -fstack-protector $srcdir/include/swtpm/tpm_ioctl.h 2>/dev/null; then
|
||||
+ HARDENING_CFLAGS="-fstack-protector"
|
||||
fi
|
||||
else
|
||||
- HARDENING_CFLAGS="-fstack-protector-strong -Wstack-protector"
|
||||
+ HARDENING_CFLAGS="-fstack-protector-strong"
|
||||
fi
|
||||
|
||||
dnl Only support -D_FORTIFY_SOURCE=2 and have higher levels passed in by user
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 21 12:45:54 UTC 2023 - Marcus Meissner <meissner@suse.com>
|
||||
|
||||
- swtpm-fix-build.patch: disable -Wstack-protector, it fails on s390x
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 6 20:21:50 UTC 2023 - Alberto Planas Dominguez <aplanas@suse.com>
|
||||
|
||||
|
@ -32,6 +32,7 @@ Group: System/Base
|
||||
URL: https://github.com/stefanberger/swtpm
|
||||
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
Source100: swtpm-rpmlintrc
|
||||
Patch0: swtpm-fix-build.patch
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: expect
|
||||
|
Loading…
Reference in New Issue
Block a user