public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michael Palimaka" <kensington@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/sddm/
Date: Sat, 30 Jan 2016 14:22:23 +0000 (UTC)	[thread overview]
Message-ID: <1454163732.448091cb54719cb8c1bb02466dbb4051a10fff0b.kensington@gentoo> (raw)

commit:     448091cb54719cb8c1bb02466dbb4051a10fff0b
Author:     Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Sat Jan 30 13:35:47 2016 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sat Jan 30 14:22:12 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=448091cb

x11-misc/sddm: Add ewarn for erroneous existing pambase config

Previous recommendation for sddm without real consolekit support breaks
modern sddm with consolekit2 support.

 x11-misc/sddm/sddm-0.12.0-r1.ebuild | 14 ++++++++++++++
 x11-misc/sddm/sddm-0.13.0-r1.ebuild | 14 ++++++++++++++
 2 files changed, 28 insertions(+)

diff --git a/x11-misc/sddm/sddm-0.12.0-r1.ebuild b/x11-misc/sddm/sddm-0.12.0-r1.ebuild
index 2b31915..c472cbc 100644
--- a/x11-misc/sddm/sddm-0.12.0-r1.ebuild
+++ b/x11-misc/sddm/sddm-0.12.0-r1.ebuild
@@ -62,4 +62,18 @@ src_configure() {
 pkg_postinst() {
 	enewgroup ${PN}
 	enewuser ${PN} -1 -1 /var/lib/${PN} ${PN} video
+
+	if use consolekit && use pam && [[ -e "${ROOT}"/etc/pam.d/system-login ]]; then
+		local line=$(grep "pam_ck_connector.*nox11" "${ROOT}"/etc/pam.d/system-login)
+		if [[ -z ${line} ]]; then
+			ewarn
+			ewarn "Erroneous /etc/pam.d/system-login settings detected!"
+			ewarn "Please restore 'nox11' option in the line containing pam_ck_connector:"
+			ewarn
+			ewarn "session      optional      pam_ck_connector.so nox11"
+			ewarn
+			ewarn "or 'emerge -1 sys-auth/pambase' and run etc-update."
+			ewarn
+		fi
+	fi
 }

diff --git a/x11-misc/sddm/sddm-0.13.0-r1.ebuild b/x11-misc/sddm/sddm-0.13.0-r1.ebuild
index 7c61eb0..8b55dfb 100644
--- a/x11-misc/sddm/sddm-0.13.0-r1.ebuild
+++ b/x11-misc/sddm/sddm-0.13.0-r1.ebuild
@@ -62,4 +62,18 @@ src_configure() {
 pkg_postinst() {
 	enewgroup ${PN}
 	enewuser ${PN} -1 -1 /var/lib/${PN} ${PN} video
+
+	if use consolekit && use pam && [[ -e "${ROOT}"/etc/pam.d/system-login ]]; then
+		local line=$(grep "pam_ck_connector.*nox11" "${ROOT}"/etc/pam.d/system-login)
+		if [[ -z ${line} ]]; then
+			ewarn
+			ewarn "Erroneous /etc/pam.d/system-login settings detected!"
+			ewarn "Please restore 'nox11' option in the line containing pam_ck_connector:"
+			ewarn
+			ewarn "session      optional      pam_ck_connector.so nox11"
+			ewarn
+			ewarn "or 'emerge -1 sys-auth/pambase' and run etc-update."
+			ewarn
+		fi
+	fi
 }


             reply	other threads:[~2016-01-30 14:22 UTC|newest]

Thread overview: 109+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-30 14:22 Michael Palimaka [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-29 19:03 [gentoo-commits] repo/gentoo:master commit in: x11-misc/sddm/ Andreas Sturmlechner
2024-08-29 15:40 Arthur Zamarin
2024-08-29 15:40 Arthur Zamarin
2024-08-29 15:40 Arthur Zamarin
2024-07-26 11:17 Arthur Zamarin
2024-07-24 17:37 Andreas Sturmlechner
2024-07-24 16:52 Andreas Sturmlechner
2024-07-24 16:52 Andreas Sturmlechner
2024-07-24 16:52 Andreas Sturmlechner
2024-07-12 15:24 Arthur Zamarin
2024-07-02 12:07 Jakov Smolić
2024-07-01 21:47 Andreas Sturmlechner
2024-07-01 21:47 Andreas Sturmlechner
2024-07-01 18:04 Andreas Sturmlechner
2024-06-27  9:43 Arthur Zamarin
2024-03-29  6:19 Arthur Zamarin
2024-03-29  6:19 Arthur Zamarin
2024-03-29  6:19 Arthur Zamarin
2023-09-11  0:28 Mike Gilbert
2023-09-10 21:20 Mike Gilbert
2023-09-03 14:19 Sam James
2023-09-03 14:17 Sam James
2023-09-03 14:17 Sam James
2023-09-02 18:01 Andreas Sturmlechner
2023-06-27 11:25 Andreas Sturmlechner
2022-12-03 17:13 Andreas Sturmlechner
2022-12-03 14:44 Arthur Zamarin
2022-12-03 12:49 Arthur Zamarin
2022-11-29 21:01 Andreas Sturmlechner
2022-10-06  9:14 Andreas Sturmlechner
2022-05-25 11:20 WANG Xuerui
2022-04-02 12:12 Arthur Zamarin
2022-04-02  8:03 Agostino Sarubbo
2022-04-02  7:59 Agostino Sarubbo
2022-04-01 14:48 Andreas Sturmlechner
2022-04-01 14:48 Andreas Sturmlechner
2022-04-01 14:48 Andreas Sturmlechner
2022-04-01 14:48 Andreas Sturmlechner
2022-04-01 14:48 Andreas Sturmlechner
2022-04-01 14:48 Andreas Sturmlechner
2022-04-01 14:48 Andreas Sturmlechner
2022-04-01 14:48 Andreas Sturmlechner
2022-04-01 14:48 Andreas Sturmlechner
2021-07-26  7:40 Yixun Lan
2021-07-04 14:03 Ulrich Müller
2021-06-27  2:08 Sam James
2021-06-24 23:27 Sam James
2020-10-10 10:14 Mikle Kolyada
2020-07-24 21:00 Mikle Kolyada
2020-06-21  9:25 Andreas Sturmlechner
2020-06-18 12:23 Mikle Kolyada
2019-09-08 16:18 Andreas Sturmlechner
2019-07-22 22:23 Andreas Sturmlechner
2019-07-22 21:56 Aaron Bauman
2019-06-26  9:44 Agostino Sarubbo
2019-06-26  8:32 Agostino Sarubbo
2019-06-23 14:55 Andreas Sturmlechner
2019-05-28  2:35 Aaron Bauman
2019-03-31  9:04 Michael Palimaka
2018-08-09 20:48 Andreas Sturmlechner
2018-07-28 13:25 Thomas Deutschmann
2018-07-26 21:44 Mikle Kolyada
2018-06-23 17:04 Andreas Sturmlechner
2018-06-22  7:23 Mikle Kolyada
2018-06-17 23:29 Thomas Deutschmann
2018-06-06 10:14 Andreas Sturmlechner
2018-05-05  6:59 Andreas Sturmlechner
2018-05-04 15:36 Thomas Deutschmann
2018-05-03 14:45 Mikle Kolyada
2018-04-19 18:00 Andreas Sturmlechner
2018-04-05 15:58 Andreas Sturmlechner
2018-02-02 13:04 Michael Palimaka
2018-01-09 11:56 Mikle Kolyada
2018-01-06  2:14 Andreas Sturmlechner
2018-01-06  2:14 Andreas Sturmlechner
2017-12-06 19:27 Manuel Rüger
2017-12-06 19:27 Manuel Rüger
2017-11-12 15:12 Andreas Sturmlechner
2017-11-12 15:12 Andreas Sturmlechner
2017-11-12 15:12 Andreas Sturmlechner
2017-10-23 11:35 Michael Palimaka
2017-10-19 12:57 Manuel Rüger
2017-10-09 14:07 Manuel Rüger
2017-09-03  1:15 Mike Gilbert
2017-09-02 15:07 Andreas Sturmlechner
2017-08-15  9:21 Lars Wendler
2017-06-28 11:00 Alexis Ballier
2017-03-07  9:14 David Seifert
2017-01-31 11:43 Agostino Sarubbo
2017-01-29 13:55 Agostino Sarubbo
2016-12-23 16:42 Johannes Huber
2016-08-31 12:01 Michael Palimaka
2016-08-31 12:01 Michael Palimaka
2016-08-29 10:09 Manuel Rüger
2016-08-29  8:10 Manuel Rüger
2016-08-07  8:28 Pacho Ramos
2016-06-01 21:14 Michael Palimaka
2016-04-14 15:38 Michael Palimaka
2016-04-06 12:26 Agostino Sarubbo
2016-03-03 15:26 Michael Palimaka
2016-03-03 15:26 Michael Palimaka
2016-02-15 22:59 Manuel Rüger
2016-01-30 13:56 Michael Palimaka
2015-11-09 14:41 Michael Palimaka
2015-11-07 11:22 Manuel Rüger
2015-10-17  8:25 Jauhien Piatlicki
2015-10-11 16:04 Manuel Rüger
2015-09-09 20:39 Jauhien Piatlicki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1454163732.448091cb54719cb8c1bb02466dbb4051a10fff0b.kensington@gentoo \
    --to=kensington@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox