summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2016-10-15 10:59:04 -0700
committerArmin Kuster <akuster808@gmail.com>2016-11-01 09:03:15 -0700
commit67cfe62b20486b1598fd33d07e2d467fcba2b309 (patch)
tree8b4fbafabc0265bbacea2b7214b49a06d94dc763
parent399e636c9fb215cfa389eacca029bde1b16cd058 (diff)
downloadmeta-security-67cfe62b20486b1598fd33d07e2d467fcba2b309.tar.gz
tpm-tools: Fix gcc6 compile issue
.8/src/tpm_mgmt/tpm_present.c | ../../../tpm-tools-1.3.8/src/tpm_mgmt/tpm_present.c: In function 'main': | ../../../tpm-tools-1.3.8/src/tpm_mgmt/tpm_present.c:358:5: error: this 'if' clause does not guard... [-Werror=misleading-indentation] | if (szTpmPasswd && !isWellKnown) | ^~ | ../../../tpm-tools-1.3.8/src/tpm_mgmt/tpm_present.c:360:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' | return iRc; | ^~~~~~ Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--recipes-tpm/tpm-tools/tpm-tools-1.3.8/gcc6_missleading_indent_fix.patch24
-rw-r--r--recipes-tpm/tpm-tools/tpm-tools_1.3.8.bb1
2 files changed, 25 insertions, 0 deletions
diff --git a/recipes-tpm/tpm-tools/tpm-tools-1.3.8/gcc6_missleading_indent_fix.patch b/recipes-tpm/tpm-tools/tpm-tools-1.3.8/gcc6_missleading_indent_fix.patch
new file mode 100644
index 0000000..aec5e7a
--- /dev/null
+++ b/recipes-tpm/tpm-tools/tpm-tools-1.3.8/gcc6_missleading_indent_fix.patch
@@ -0,0 +1,24 @@
1Index: tpm-tools-1.3.8/src/tpm_mgmt/tpm_present.c
2===================================================================
3--- tpm-tools-1.3.8.orig/src/tpm_mgmt/tpm_present.c
4+++ tpm-tools-1.3.8/src/tpm_mgmt/tpm_present.c
5@@ -349,13 +349,13 @@ int main(int argc, char **argv)
6 }
7 } while (flags[++i].name);
8
9- out_success:
10+out_success:
11 logSuccess(argv[0]);
12 iRc = 0;
13- out_close:
14+out_close:
15 contextClose(hContext);
16- out:
17- if (szTpmPasswd && !isWellKnown)
18- shredPasswd( szTpmPasswd );
19- return iRc;
20+out:
21+ if (szTpmPasswd && !isWellKnown)
22+ shredPasswd( szTpmPasswd );
23+return iRc;
24 }
diff --git a/recipes-tpm/tpm-tools/tpm-tools_1.3.8.bb b/recipes-tpm/tpm-tools/tpm-tools_1.3.8.bb
index 99ea8ee..790894a 100644
--- a/recipes-tpm/tpm-tools/tpm-tools_1.3.8.bb
+++ b/recipes-tpm/tpm-tools/tpm-tools_1.3.8.bb
@@ -15,6 +15,7 @@ SRC_URI += " \
15 http://downloads.sourceforge.net/project/trousers/${BPN}/${PV}/${BP}.tar.gz \ 15 http://downloads.sourceforge.net/project/trousers/${BPN}/${PV}/${BP}.tar.gz \
16 file://tpm-tools-extendpcr.patch \ 16 file://tpm-tools-extendpcr.patch \
17 file://03-fix-bool-error-parseStringWithValues.patch \ 17 file://03-fix-bool-error-parseStringWithValues.patch \
18 file://gcc6_missleading_indent_fix.patch \
18" 19"
19 20
20SRC_URI[md5sum] = "85a978c4e03fefd4b73cbeadde7c4d0b" 21SRC_URI[md5sum] = "85a978c4e03fefd4b73cbeadde7c4d0b"