From 711857cf252341d1bbbf872b7ce983fd3ad51998d5a8ccddbdeceea380fbcee0 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Fri, 26 Mar 2021 07:39:38 +0000 Subject: [PATCH] Accepting request 881388 from home:stdden:branches:X11:Wayland - enable logind for the libseat (disabled by default) * fixes errors during login, see: https://github.com/openSUSE/openSUSEway/issues/37 * this works with libsystemd >= 237 with new API: sd_bus_match_signal OBS-URL: https://build.opensuse.org/request/show/881388 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/seatd?expand=0&rev=7 --- seatd.changes | 9 +++++++++ seatd.spec | 13 +++++++++++++ 2 files changed, 22 insertions(+) diff --git a/seatd.changes b/seatd.changes index f5c2e54..a581226 100644 --- a/seatd.changes +++ b/seatd.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Mar 25 19:29:37 UTC 2021 - Denys Kondratenko + +- enable logind for the libseat (disabled by default) + * fixes errors during login, see: + https://github.com/openSUSE/openSUSEway/issues/37 + * this works with libsystemd >= 237 with new API: + sd_bus_match_signal + ------------------------------------------------------------------- Tue Mar 16 08:58:30 UTC 2021 - Michael Vetter diff --git a/seatd.spec b/seatd.spec index a3a627f..1942163 100644 --- a/seatd.spec +++ b/seatd.spec @@ -28,6 +28,13 @@ BuildRequires: meson BuildRequires: ninja BuildRequires: pkgconfig BuildRequires: scdoc + +%if 0%{?suse_version} > 1520 +#15.2 don't have needed API +#https://github.com/systemd/systemd/commit/b423e4fb73866e529869b348efb7169ee91f00c9 +BuildRequires: pkgconfig(libsystemd) >= 237 +%endif + BuildRequires: pkgconfig(systemd) Requires: libseat1 = %{version} @@ -54,7 +61,13 @@ Development files for %{name}. %autosetup -p1 %build +%if 0%{?suse_version} > 1520 +#15.2 don't have needed API +%meson -Dlogind=enabled +%else %meson +%endif + %meson_build %install