tpm2-tss: update to 3.1.0

Drop 001-configure.ac-fix-compatibility-with-autoconf-2.70.patch which is included in update.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Armin Kuster
2022-02-13 13:05:41 -08:00
parent c62664348d
commit 32c0e160ea
3 changed files with 38 additions and 52 deletions

View File

@@ -1,48 +0,0 @@
From 03cca78d24d716eec792f86f5b0bc69886fad981 Mon Sep 17 00:00:00 2001
From: Patrick McCarty <patrick.mccarty@intel.com>
Date: Fri, 18 Dec 2020 01:54:05 +0000
Subject: [PATCH] configure.ac: fix compatibility with autoconf 2.70
With autoconf 2.70, not quoting the second argument to one of the AS_IF
macro expansions leads to generation of invalid shell code affecting the
first nested ERROR_IF_NO_PROG expansion.
The invalid shell code leads to an error resembling:
./configure: line 18826: syntax error near unexpected token `newline'
./configure: line 18826: ` '''
Fix the issue by quoting the second argument to the affected AS_IF,
similar to the quoting found elsewhere in configure.ac.
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
Upstream-Status: Backport
Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: tpm2-tss-3.0.3/configure.ac
===================================================================
--- tpm2-tss-3.0.3.orig/configure.ac
+++ tpm2-tss-3.0.3/configure.ac
@@ -279,7 +279,7 @@ AC_ARG_ENABLE([integration],
[build and execute integration tests])],,
[enable_integration=no])
AS_IF([test "x$enable_integration" = "xyes"],
- AS_IF([test "$HOSTOS" = "Linux"],
+ [AS_IF([test "$HOSTOS" = "Linux"],
[ERROR_IF_NO_PROG([ss])],
[ERROR_IF_NO_PROG([sockstat])])
ERROR_IF_NO_PROG([echo])
@@ -328,7 +328,7 @@ AS_IF([test "x$enable_integration" = "xy
[AC_MSG_ERROR([No simulator executable found in PATH for testing TCTI.])])
AC_SUBST([INTEGRATION_TCTI], [$integration_tcti])
AC_SUBST([INTEGRATION_ARGS], [$integration_args])
- AC_SUBST([ENABLE_INTEGRATION], [$enable_integration]))
+ AC_SUBST([ENABLE_INTEGRATION], [$enable_integration])])
AM_CONDITIONAL([ENABLE_INTEGRATION],[test "x$enable_integration" = "xyes"])
#
# sanitizer compiler flags

View File

@@ -0,0 +1,26 @@
revert configure: add checks for all tools used by make install
Not appropriate for cross build env.
Upstream-Status: OE [inappropriate]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Index: tpm2-tss-3.1.0/configure.ac
===================================================================
--- tpm2-tss-3.1.0.orig/configure.ac
+++ tpm2-tss-3.1.0/configure.ac
@@ -471,14 +471,6 @@ AM_CONDITIONAL(SYSD_SYSUSERS, test "x$sy
AC_CHECK_PROG(systemd_tmpfiles, systemd-tmpfiles, yes)
AM_CONDITIONAL(SYSD_TMPFILES, test "x$systemd_tmpfiles" = "xyes")
# Check all tools used by make install
-AS_IF([test "$HOSTOS" = "Linux"],
- [ERROR_IF_NO_PROG([groupadd])
- ERROR_IF_NO_PROG([useradd])
- ERROR_IF_NO_PROG([id])
- ERROR_IF_NO_PROG([chown])
- ERROR_IF_NO_PROG([chmod])
- ERROR_IF_NO_PROG([mkdir])
- ERROR_IF_NO_PROG([setfacl])])
AC_SUBST([PATH])

View File

@@ -7,9 +7,10 @@ SECTION = "tpm"
DEPENDS = "autoconf-archive-native libgcrypt openssl"
SRC_URI = "https://github.com/tpm2-software/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.gz \
file://0001-configure.ac-fix-compatibility-with-autoconf-2.70.patch \
"
SRC_URI[sha256sum] = "78392be7309baf47f51b122f566ac915fd4d1760ea78571cba2e1484f9b5be17"
file://fixup_hosttools.patch \
"
SRC_URI[sha256sum] = "8900a6603f74310b749b65f23c3461cde6e2a23a5f61058b21004c25f9cf19e8"
inherit autotools pkgconfig systemd extrausers
@@ -18,14 +19,19 @@ PACKAGECONFIG[oxygen] = ",--disable-doxygen-doc, "
PACKAGECONFIG[fapi] = "--enable-fapi,--disable-fapi,curl json-c "
EXTRA_OECONF += "--enable-static --with-udevrulesdir=${nonarch_base_libdir}/udev/rules.d/"
EXTRA_OECONF += "--runstatedir=/run"
EXTRA_OECONF:remove = " --disable-static"
EXTRA_USERS_PARAMS = "\
useradd -p '' tss; \
groupadd tss; \
"
do_install:append() {
# Remove /run as it is created on startup
rm -rf ${D}/run
}
PROVIDES = "${PACKAGES}"
PACKAGES = " \
${PN} \
@@ -75,6 +81,8 @@ FILES:libtss2-staticdev = "${libdir}/libtss*a"
FILES:${PN} = "\
${libdir}/udev \
/var/lib/tpm2-tss \
/var/run \
${nonarch_base_libdir}/udev \
${sysconfdir}/tmpfiles.d \
${sysconfdir}/tpm2-tss \