From 71cdb735a1d196cb1eaa14b1ac182f3287c111fd Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Tue, 4 Oct 2011 12:10:47 +0200 Subject: [PATCH] [gnome-base/gdm] add gdm user to video group, make gdm+shell working with latest nvidia-drivers --- gnome-base/gdm/Manifest | 2 +- gnome-base/gdm/gdm-3.2.0.ebuild | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gnome-base/gdm/Manifest b/gnome-base/gdm/Manifest index 9f923863f..51ec0e7aa 100644 --- a/gnome-base/gdm/Manifest +++ b/gnome-base/gdm/Manifest @@ -22,4 +22,4 @@ DIST gdm-2.20.9-gentoo-files-r1.tar.bz2 3494 RMD160 9d8f9954bd0d8b657a2faf2516b4 DIST gdm-3.0.4.tar.xz 1608480 RMD160 810496a18a98a505eb1a8a1987566d1b5b8d730d SHA1 15d73a0de180004626bda99f1b2386d86e21f7ea SHA256 7d2947fbc96c43cc94fd5915882655820c5453a1b1b11643b3c1be361f4288fd DIST gdm-3.2.0.tar.xz 1648892 RMD160 23beb73af25d947cfb99af1353bccac3230fe5cb SHA1 25cdf1e71a7d89d7994d5b1bf7ce4a6f48da536e SHA256 f827f5500827acef94ad2d60f02ec489bc35cb6392d8f4a60ec814599c2991b7 EBUILD gdm-3.0.4-r2.ebuild 7183 RMD160 8f24f81409cd3df43c434ffa7b863596145f3d52 SHA1 3803fcfceed6b6917155207bec59f0eba02699bf SHA256 e6c65e1d04736a019a75936d970718458041589a667f4a4ce92baea79c97e737 -EBUILD gdm-3.2.0.ebuild 8468 RMD160 04e95d97b7b8adce679c276611ee976b4793d4d6 SHA1 2b013a86ea9c6fb646f2124cab189b84d743493b SHA256 b4613888a417232bf5e7135b6adbd0d9ad0653b9d5c3eea4a56d1e29f519d6ae +EBUILD gdm-3.2.0.ebuild 8784 RMD160 0af85fabe52e4ec957c1d6994a6e0b8274d95358 SHA1 e9614e6e1d416fc8e5632c03d72a2d6554994d7c SHA256 40ddbf7989d285fa62683b7a0655ebfd56bc0e89678e6d3a716d3ea8aca67861 diff --git a/gnome-base/gdm/gdm-3.2.0.ebuild b/gnome-base/gdm/gdm-3.2.0.ebuild index 97958b063..ba9ff3c43 100644 --- a/gnome-base/gdm/gdm-3.2.0.ebuild +++ b/gnome-base/gdm/gdm-3.2.0.ebuild @@ -127,7 +127,11 @@ pkg_setup() { $(use_with xinerama)" enewgroup gdm - enewuser gdm -1 -1 /var/lib/gdm gdm + + # This makes gdm and gnome-shell working with + # the video group. Latest (285.05.09) nvidia-drivers + # has /dev/nvidiactl with root:video and 0660 perms + enewuser gdm -1 -1 /var/lib/gdm gdm,video } src_prepare() { @@ -240,6 +244,11 @@ pkg_postinst() { mv /etc/X11/gdm/gdm.conf /etc/X11/gdm/gdm-pre-gnome-2.16 fi + # make sure gdm is in the video group, otherwise the whole gdm+shell thing + # won't work. + # NOTE: this is only tested on Linux + usermod -a -G video gdm + # https://bugzilla.redhat.com/show_bug.cgi?id=513579 # Lennart says this problem is fixed, but users are still reporting problems # XXX: Do we want this elog?