- tpm2.0-tools-fix-hardening.patch: do not disable fortify,
do not use -Wstack-protector as it warns also for non-utilized functions and then -Werror fails. OBS-URL: https://build.opensuse.org/package/show/security/tpm2.0-tools?expand=0&rev=17
This commit is contained in:
parent
8e77d6920b
commit
3e796b468b
14
tpm2.0-tools-fix-hardening.patch
Normal file
14
tpm2.0-tools-fix-hardening.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
--- tpm2.0-tools-2.0.0/configure.ac.fix 2017-06-02 09:15:49.118425187 +0200
|
||||||
|
+++ tpm2.0-tools-2.0.0/configure.ac 2017-06-02 09:15:59.698416673 +0200
|
||||||
|
@@ -100,11 +100,9 @@
|
||||||
|
|
||||||
|
add_hardened_c_flag([-Wformat])
|
||||||
|
add_hardened_c_flag([-Wformat-security])
|
||||||
|
- add_hardened_c_flag([-Wstack-protector])
|
||||||
|
add_hardened_c_flag([-fstack-protector-all])
|
||||||
|
|
||||||
|
add_hardened_define_flag([-D_FORTIFY_SOURCE=2])
|
||||||
|
- add_hardened_define_flag([-U_FORTIFY_SOURCE])
|
||||||
|
|
||||||
|
add_hardened_c_flag([-fPIC])
|
||||||
|
add_hardened_ld_flag([[-shared]])
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 2 07:16:45 UTC 2017 - meissner@suse.com
|
||||||
|
|
||||||
|
- tpm2.0-tools-fix-hardening.patch: do not disable fortify,
|
||||||
|
do not use -Wstack-protector as it warns also for non-utilized
|
||||||
|
functions and then -Werror fails.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 10 11:52:40 UTC 2017 - matthias.gerstner@suse.com
|
Wed May 10 11:52:40 UTC 2017 - matthias.gerstner@suse.com
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@ License: BSD-3-Clause
|
|||||||
Group: Productivity/Security
|
Group: Productivity/Security
|
||||||
Url: https://github.com/01org/tpm2.0-tools
|
Url: https://github.com/01org/tpm2.0-tools
|
||||||
Source0: https://github.com/01org/tpm2.0-tools/archive/%{version}.zip
|
Source0: https://github.com/01org/tpm2.0-tools/archive/%{version}.zip
|
||||||
|
Patch0: tpm2.0-tools-fix-hardening.patch
|
||||||
BuildRequires: autoconf-archive
|
BuildRequires: autoconf-archive
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -44,6 +45,7 @@ associated interfaces.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
bash ./bootstrap
|
bash ./bootstrap
|
||||||
|
Loading…
Reference in New Issue
Block a user