[Bug 1989598] Re: swtpm-create-user-config-files script contains unevaluated @DATAROOTDIR@ variable
Nick Rosbrook
1989598 at bugs.launchpad.net
Thu Sep 15 19:40:46 UTC 2022
It looks like this is a side effect of debian/patches/0001-Install-
swtpm-localca-to-the-correct-path.patch, which is an Ubuntu-specific
patch. I think samples/swtpm-create-user-config-files.in also needs to
be patched to use LIBEXECDIR instead of DATAROOTDIR.
** Tags added: bitesize
** Changed in: swtpm (Ubuntu)
Status: New => Triaged
** Changed in: swtpm (Ubuntu)
Importance: Undecided => Low
** Also affects: swtpm (Ubuntu Jammy)
Importance: Undecided
Status: New
** Changed in: swtpm (Ubuntu Jammy)
Status: New => Triaged
** Changed in: swtpm (Ubuntu Jammy)
Importance: Undecided => Low
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to swtpm in Ubuntu.
https://bugs.launchpad.net/bugs/1989598
Title:
swtpm-create-user-config-files script contains unevaluated
@DATAROOTDIR@ variable
Status in swtpm package in Ubuntu:
Triaged
Status in swtpm source package in Jammy:
Triaged
Bug description:
Hi,
*Description*:
the swtpm setup tool located at `/usr/share/swtpm/swtpm-create-user-config-files` contains the unevaluated String `@DATAROOT@` at line 68. This causes the user's swtpm config to be corrupted and swtpm fails to initialize properly in a libvirt user session.
According to the author of the swtpm tool this error is probably
introduced in the build/packaging process (see linked github issue).
https://github.com/stefanberger/swtpm/issues/749#issuecomment-1246901959
Here is the actual content of the file:
```
grep -n DATAROOT /usr/share/swtpm/swtpm-create-user-config-files
68:create_certs_tool = @DATAROOTDIR@/swtpm/swtpm-localca
```
I would expect the line to be:
```
create_certs_tool = /usr/share/swtpm/swtpm-localca
```
*Version Info*:
OS: Ubuntu 22.04.1 LTS
swtpm: 0.6.3-0ubuntu3
Could you please fix the build/packaging process?
Thanks and Best Regards,
Josef
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/swtpm/+bug/1989598/+subscriptions
More information about the foundations-bugs
mailing list