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

Adding support for elogind's standalone logind daemon. #117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Adding support for elogind's standalone logind daemon. #117

wants to merge 1 commit into from

Conversation

roogus
Copy link

@roogus roogus commented Oct 7, 2018

This PR completes the work started by @dg98 in PR #109 . It adds the necessary preprocessor directives to make use of the --with-elogind autoconf option previously introduced, and explicitly links with the elogind library to provide full functionality.

These changes compile and run as expected (afik) on my gentoo machine with: lightdm-1.28.0, elogind-238.1, and openrc-0.38.2 which should resolve #103 .

This is my first go-round with autotools scripting, so any comments/critiques are most welcome.

@slavoutich
Copy link

Doesn't run for me with lightdm-1.26.0-r1, system can't be unlocked. Will investigate further.

@slavoutich
Copy link

Sorry, stupid me forgot how to patch, everything works for me.

@casta
Copy link

casta commented Mar 22, 2019

Confirmed here too that this patch fixes black screen when unlocking if xorg is compiled with elogind support

@a17r
Copy link

a17r commented Mar 28, 2019

This patch fails to build on a non-elogind system though with --without-console-kit --with-systemd --without-elogind.

/usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lelogind

gentoo/gentoo#11460 (review)

AC_DEFINE(WITH_ELOGIND, 1, [elogind support])
fi
AC_SUBST(ELOGIND_CFLAGS)
AC_SUBST(ELOGIND_LIBS, [-lelogind])
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be: AC_SUBST(ELOGIND_LIBS)
adding [-lelogind] unconditionally add -lelogind to linkage, even if elogind support id disabled (thus failing at link step)

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.

light-locker does not function with OpenRC + elogind
4 participants