Summary:
since all the libs got merged into libsystemd in 209, we can just check
for libsystemd
Reviewers: cedric
Subscribers: stefan_schmidt, morlenxus
Differential Revision: https://phab.enlightenment.org/D2984
Right now we excluded the file from the build if we did not find system-logind.
We are using some symbols from this file without any condition though:
lib/ecore_drm/.libs/libecore_drm.so: undefined reference to `_ecore_drm_logind_device_open_no_pending'
lib/ecore_drm/.libs/libecore_drm.so: undefined reference to `_ecore_drm_logind_connect'
lib/ecore_drm/.libs/libecore_drm.so: undefined reference to `_ecore_drm_logind_disconnect'
lib/ecore_drm/.libs/libecore_drm.so: undefined reference to `_ecore_drm_logind_device_close'
This comes from a Gentoo machine without systemd.
As the logind relevant parts are ifdef'ed in the code itself it is safe to build
this file in all cases and thus avoid the undefined references.
@fix
Summary: Since we removed the need for the logind header file, let's
remove that from the build order.
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
After the introduction of the non-systemd launcher the linking with systemd
enabled failed for me.
lib/ecore_drm/.libs/libecore_drm.so: undefined reference to `sd_pid_get_session'
Better we make sure that we actually setup the linker flags for the systemd use
case as well.
Summary:
- allow to launch drm backend without systemd-logind with root privilege.
- allow to open drm device node via logind, not directly open it, in case exist systemd-logind.
- fixes issue that couldn't switch session, because ecore-drm couldn't drop master to drm device with no permission. (allow to switch session appropriate.)
Reviewers: gwanglim, devilhorns
Subscribers: torori, cedric
Differential Revision: https://phab.enlightenment.org/D1704