Bug 530770 - environment-modules.i686 0:3.2.7b-4.fc12 breaks (at least) gdm
Summary: environment-modules.i686 0:3.2.7b-4.fc12 breaks (at least) gdm
Alias: None
Product: Fedora
Classification: Fedora
Component: environment-modules
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
: 530967 531195 (view as bug list)
Depends On:
Blocks: F12Blocker, F12FinalBlocker
TreeView+ depends on / blocked
Reported: 2009-10-24 21:31 UTC by Bruno Wolff III
Modified: 2009-11-10 17:49 UTC (History)
5 users (show)

Clone Of:
Last Closed: 2009-10-26 17:53:44 UTC

Attachments (Terms of Use)

Description Bruno Wolff III 2009-10-24 21:31:24 UTC
Description of problem:
After updating to the 10-24 rawhide, gdm wasn't starting. I eventually found that running the environment-modules script in /etc/profile.d was killing the gdm script. Uninstalling environment-modules got things working again.

Version-Release number of selected component (if applicable):
environment-modules.i686 0:3.2.7b-4.fc12

How reproducible:
I don't know if there are any dependencies on /etc/profile which I changed a while back to put sbin in normal users' paths. (That wouldn't excuse environment-modules, but could potentially be needed to reproduce the problem.)

Steps to Reproduce:
Actual results:

Expected results:

Additional info:

Comment 1 Deji Akingunola 2009-10-25 19:54:03 UTC
Me too :). environment-modules-3.2.7b-4.fc12 was supposed to fix Bug 529745 (which it did), but with a rather huge negative impact.

Comment 2 Orion Poplawski 2009-10-26 16:14:45 UTC
So, any idea what the actual problem is?  This is my thought for a fix, but I'm not sure what the real cause is.

shell=`/bin/basename \`/bin/ps -p $$ -ocomm=\``
[ -f /usr/share/Modules/init/$shell ] &&
  . /usr/share/Modules/init/$shell

Comment 3 Orion Poplawski 2009-10-26 16:50:44 UTC
Ah, interesting, /usr/sbin/gdm is a script and it sources the profile.d directory.  Here is my suggested fix:

shell=`/bin/basename \`/bin/ps -p $$ -ocomm=\``
if [ -f /usr/share/Modules/init/$shell ]
  . /usr/share/Modules/init/$shell
  . /usr/share/Modules/init/sh

Comment 4 Bruno Wolff III 2009-10-26 16:58:21 UTC
I didn't try to figure out what actually broke things. I was just happy I figured out which package broke graphical logins.

Comment 5 Bruno Wolff III 2009-10-26 17:06:13 UTC
I see there is a new build. I'll report back in a few minutes whether or not it solved the problem I was seeing.

Comment 6 Fedora Update System 2009-10-26 17:33:20 UTC
environment-modules-3.2.7b-5.fc11 has been submitted as an update for Fedora 11.

Comment 7 Bruno Wolff III 2009-10-26 17:36:41 UTC
environment-modules-3.2.7b-5.fc12.x86_64 fixed the problem with gdm.

Comment 8 James Ettle 2009-10-26 20:22:03 UTC
*** Bug 530967 has been marked as a duplicate of this bug. ***

Comment 9 Ray Strode [halfline] 2009-10-29 17:29:42 UTC
*** Bug 531195 has been marked as a duplicate of this bug. ***

Comment 10 Fedora Update System 2009-11-10 17:49:28 UTC
environment-modules-3.2.7b-5.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.