FS#74498 - [gnutls] Missing dependency on tpm2-tss
Attached to Project:
Arch Linux
Opened by Alex Henrie (alex.henrie) - Monday, 18 April 2022, 20:38 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 05 May 2022, 16:03 GMT
Opened by Alex Henrie (alex.henrie) - Monday, 18 April 2022, 20:38 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 05 May 2022, 16:03 GMT
|
Details
Because libtss2 is not available at build time, the gnutls
package is missing the tpmtool program. The tpmtool man page
is still installed, however.
Please add tpm2-tss to the gnutls package dependencies. |
This task depends upon
Closed by Andreas Radke (AndyRTR)
Thursday, 05 May 2022, 16:03 GMT
Reason for closing: Fixed
Additional comments about closing: added optional dependency on tpm2-tss
Thursday, 05 May 2022, 16:03 GMT
Reason for closing: Fixed
Additional comments about closing: added optional dependency on tpm2-tss
Adding tpm2-tss at build time won't enable tpm2 support. I guess this would require to also add trousers (currently in AUR).
checking for P11_KIT... yes
checking for TSS2... yes
checking for tss library... no
configure: WARNING:
***
*** trousers was not found. TPM support will be disabled.
I don't have any intention to add another security related dependency to core here unless we have a strong need for this. Leaving tpm headers, manpage and doc is no bug to me.
TPM 1.2 (accessed through the "trousers" stack) is unmaintained legacy hard- and software, so I would be hesitant to bring it into the official repositories. tpmtool only supports TPM 1.2, so it is not useful unless you have a legacy TPM 1.2 device. The equivalent of tpmtool for TPM 2.0 devices is tpm2tss-genkey from the tpm2-tss-engine package.
Regarding TPM 2.0 support, you can see that it is already enabled "by accident" in gnutls from the above configure output: "checking for TSS2... yes" (as well as "TPM2 support: yes" further down) indicates that tpm2-tss was found in the build environment because it is a transitive dependency of the base-devel group. I therefore suggest enabling it "properly" by adding it explicitly to make- and optdepends (gnutls uses dlopen() to load the library on request, so no need for a hard dependency) and by adding the necessary checkdepends for the tpm2.sh test. The necessary changes to the PKGBUILD for this are attached to my comment.