Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snapcraft: Add libsystemd-dev dependency for LXD #581

Conversation

gabrielmougard
Copy link
Contributor

Required before canonical/lxd#14327

  • LXD requires libsystemd-dev at build time to allow go-systemd to be built.
  • libsystemd.so is also needed at runtime hence why libsystemd0 is added as a staged package (-dev package is intended for development purposes and includes files that are unnecessary (and potentially problematic) at runtime). The resulting libsystemd.so included in the snap communicates over D-Bus to interact with systemd. As long as the communication paths are accessible (via the log-observe interface), LXD can read the host's systemd.

* LXD requires `libsystemd-dev` at build time to allow `go-systemd` to be built.
* `libsystemd.so` is also needed at runtime hence why `libsystemd0` is added as a staged package (`-dev` package is intended for development purposes and includes files that are unnecessary (and potentially problematic) at runtime).
  The resulting `libsystemd.so` included in the snap communicates over D-Bus to interact with systemd.
  As long as the communication paths are accessible (via the `log-observe` interface), LXD can read the host's systemd.

Signed-off-by: Gabriel Mougard <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant