tpm2-tss: update to 3.1.0
PATCH 1/2 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 <[email protected]>
---
...fix-compatibility-with-autoconf-2.70.patch | 48 -------------------
.../tpm2-tss/tpm2-tss/fixup_hosttools.patch | 26 ++++++++++
.../{tpm2-tss_3.0.3.bb => tpm2-tss_3.1.0.bb} | 16 +++++--
3 files changed, 38 insertions(+), 52 deletions(-)
delete mode 100644 meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss/0001-configure.ac-fix-compatibility-with-autoconf-2.70.patch
create mode 100644 meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss/fixup_hosttools.patch
rename meta-tpm/recipes-tpm2/tpm2-tss/{tpm2-tss_3.0.3.bb => tpm2-tss_3.1.0.bb} (88%)meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss/0001-configure.ac-fix-compatibility-with-autoconf-2.70.patch deleted +0 -48
@@ -1,48 +0,0 @@ -From 03cca78d24d716eec792f86f5b0bc69886fad981 Mon Sep 17 00:00:00 2001 -From: Patrick McCarty <[email protected]> -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 <[email protected]> - -Upstream-Status: Backport -Signed-off-by: Armin Kuster <[email protected]> - ---- - 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
meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss/fixup_hosttools.patch new file +26 -0
@@ -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 <[email protected]> + +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]) +
meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_3.1.0.bb renamed from meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_3.0.3.bb +12 -4
@@ -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 \
Signature · 1 line
2.25.1
PATCH 2/2 parsec-service: fix compile issue.
| thread 'main' panicked at 'Failed to find tss2-sys library.: Command { command: "\"pkg-config\" \"--libs\" \"--cflags\" \"tss2-sys\" \"tss2-sys >= 2.3.3\"", cause: Os { code: 2, kind: NotFound, message: "No such file or directory" } }', /home/akuster/oss/clean/poky/build/tmp-glibc/work/cortexa57-oe-linux/parsec-service/0.8.1-r0/cargo_home/bitbake/tss-esapi-sys-0.2.0/build.rs:62:10
add inherit pkgconfig
Signed-off-by Armin Kuster <[email protected]>
--- .../recipes-parsec/parsec-service/parsec-service_0.8.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-parsec/recipes-parsec/parsec-service/parsec-service_0.8.1.bb +1 -1
@@ -23,7 +23,7 @@ PACKAGECONFIG[TS] = "trusted-service-provider,,libts,libts" PARSEC_FEATURES = "${@d.getVar('PACKAGECONFIG_CONFARGS',True).strip().replace(' ', ',')}" CARGO_BUILD_FLAGS += " --features ${PARSEC_FEATURES}" -inherit systemd +inherit pkgconfig systemd SYSTEMD_SERVICE:${PN} = "parsec.service" inherit update-rc.d
Signature · 1 line
2.25.1