Skip to content

Commit

Permalink
gnome-extra/cinnamon-session: Readd systemd support
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.13, Repoman-2.3.3
  • Loading branch information
krifisk committed Nov 29, 2017
1 parent d59e4c9 commit 065d1ab
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ src_prepare() {
# make upower and logind check non-automagic
eapply "${FILESDIR}/${PN}-3.0.1-automagic.patch"
eapply "${FILESDIR}/${PN}-3.6.1-elogind.patch"
eapply "${FILESDIR}/${PN}-3.6.1-elogind2.patch"

eautoreconf
gnome2_src_prepare
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
diff --git a/configure.ac b/configure.ac
index c46b35f..5bde44a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -113,7 +113,7 @@ AC_ARG_ENABLE([logind],

have_logind=no
if test x$enable_logind != xno ; then
- PKG_CHECK_MODULES(LOGIND, [gio-unix-2.0], [have_logind=yes], [have_logind=no])
+ PKG_CHECK_MODULES(LOGIND, [gio-unix-2.0 libsystemd], [have_logind=yes], [have_logind=no])
fi

if test x$have_logind = xyes; then
@@ -124,6 +124,7 @@ have_elogind=no
PKG_CHECK_MODULES(ELOGIND, [libelogind], [have_elogind=yes], [have_elogind=no])
if test x$have_elogind = xyes; then
AC_DEFINE(HAVE_ELOGIND, 1, [Define if elogind is supported])
+ AC_DEFINE(HAVE_LOGIND, 1, [Define if logind is supported])
fi

AC_SUBST(LOGIND_CFLAGS)

0 comments on commit 065d1ab

Please sign in to comment.