diff --git a/system/auth/elogind/actions.py b/system/auth/elogind/actions.py index acdbd71bb2..ec16836292 100644 --- a/system/auth/elogind/actions.py +++ b/system/auth/elogind/actions.py @@ -10,6 +10,13 @@ from pisi.actionsapi import shelltools from pisi.actionsapi import get def setup(): + shelltools.system("sed -i '/Disable polkit/,+8 d' meson.build") + shelltools.system("""sed '/request_name/i\ + r = sd_bus_set_exit_on_disconnect(m->bus, true);\ + if (r < 0)\ + return log_error_errno(r, "Failed to set exit on disconnect: %m");' \ + -i src/login/logind.c""") + mesontools.configure("--prefix=/usr \ -Drootlibdir=/usr/lib \ -Dpolkit=true \ @@ -34,4 +41,4 @@ def install(): shelltools.system("ln -s libelogind.pc %s/usr/lib/pkgconfig/libsystemd.pc" % get.installDIR()) shelltools.system("ln -s libelogind.pc %s/usr/lib/pkgconfig/libsystemd-logind.pc" % get.installDIR()) - shelltools.system("ln -sr %s/usr/include/elogind %s/usr/include/systemd" % (get.installDIR(), get.installDIR())) \ No newline at end of file + shelltools.system("ln -sr %s/usr/include/elogind %s/usr/include/systemd" % (get.installDIR(), get.installDIR())) diff --git a/system/auth/elogind/pspec.xml b/system/auth/elogind/pspec.xml index 8a02ac59c8..b889581b63 100644 --- a/system/auth/elogind/pspec.xml +++ b/system/auth/elogind/pspec.xml @@ -27,7 +27,7 @@ eudev-devel glib2-devel libcap-devel - polkit-devel + cgmanager-devel libevdev-devel p11-kit-devel @@ -101,6 +101,13 @@ + + 2022-05-21 + 246.10 + elogind rebuild. + Mustafa Cinasal + muscnsl@gmail.com + 2021-12-17 246.10