Skip to content

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

Open
roogus wants to merge 1 commit intothe-cavalry:masterfrom
roogus:master
Open

Adding support for elogind's standalone logind daemon.#117
roogus wants to merge 1 commit intothe-cavalry:masterfrom
roogus:master

Conversation

@roogus
Copy link
Copy Markdown

@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
Copy Markdown

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

@slavoutich
Copy link
Copy Markdown

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

@casta
Copy link
Copy Markdown

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
Copy Markdown

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)

Comment thread configure.ac.in
AC_DEFINE(WITH_ELOGIND, 1, [elogind support])
fi
AC_SUBST(ELOGIND_CFLAGS)
AC_SUBST(ELOGIND_LIBS, [-lelogind])
Copy link
Copy Markdown

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