This commit is contained in:
parent
3e796b468b
commit
867d9609b5
26
tpm2.0-tools-fix-gcc7.patch
Normal file
26
tpm2.0-tools-fix-gcc7.patch
Normal file
@ -0,0 +1,26 @@
|
||||
Index: tpm2.0-tools-2.0.0/tools/main.c
|
||||
===================================================================
|
||||
--- tpm2.0-tools-2.0.0.orig/tools/main.c
|
||||
+++ tpm2.0-tools-2.0.0/tools/main.c
|
||||
@@ -61,7 +61,7 @@ main (int argc,
|
||||
execute_man (argv[0], envp);
|
||||
fprintf (stderr,
|
||||
"failed to load manpage, check your environment / PATH\n");
|
||||
- /* no break */
|
||||
+ /* FALLTHROUGH */
|
||||
case 2:
|
||||
exit (1);
|
||||
}
|
||||
Index: tpm2.0-tools-2.0.0/tools/tpm2_dump_capability.c
|
||||
===================================================================
|
||||
--- tpm2.0-tools-2.0.0.orig/tools/tpm2_dump_capability.c
|
||||
+++ tpm2.0-tools-2.0.0/tools/tpm2_dump_capability.c
|
||||
@@ -595,7 +595,7 @@ dump_tpm_capability (TPMU_CAPABILITIES
|
||||
case TPM_CAP_COMMANDS:
|
||||
dump_command_attr_array (capabilities->command.commandAttributes,
|
||||
capabilities->command.count);
|
||||
- /* no break */
|
||||
+ /* FALLTHROUGH */
|
||||
default:
|
||||
return 1;
|
||||
}
|
@ -25,6 +25,7 @@ Group: Productivity/Security
|
||||
Url: https://github.com/01org/tpm2.0-tools
|
||||
Source0: https://github.com/01org/tpm2.0-tools/archive/%{version}.zip
|
||||
Patch0: tpm2.0-tools-fix-hardening.patch
|
||||
Patch1: tpm2.0-tools-fix-gcc7.patch
|
||||
BuildRequires: autoconf-archive
|
||||
BuildRequires: automake
|
||||
BuildRequires: gcc-c++
|
||||
@ -46,6 +47,7 @@ associated interfaces.
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
bash ./bootstrap
|
||||
|
Loading…
Reference in New Issue
Block a user