summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmri Sarig <omri.sarig13@gmail.com>2025-03-11 11:33:33 +0100
committerArmin Kuster <akuster808@gmail.com>2025-04-13 14:07:57 -0400
commit784ca4b6584101e971b2d5d76ec7b716ad1301b5 (patch)
tree34b36ed9e39fe2e85bb48a1006e76fe759c0912d
parent75a6ea387b1f48d875ae23ed92a8346c93720f0f (diff)
downloadmeta-security-784ca4b6584101e971b2d5d76ec7b716ad1301b5.tar.gz
tpm2-pkcs11: Add tools python runtime dependenciesHEADwalnascarmaster
The tpm2-pkcs11-tools python module is importing several modules which are not currently included in it's dependencies. This causes the script invocation to fail. The current commit adds the relevant dependencies, to ensure that the python module is always able to run. The relevant dependencies are: * python3-fcntl: To add the fcntl module, imported in db.py. * python3-sqlite3: To add the sqlite3 module, imported in db.py. * python3-tpm2-pytss: To add the tpm2_pytss module, imported in utils.py. * python3-compression: To add the zipfile module, imported through "importlib.metadata import distribution" in tpm2_ptool. Signed-off-by: Omri Sarig <omri.sarig13@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-tpm/recipes-tpm2/tpm2-pkcs11/tpm2-pkcs11_1.9.1.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-tpm/recipes-tpm2/tpm2-pkcs11/tpm2-pkcs11_1.9.1.bb b/meta-tpm/recipes-tpm2/tpm2-pkcs11/tpm2-pkcs11_1.9.1.bb
index a7d8170..331dc4f 100644
--- a/meta-tpm/recipes-tpm2/tpm2-pkcs11/tpm2-pkcs11_1.9.1.bb
+++ b/meta-tpm/recipes-tpm2/tpm2-pkcs11/tpm2-pkcs11_1.9.1.bb
@@ -44,6 +44,6 @@ FILES:${PN} += "\
44INSANE_SKIP:${PN} += "dev-so" 44INSANE_SKIP:${PN} += "dev-so"
45 45
46RDEPENDS:${PN} = "p11-kit tpm2-tools " 46RDEPENDS:${PN} = "p11-kit tpm2-tools "
47RDEPENDS:${PN}-tools = "python3-pyyaml python3-cryptography python3-pyasn1-modules" 47RDEPENDS:${PN}-tools = "python3-pyyaml python3-cryptography python3-pyasn1-modules python3-compression python3-fcntl python3-sqlite3 python3-tpm2-pytss"
48 48
49BBCLASSEXTEND = "native nativesdk" 49BBCLASSEXTEND = "native nativesdk"