Skip to contentSkip to conversation

tpm2-tools: Remove unnecessary and optional dependencies

PATCH New Peter Kjellerstedt 1 participant 1 message Apr 24, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tpm2-tools: Remove unnecessary and optional dependencies

* The dependency on autoconf-archive is only needed when building from the Git repository (and it should really be autoconf-archive-native).
* Removing the build dependency on tpm2-abrmd does not change the output in any way, i.e., nothing is used from it.
* The runtime dependency on libtss2 is added automatically by bitbake since /usr/bin/tpm2 is linked with libtss2-esys.so.0.
* The runtime dependency on tpm2-abrmd is optional. Such dependencies are better handled at a higher level, e.g., by depending on packagegroup-security-tpm2.

---
 meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.5.bb | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.5.bb +1 -4
index ef73238..8119bb1 100644
@@ -4,7 +4,7 @@ LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://docs/LICENSE;md5=a846608d090aa64494c45fc147cc12e3"
 SECTION = "tpm"
 
-DEPENDS = "tpm2-abrmd tpm2-tss openssl curl autoconf-archive"
+DEPENDS = "tpm2-tss openssl curl"
 
 SRC_URI = "https://github.com/tpm2-software/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.gz"
 
@@ -13,6 +13,3 @@ SRC_URI[sha256sum] = "1fdb49c730537bfdaed088884881a61e3bfd121e957ec0bdceeec02612
 UPSTREAM_CHECK_URI = "https://github.com/tpm2-software/${BPN}/releases"
 
 inherit autotools pkgconfig bash-completion
-
-# need tss-esys
-RDEPENDS:${PN} = "libtss2 tpm2-abrmd"