From: "Alexandre Restovtsev" <tetromino@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gnome:master commit in: gnome-base/gdm/
Date: Tue, 4 Oct 2011 22:23:39 +0000 (UTC) [thread overview]
Message-ID: <fba0b3686a8ffa5207ca88b0b9f282c884f76c05.tetromino@gentoo> (raw)
commit: fba0b3686a8ffa5207ca88b0b9f282c884f76c05
Author: Alexandre Rostovtsev <tetromino <AT> gmail <DOT> com>
AuthorDate: Tue Oct 4 18:38:36 2011 +0000
Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com>
CommitDate: Tue Oct 4 22:21:05 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=fba0b368
gnome-base/gdm: ensure that gdm user is in video group (#385663)
This is required for compatibility with new nvidia-drivers versions, and
is good policy in general. If the gdm user is not in the video group,
with nvidia-drivers-285.05.09 gdm will simply crash at startup with a
generic fail whale dialog.
Fixes bug #385663.
XXX: check for portability.
---
.../gdm/{gdm-3.2.0.ebuild => gdm-3.2.0-r1.ebuild} | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/gnome-base/gdm/gdm-3.2.0.ebuild b/gnome-base/gdm/gdm-3.2.0-r1.ebuild
similarity index 93%
rename from gnome-base/gdm/gdm-3.2.0.ebuild
rename to gnome-base/gdm/gdm-3.2.0-r1.ebuild
index 6ef8993..fc6e066 100644
--- a/gnome-base/gdm/gdm-3.2.0.ebuild
+++ b/gnome-base/gdm/gdm-3.2.0-r1.ebuild
@@ -127,7 +127,19 @@ pkg_setup() {
$(use_with xinerama)"
enewgroup gdm
- enewuser gdm -1 -1 /var/lib/gdm gdm
+ enewgroup video # Just in case it hasn't been created yet
+ enewuser gdm -1 -1 /var/lib/gdm gdm,video
+
+ # For compatibility with certain versions of nvidia-drivers, etc., need to
+ # ensure that gdm user is in the video group
+ if ! egetent group video | grep -q gdm; then
+ # FIXME XXX: is this at all portable, ldap-safe, etc.?
+ # XXX: egetent does not have a 1-argument form, so we can't use it to
+ # get the list of gdm's groups
+ local g=$(groups gdm)
+ elog "Adding user gdm to video group"
+ usermod -G video,${g// /,} gdm || die "Adding user gdm to video group failed"
+ fi
}
src_prepare() {
next reply other threads:[~2011-10-04 22:23 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-04 22:23 Alexandre Restovtsev [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-09-28 17:59 [gentoo-commits] proj/gnome:master commit in: gnome-base/gdm/ Mart Raudsepp
2018-09-10 21:33 Gilles Dartiguelongue
2018-02-23 11:29 Sobhan Mohammadpour
2018-02-06 16:00 Sobhan Mohammadpour
2016-04-20 6:25 Remi Cardona
2016-03-25 0:56 Ole Reifschneider
2015-04-19 12:50 Ole Reifschneider
2014-12-22 23:11 Gilles Dartiguelongue
2014-10-15 22:26 Gilles Dartiguelongue
2014-10-11 23:11 Gilles Dartiguelongue
2014-04-22 21:35 Gilles Dartiguelongue
2013-03-14 4:30 Alexandre Rostovtsev
2012-12-01 14:17 Gilles Dartiguelongue
2012-11-18 19:33 Gilles Dartiguelongue
2012-10-30 7:23 Gilles Dartiguelongue
2012-09-28 5:09 Alexandre Rostovtsev
2012-09-27 9:47 Alexandre Rostovtsev
2012-09-27 8:10 Alexandre Rostovtsev
2012-09-14 19:10 Alexandre Rostovtsev
2012-09-12 12:11 Nirbheek Chauhan
2012-09-12 8:24 Nirbheek Chauhan
2012-05-24 9:11 Alexandre Restovtsev
2012-03-31 9:14 Nirbheek Chauhan
2011-10-23 16:35 Alexandre Restovtsev
2011-06-02 14:43 Nirbheek Chauhan
2011-04-08 10:52 Gilles Dartiguelongue
2011-04-08 5:29 Nirbheek Chauhan
2011-03-23 5:20 Nirbheek Chauhan
2011-03-09 17:46 Nirbheek Chauhan
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=fba0b3686a8ffa5207ca88b0b9f282c884f76c05.tetromino@gentoo \
--to=tetromino@gmail.com \
--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