From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5656D138335 for ; Sun, 31 Mar 2019 10:47:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2DD5BE08AD; Sun, 31 Mar 2019 10:47:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E0351E08A0 for ; Sun, 31 Mar 2019 10:47:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 00A96335CF7 for ; Sun, 31 Mar 2019 10:47:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 39574584 for ; Sun, 31 Mar 2019 10:47:53 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1554028776.5bd270f4a595255b62e34e17375c50d5ef82f15f.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: mate-base/mate-session-manager/files/, mate-base/mate-session-manager/ X-VCS-Repository: repo/gentoo X-VCS-Files: mate-base/mate-session-manager/files/mate-session-manager-1.22.0-elogind.patch mate-base/mate-session-manager/mate-session-manager-1.22.0.ebuild X-VCS-Directories: mate-base/mate-session-manager/files/ mate-base/mate-session-manager/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 5bd270f4a595255b62e34e17375c50d5ef82f15f X-VCS-Branch: master Date: Sun, 31 Mar 2019 10:47:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cac83c7f-f880-47c8-a0c0-1869a7ac6dbb X-Archives-Hash: dac85afdcfcc6ecdbaad695a41a7f3fd commit: 5bd270f4a595255b62e34e17375c50d5ef82f15f Author: Andreas Sturmlechner gentoo org> AuthorDate: Sat Mar 30 22:32:54 2019 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Mar 31 10:39:36 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bd270f4 mate-base/mate-session-manager: Add USE elogind Bug: https://bugs.gentoo.org/633336 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner gentoo.org> .../mate-session-manager-1.22.0-elogind.patch | 84 ++++++++++++++++++++++ .../mate-session-manager-1.22.0.ebuild | 16 +++-- 2 files changed, 96 insertions(+), 4 deletions(-) diff --git a/mate-base/mate-session-manager/files/mate-session-manager-1.22.0-elogind.patch b/mate-base/mate-session-manager/files/mate-session-manager-1.22.0-elogind.patch new file mode 100644 index 00000000000..ebe68a0b354 --- /dev/null +++ b/mate-base/mate-session-manager/files/mate-session-manager-1.22.0-elogind.patch @@ -0,0 +1,84 @@ +From e6f62cd82d2717cb26951629e3f071814694fd07 Mon Sep 17 00:00:00 2001 +From: Victor Kareh +Date: Fri, 8 Mar 2019 13:37:01 -0500 +Subject: [PATCH] Add ELOGIND support + +Reuses HAVE_SYSTEMD #define to reduce #ifdef mess. + +ELOGIND is not officially supported, but since it's +a subset of systemd, it should work out of the box. + +Co-authored-by: Joakim Tjernlund +Co-authored-by: Jorge Pizarro Callejas +--- + configure.ac | 29 +++++++++++++++++++++++++++++ + mate-session/Makefile.am | 2 ++ + 2 files changed, 31 insertions(+) + +diff --git a/configure.ac b/configure.ac +index 207ad97..1390ba0 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -109,6 +109,34 @@ fi + AM_CONDITIONAL(HAVE_SYSTEMD, test "x$use_systemd" = "xyes") + AC_SUBST(HAVE_SYSTEMD) + ++dnl ==================================================================== ++dnl Check for elogind ++dnl ++dnl elogind is not officially supported, but since it's a subset of ++dnl systemd, it should work out of the box ++dnl ==================================================================== ++ ++AC_ARG_WITH(elogind, ++ AS_HELP_STRING([--with-elogind], ++ [Use libelogind instead of libsystemd-login]),, ++ with_elogind=auto) ++ ++use_elogind=no ++if test "x$with_elogind" != "xno"; then ++ PKG_CHECK_MODULES(LIBELOGIND,[libelogind], [use_elogind=yes], ++ [PKG_CHECK_MODULES([LIBELOGIND], [libelogind], ++ [use_elogind=yes], [use_elogind=no])]) ++ ++ if test "x$use_elogind" = "xyes"; then ++ AC_DEFINE([HAVE_ELOGIND], 1, [elogind support]) ++ AC_DEFINE([HAVE_SYSTEMD], 1, [Define to 1 to reduce ifdefs since elogind is a drop-in replacement for systemd]) ++ AC_SUBST(LIBELOGIND_CFLAGS) ++ AC_SUBST(LIBELOGIND_LIBS) ++ fi ++fi ++AM_CONDITIONAL(HAVE_ELOGIND, [test "x$use_elogind" = "xyes"]) ++AC_SUBST(HAVE_ELOGIND) ++ + dnl ==================================================================== + dnl Check for XSync extension + dnl ==================================================================== +@@ -333,6 +361,7 @@ echo " + + Default WM: ${with_default_wm} + Systemd support: ${use_systemd} ++ Elogind support: ${use_elogind} + IPv6 support: ${have_full_ipv6} + Backtrace support: ${have_backtrace} + XRender support: ${have_xrender} +diff --git a/mate-session/Makefile.am b/mate-session/Makefile.am +index 093c908..ea0dc95 100644 +--- a/mate-session/Makefile.am ++++ b/mate-session/Makefile.am +@@ -7,6 +7,7 @@ noinst_PROGRAMS = \ + AM_CPPFLAGS = \ + $(MATE_SESSION_CFLAGS) \ + $(SYSTEMD_CFLAGS) \ ++ $(LIBELOGIND_CFLAGS) \ + $(DISABLE_DEPRECATED_CFLAGS) + + AM_CFLAGS = $(WARN_CFLAGS) +@@ -80,6 +81,7 @@ mate_session_LDADD = \ + $(XEXT_LIBS) \ + $(MATE_SESSION_LIBS) \ + $(SYSTEMD_LIBS) \ ++ $(LIBELOGIND_LIBS) \ + $(EXECINFO_LIBS) + + libgsmutil_la_SOURCES = \ diff --git a/mate-base/mate-session-manager/mate-session-manager-1.22.0.ebuild b/mate-base/mate-session-manager/mate-session-manager-1.22.0.ebuild index 9b948b23038..47d803f592f 100644 --- a/mate-base/mate-session-manager/mate-session-manager-1.22.0.ebuild +++ b/mate-base/mate-session-manager/mate-session-manager-1.22.0.ebuild @@ -14,10 +14,9 @@ HOMEPAGE="http://mate-desktop.org/" LICENSE="GPL-2 LGPL-2 FDL-1.1" SLOT="0" +IUSE="debug elibc_FreeBSD elogind gnome-keyring ipv6 systemd +xtrans" -IUSE="debug elibc_FreeBSD gnome-keyring ipv6 systemd +xtrans" - -PATCHES=( "${FILESDIR}"/${P}-fix-systemd-regression.patch ) +REQUIRED_USE="?? ( elogind systemd )" # x11-misc/xdg-user-dirs{,-gtk} are needed to create the various XDG_*_DIRs, and # create .config/user-dirs.dirs which is read by glib to get G_USER_DIRECTORY_* @@ -40,7 +39,10 @@ COMMON_DEPEND=">=dev-libs/dbus-glib-0.76 virtual/libintl elibc_FreeBSD? ( || ( dev-libs/libexecinfo >=sys-freebsd/freebsd-lib-10.0 ) ) systemd? ( sys-apps/systemd ) - !systemd? ( >=sys-auth/consolekit-0.9.2 ) + !systemd? ( + elogind? ( sys-auth/elogind ) + !elogind? ( >=sys-auth/consolekit-0.9.2 ) + ) xtrans? ( x11-libs/xtrans )" RDEPEND="${COMMON_DEPEND} @@ -56,11 +58,17 @@ DEPEND="${COMMON_DEPEND} virtual/pkgconfig:* !