| Summary: | app-crypt/swtpm-0.6.0 fails tests | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
| Component: | Current packages | Assignee: | Christopher Byrne <salah.coronya> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | proxy-maint, tamiko, virtualization |
| Priority: | Normal | Keywords: | PullRequest |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| See Also: |
https://github.com/stefanberger/swtpm/issues/477 https://github.com/gentoo/gentoo/pull/21449 |
||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
build.log
1-test-suite.log |
||
|
Description
Agostino Sarubbo
2021-06-26 05:51:39 UTC
Created attachment 719355 [details]
build.log
build log and emerge --info
Created attachment 719358 [details]
1-test-suite.log
1-test-suite.log
Ok, I'm able to replicate this one. The problem seems to be net-libs/gnutls[-pkcs11]. If the pkcs11 USE flags is set, the test works. But WHY is bewildering, basically the test runs swtpm_setup which does something like this: ./../src/swtpm_setup/swtpm_setup --tpm-state /tmp/tmp.Nb3hqSSH1l --create-ek-cert --config /tmp/tmp.Nb3hqSSH1l/swtpm_setup.conf --tpm ./../src/swtpm/swtpm socket Which eventually does this: /var/tmp/portage/app-crypt/swtpm-0.6.0/work/swtpm-0.6.0/src/swtpm/.libs/swtpm socket --flags not-need-init,startup-clear --tpmstate dir=/tmp/tmp.vCjvLNoJ4x --pid file=/tmp/tmp.vCjvLNoJ4x/.swtpm_setup.pidfile --server type=tcp,fd=6 --ctrl type=unixio,clientfd=4 without pkcs11, it chokes on --flags (This message gets swallowed and can only be seen with strace: [pid 22831] write(2, "Unsupported TPM interface type '--flags'.\n", 42) = 42 [pid 22831] write(2, "TPM emulator with choice of interface.\n\nUsage: /var/tmp/portage/app-crypt/swtpm-0.6.0/work/swtpm-0.6.0/src/swtpm/.libs/swtpm socket|chardev [options]\n /var/tmp/portage/app-crypt/swtpm-0.6.0/work/swtpm-0.6.0/src/swtpm/.libs/swtpm -v|--version\n\nUse the --help option to see the help screen for each interface type.\nUse the --version options to see version information.\n", 373) = 373 So gnutls needs PKCS11 support for the tests (and some optional scripts) to work correctly. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a5b95ee155f9244cbfd0c5916becbe17e52c620 commit 5a5b95ee155f9244cbfd0c5916becbe17e52c620 Author: Christopher Byrne <salah.coronya@gmail.com> AuthorDate: 2021-06-27 18:22:36 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-06-29 04:12:03 +0000 app-crypt/swtpm: Require pkcs11 support from gnutls/certtool Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Christopher Byrne <salah.coronya@gmail.com> Closes: https://bugs.gentoo.org/798759 Signed-off-by: Sam James <sam@gentoo.org> app-crypt/swtpm/swtpm-0.6.0-r1.ebuild | 69 +++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) |