Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 453016 Details for
Bug 599492
sys-apps/accountsservice: Add elogind support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to enable elogind support
accountsservice-enable-elogind.patch (text/plain), 2.76 KB, created by
Sven Eden
on 2016-11-11 15:57:28 UTC
(
hide
)
Description:
Patch to enable elogind support
Filename:
MIME Type:
Creator:
Sven Eden
Created:
2016-11-11 15:57:28 UTC
Size:
2.76 KB
patch
obsolete
>--- a/configure.ac 2016-06-09 16:17:02.000000000 +0200 >+++ b/configure.ac 2016-11-08 09:19:59.322358415 +0100 >@@ -259,6 +259,55 @@ > dnl --------------------------------------------------------------------------- > AC_PATH_PROG([XSLTPROC], [xsltproc]) > >+# elogind >+ >+AC_ARG_ENABLE([elogind], >+ AS_HELP_STRING([--enable-elogind], [Use elogind]), >+ [enable_elogind=$enableval], >+ [enable_elogind=auto]) >+ >+if test x$enable_elogind != xno; then >+ PKG_CHECK_MODULES(ELOGIND, [libelogind >= 219], >+ [have_elogind=yes], [have_elogind=no]) >+else >+ have_elogind=no >+fi >+ >+AC_MSG_CHECKING([whether to use elogind]) >+ >+if test x$enable_elogind = xauto ; then >+ if test x$have_elogind = xno ; then >+ enable_elogind=no >+ else >+ enable_elogind=yes >+ fi >+fi >+ >+AC_MSG_RESULT($enable_elogind) >+ >+if test x$enable_elogind = xyes; then >+ if test x$have_elogind = xno; then >+ AC_MSG_ERROR([elogind support explicitly required, but libelogind not found]) >+ fi >+ # Use HAVE_SYSTEMD here, too, so data/Makefile.am does >+ # not need to duplicate code >+ AC_DEFINE(HAVE_SYSTEMD, 1, [Define if elogind is used]) >+fi >+AC_SUBST(ELOGIND_CFLAGS) >+AC_SUBST(ELOGIND_LIBS) >+ >+LIBACCOUNTSSERVICE_LIBS="$LIBACCOUNTSSERVICE_LIBS $ELOGIND_LIBS" >+LIBACCOUNTSSERVICE_CFLAGS="$LIBACCOUNTSSERVICE_CFLAGS $ELOGIND_CFLAGS" >+ >+if test "x$have_elogind" != "xno" ; then >+ AC_DEFINE(WITH_ELOGIND, 1, [Define to enable elogind support]) >+ # Re-use WITH_SYSTEMD to not flood >+ # src/libaccountsservice/act-user-manager.c >+ # with a plethora of "if defined() || defined()" lines >+ AC_DEFINE(WITH_SYSTEMD, 1, [Define to enable systemd support]) >+fi >+ >+ > # systemd > > AC_ARG_ENABLE([systemd], >@@ -267,8 +316,14 @@ > [enable_systemd=auto]) > > if test x$enable_systemd != xno; then >- PKG_CHECK_MODULES(SYSTEMD, [libsystemd >= 186], >+ if test x$enable_elogind = yes; then >+ AC_MSG_NOTICE([Systemd support requested, but elogind found]) >+ have_systemd=no >+ enable_systemd=no >+ else >+ PKG_CHECK_MODULES(SYSTEMD, [libsystemd >= 186], > [have_systemd=yes], [have_systemd=no]) >+ fi > else > have_systemd=no > fi >--- a/src/libaccountsservice/act-user-manager.c 2016-11-08 09:11:28.489353842 +0100 >+++ b/src/libaccountsservice/act-user-manager.c 2016-11-08 09:18:47.768357775 +0100 >@@ -42,7 +42,11 @@ > #include <gio/gunixinputstream.h> > > #ifdef WITH_SYSTEMD >+#ifdef WITH_ELOGIND >+#include <elogind/sd-login.h> >+#else > #include <systemd/sd-login.h> >+#endif /* check against elogind substitution > > /* check if logind is running */ > #define LOGIND_RUNNING() (access("/run/systemd/seats/", F_OK) >= 0)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 599492
:
453014
|
453016
|
455244
|
459788
|
474504
|
474904
|
475330
|
475420