[Bug 1989598] [NEW] swtpm-create-user-config-files script contains unevaluated @DATAROOTDIR@ variable

Josef Petermann 1989598 at bugs.launchpad.net
Wed Sep 14 16:12:48 UTC 2022


Public bug reported:

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

** Affects: swtpm (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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:
  New

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