aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2021-03-30 20:41:41 -0700
committerArmin Kuster <akuster808@gmail.com>2021-04-02 08:21:34 -0700
commite70a97b5702ce4153a5159f16d7b88f360c3b3ec (patch)
tree7e293640fbf91f2e17ef31762674719ab6a9bcdb
parent6bcba5f95c5eba4fb54efc26712a4604f2851c9d (diff)
downloadmeta-security-e70a97b5702ce4153a5159f16d7b88f360c3b3ec.tar.gz
meta-security-e70a97b5702ce4153a5159f16d7b88f360c3b3ec.tar.bz2
meta-security-e70a97b5702ce4153a5159f16d7b88f360c3b3ec.zip
swtpm: file pip3 issue
need native pip3, was using host's Signed-off-by: Armin Kuster <akuster808@gmail.com> -- V2] add python3-cryptography-native to DEPENDS forgot to add changes.
-rw-r--r--meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb b/meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb
index b7ff2ad..ab77196 100644
--- a/meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb
+++ b/meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb
@@ -7,7 +7,7 @@ DEPENDS = "libtasn1 coreutils-native expect socat glib-2.0 net-tools-native libt
# configure checks for the tools already during compilation and
# then swtpm_setup needs them at runtime
-DEPENDS += "tpm-tools-native expect-native socat-native"
+DEPENDS_append = " tpm-tools-native expect-native socat-native python3-pip-native python3-cryptography-native"
SRCREV = "e59c0c1a7b4c8d652dbb280fd6126895a7057464"
SRC_URI = "git://github.com/stefanberger/swtpm.git;branch=stable-0.5 \
@@ -17,8 +17,8 @@ PE = "1"
S = "${WORKDIR}/git"
-inherit autotools pkgconfig python3-dir
PARALLEL_MAKE = ""
+inherit autotools pkgconfig python3native
TSS_USER="tss"
TSS_GROUP="tss"
@@ -41,7 +41,7 @@ USERADD_PARAM_${PN} = "--system -g ${TSS_GROUP} --home-dir \
PACKAGES =+ "${PN}-python"
-FILES_${PN}-python = "${nonarch_libdir}/${PYTHON_PN}/dist-packages/* "
+FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
PACKAGE_BEFORE_PN = "${PN}-cuse"
FILES_${PN}-cuse = "${bindir}/swtpm_cuse"