mirror of
https://git.yoctoproject.org/meta-security
synced 2026-05-09 17:40:32 +00:00
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>
This commit is contained in:
@@ -1,30 +0,0 @@
|
|||||||
Title: Fix boolean comparison error (and FTBFS with gcc-5)
|
|
||||||
Date: 2015-06-28
|
|
||||||
Author: Pierre Chifflier <pollux@debian.org>
|
|
||||||
Bug-Debian: http://bugs.debian.org/778147
|
|
||||||
Index: tpm-tools/src/tpm_mgmt/tpm_nvcommon.c
|
|
||||||
===================================================================
|
|
||||||
--- tpm-tools.orig/src/tpm_mgmt/tpm_nvcommon.c
|
|
||||||
+++ tpm-tools/src/tpm_mgmt/tpm_nvcommon.c
|
|
||||||
@@ -140,8 +140,8 @@ int parseStringWithValues(const char *aA
|
|
||||||
aArg);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
- if (!aArg[offset+numbytes] == '|' &&
|
|
||||||
- !aArg[offset+numbytes] == 0) {
|
|
||||||
+ if (!(aArg[offset+numbytes] == '|' ||
|
|
||||||
+ aArg[offset+numbytes] == 0)) {
|
|
||||||
logError(_("Illegal character following "
|
|
||||||
"hexadecimal number in %s\n"),
|
|
||||||
aArg + offset);
|
|
||||||
@@ -164,8 +164,8 @@ int parseStringWithValues(const char *aA
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
- if (!aArg[offset+numbytes] == '|' &&
|
|
||||||
- !aArg[offset+numbytes] == 0) {
|
|
||||||
+ if (!(aArg[offset+numbytes] == '|' ||
|
|
||||||
+ aArg[offset+numbytes] == 0)) {
|
|
||||||
logError(_("Illegal character following decimal "
|
|
||||||
"number in %s\n"),
|
|
||||||
aArg + offset);
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
Index: tpm-tools-1.3.8/src/tpm_mgmt/tpm_present.c
|
|
||||||
===================================================================
|
|
||||||
--- tpm-tools-1.3.8.orig/src/tpm_mgmt/tpm_present.c
|
|
||||||
+++ tpm-tools-1.3.8/src/tpm_mgmt/tpm_present.c
|
|
||||||
@@ -349,13 +349,13 @@ int main(int argc, char **argv)
|
|
||||||
}
|
|
||||||
} while (flags[++i].name);
|
|
||||||
|
|
||||||
- out_success:
|
|
||||||
+out_success:
|
|
||||||
logSuccess(argv[0]);
|
|
||||||
iRc = 0;
|
|
||||||
- out_close:
|
|
||||||
+out_close:
|
|
||||||
contextClose(hContext);
|
|
||||||
- out:
|
|
||||||
- if (szTpmPasswd && !isWellKnown)
|
|
||||||
- shredPasswd( szTpmPasswd );
|
|
||||||
- return iRc;
|
|
||||||
+out:
|
|
||||||
+ if (szTpmPasswd && !isWellKnown)
|
|
||||||
+ shredPasswd( szTpmPasswd );
|
|
||||||
+return iRc;
|
|
||||||
}
|
|
||||||
@@ -8,19 +8,28 @@ DESCRIPTION = " \
|
|||||||
SECTION = "tpm"
|
SECTION = "tpm"
|
||||||
LICENSE = "CPL-1.0"
|
LICENSE = "CPL-1.0"
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=059e8cd6165cb4c31e351f2b69388fd9"
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=059e8cd6165cb4c31e351f2b69388fd9"
|
||||||
|
|
||||||
DEPENDS = "libtspi openssl"
|
DEPENDS = "libtspi openssl"
|
||||||
DEPENDS_class-native = "trousers-native"
|
DEPENDS_class-native = "trousers-native"
|
||||||
|
|
||||||
SRC_URI += " \
|
SRCREV = "80954ab83be8d091c6e3112514945556aaa09d39"
|
||||||
http://downloads.sourceforge.net/project/trousers/${BPN}/${PV}/${BP}.tar.gz \
|
SRC_URI = " \
|
||||||
file://tpm-tools-extendpcr.patch \
|
git://git.code.sf.net/p/trousers/tpm-tools \
|
||||||
file://03-fix-bool-error-parseStringWithValues.patch \
|
file://tpm-tools-extendpcr.patch \
|
||||||
file://gcc6_missleading_indent_fix.patch \
|
"
|
||||||
"
|
|
||||||
|
|
||||||
SRC_URI[md5sum] = "85a978c4e03fefd4b73cbeadde7c4d0b"
|
PV = "1.3.9+git${SRCPV}"
|
||||||
SRC_URI[sha256sum] = "66eb4ff095542403db6b4bd4b574e8a5c08084fe4e9e5aa9a829ee84e20bea83"
|
|
||||||
|
|
||||||
inherit autotools gettext
|
inherit autotools-brokensep gettext
|
||||||
|
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
do_configure_prepend () {
|
||||||
|
mkdir -p po
|
||||||
|
mkdir -p m4
|
||||||
|
cp -R po_/* po/
|
||||||
|
touch po/Makefile.in.in
|
||||||
|
touch m4/Makefile.am
|
||||||
|
}
|
||||||
|
|
||||||
BBCLASSEXTEND = "native"
|
BBCLASSEXTEND = "native"
|
||||||
Reference in New Issue
Block a user