diff options
| author | Armin Kuster <akuster808@gmail.com> | 2017-01-28 07:28:08 -0800 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2017-02-18 11:43:20 -0800 |
| commit | bacf203b87ac2325ebd8d3977a5ad040daf486ba (patch) | |
| tree | e79634e439e5e8c9cfb685131d7f6d4b9008a232 | |
| parent | 3ca5833bf3e82cf7c6b5c92cab93722aa1151e3c (diff) | |
| download | meta-security-bacf203b87ac2325ebd8d3977a5ad040daf486ba.tar.gz | |
tpm-tools: update to 1.3.9
remove incorperated patches.
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
| -rw-r--r-- | recipes-tpm/tpm-tools/files/tpm-tools-extendpcr.patch (renamed from recipes-tpm/tpm-tools/tpm-tools-1.3.8/tpm-tools-extendpcr.patch) | 0 | ||||
| -rw-r--r-- | recipes-tpm/tpm-tools/tpm-tools-1.3.8/03-fix-bool-error-parseStringWithValues.patch | 30 | ||||
| -rw-r--r-- | recipes-tpm/tpm-tools/tpm-tools-1.3.8/gcc6_missleading_indent_fix.patch | 24 | ||||
| -rw-r--r-- | recipes-tpm/tpm-tools/tpm-tools_git.bb (renamed from recipes-tpm/tpm-tools/tpm-tools_1.3.8.bb) | 27 |
4 files changed, 18 insertions, 63 deletions
diff --git a/recipes-tpm/tpm-tools/tpm-tools-1.3.8/tpm-tools-extendpcr.patch b/recipes-tpm/tpm-tools/files/tpm-tools-extendpcr.patch index ab5e683..ab5e683 100644 --- a/recipes-tpm/tpm-tools/tpm-tools-1.3.8/tpm-tools-extendpcr.patch +++ b/recipes-tpm/tpm-tools/files/tpm-tools-extendpcr.patch | |||
diff --git a/recipes-tpm/tpm-tools/tpm-tools-1.3.8/03-fix-bool-error-parseStringWithValues.patch b/recipes-tpm/tpm-tools/tpm-tools-1.3.8/03-fix-bool-error-parseStringWithValues.patch deleted file mode 100644 index 9497e89..0000000 --- a/recipes-tpm/tpm-tools/tpm-tools-1.3.8/03-fix-bool-error-parseStringWithValues.patch +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | Title: Fix boolean comparison error (and FTBFS with gcc-5) | ||
| 2 | Date: 2015-06-28 | ||
| 3 | Author: Pierre Chifflier <pollux@debian.org> | ||
| 4 | Bug-Debian: http://bugs.debian.org/778147 | ||
| 5 | Index: tpm-tools/src/tpm_mgmt/tpm_nvcommon.c | ||
| 6 | =================================================================== | ||
| 7 | --- tpm-tools.orig/src/tpm_mgmt/tpm_nvcommon.c | ||
| 8 | +++ tpm-tools/src/tpm_mgmt/tpm_nvcommon.c | ||
| 9 | @@ -140,8 +140,8 @@ int parseStringWithValues(const char *aA | ||
| 10 | aArg); | ||
| 11 | return -1; | ||
| 12 | } | ||
| 13 | - if (!aArg[offset+numbytes] == '|' && | ||
| 14 | - !aArg[offset+numbytes] == 0) { | ||
| 15 | + if (!(aArg[offset+numbytes] == '|' || | ||
| 16 | + aArg[offset+numbytes] == 0)) { | ||
| 17 | logError(_("Illegal character following " | ||
| 18 | "hexadecimal number in %s\n"), | ||
| 19 | aArg + offset); | ||
| 20 | @@ -164,8 +164,8 @@ int parseStringWithValues(const char *aA | ||
| 21 | return -1; | ||
| 22 | } | ||
| 23 | |||
| 24 | - if (!aArg[offset+numbytes] == '|' && | ||
| 25 | - !aArg[offset+numbytes] == 0) { | ||
| 26 | + if (!(aArg[offset+numbytes] == '|' || | ||
| 27 | + aArg[offset+numbytes] == 0)) { | ||
| 28 | logError(_("Illegal character following decimal " | ||
| 29 | "number in %s\n"), | ||
| 30 | aArg + offset); | ||
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 deleted file mode 100644 index aec5e7a..0000000 --- a/recipes-tpm/tpm-tools/tpm-tools-1.3.8/gcc6_missleading_indent_fix.patch +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | Index: 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_git.bb index 790894a..83f1091 100644 --- a/recipes-tpm/tpm-tools/tpm-tools_1.3.8.bb +++ b/recipes-tpm/tpm-tools/tpm-tools_git.bb | |||
| @@ -8,19 +8,28 @@ DESCRIPTION = " \ | |||
| 8 | SECTION = "tpm" | 8 | SECTION = "tpm" |
| 9 | LICENSE = "CPL-1.0" | 9 | LICENSE = "CPL-1.0" |
| 10 | LIC_FILES_CHKSUM = "file://LICENSE;md5=059e8cd6165cb4c31e351f2b69388fd9" | 10 | LIC_FILES_CHKSUM = "file://LICENSE;md5=059e8cd6165cb4c31e351f2b69388fd9" |
| 11 | |||
| 11 | DEPENDS = "libtspi openssl" | 12 | DEPENDS = "libtspi openssl" |
| 12 | DEPENDS_class-native = "trousers-native" | 13 | DEPENDS_class-native = "trousers-native" |
| 13 | 14 | ||
| 14 | SRC_URI += " \ | 15 | SRCREV = "80954ab83be8d091c6e3112514945556aaa09d39" |
| 15 | http://downloads.sourceforge.net/project/trousers/${BPN}/${PV}/${BP}.tar.gz \ | 16 | SRC_URI = " \ |
| 16 | file://tpm-tools-extendpcr.patch \ | 17 | git://git.code.sf.net/p/trousers/tpm-tools \ |
| 17 | file://03-fix-bool-error-parseStringWithValues.patch \ | 18 | file://tpm-tools-extendpcr.patch \ |
| 18 | file://gcc6_missleading_indent_fix.patch \ | 19 | " |
| 19 | " | 20 | |
| 21 | PV = "1.3.9+git${SRCPV}" | ||
| 22 | |||
| 23 | inherit autotools-brokensep gettext | ||
| 20 | 24 | ||
| 21 | SRC_URI[md5sum] = "85a978c4e03fefd4b73cbeadde7c4d0b" | 25 | S = "${WORKDIR}/git" |
| 22 | SRC_URI[sha256sum] = "66eb4ff095542403db6b4bd4b574e8a5c08084fe4e9e5aa9a829ee84e20bea83" | ||
| 23 | 26 | ||
| 24 | inherit autotools gettext | 27 | do_configure_prepend () { |
| 28 | mkdir -p po | ||
| 29 | mkdir -p m4 | ||
| 30 | cp -R po_/* po/ | ||
| 31 | touch po/Makefile.in.in | ||
| 32 | touch m4/Makefile.am | ||
| 33 | } | ||
| 25 | 34 | ||
| 26 | BBCLASSEXTEND = "native" | 35 | BBCLASSEXTEND = "native" |
