Summary: | Session-info source: incompatibility with recent systemd | ||
---|---|---|---|
Product: | Spice | Reporter: | Peter Mattern <pmattern> |
Component: | unix agent | Assignee: | Spice Bug List <spice-bugs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | medium | CC: | teuf |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Peter Mattern
2016-02-19 10:48:54 UTC
It seems the libraries have been removed, but the headers we need are still there. So a patch like diff --git a/configure.ac b/configure.ac index ca9a15b..04917fc 100644 --- a/configure.ac +++ b/configure.ac @@ -84,7 +84,7 @@ PKG_CHECK_MODULES(ALSA, [alsa >= 1.0.22]) if test "$with_session_info" = "auto" || test "$with_session_info" = "systemd"; then PKG_CHECK_MODULES([LIBSYSTEMD_LOGIN], - [libsystemd-login >= 42], + [libsystemd >= 122], [have_libsystemd_login="yes"], [have_libsystemd_login="no"]) if test x"$have_libsystemd_login" = "xno" && test "$with_session_info" = "systemd"; then will probably be enough.I don't know when exactly libsystemd-login was considered deprecated and sd-login.h 'associated' with libsystemd.so rather than libsystemd-login.so , so the 122 version in the check is entirely arbitrary. (In reply to Christophe Fergeau from comment #1) > It seems the libraries have been removed, but the headers we need are still > there. Yes. The change was introduce in 209 which hence should be the minimum version. More information can be found in https://lists.freedesktop.org/archives/systemd-devel/2014-February/017146.html (introduction and section "The APIs "sd-journal.h", [...]"). eb01d32 works as expected on Arch Linux. IMO issue can be closed as fixed. Thanks for the detailed report and the testing, closing now. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.