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

Lena Voytek 1989598 at bugs.launchpad.net
Thu Apr 27 01:08:43 UTC 2023


*** This bug is a duplicate of bug 2016744 ***
    https://bugs.launchpad.net/bugs/2016744

Currently tracking the fix for this issue at (LP: #2016744) Marking as
duplicate

** This bug has been marked a duplicate of bug 2016744
   swtpm_setup cannot be run as user (AppArmor profile)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to the bug report.
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