Bug 529745

Summary: Loading modules from a script fails with environment-modules >3.6.8
Product: [Fedora] Fedora Reporter: Deji Akingunola <dakingun>
Component: environment-modulesAssignee: Orion Poplawski <orion>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: orion
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 3.2.7b-5.fc11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-10 17:49:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Deji Akingunola 2009-10-19 19:28:00 UTC
Description of problem: Loading modules during a rpm build process fails with the error below;
...
+ . /etc/profile.d/modules.sh
++ export -f module
++ MODULESHOME=/usr/share/Modules
++ export MODULESHOME
++ '[' '' = '' ']'
++ LOADEDMODULES=
++ export LOADEDMODULES
++ '[' /usr/share/Modules/modulefiles:/etc/modulefiles = '' ']'
++ '[' 4 -ge 3 ']'
++ '[' -r /usr/share/Modules/init/bash_completion ']'
++ . /usr/share/Modules/init/bash_completion
/usr/share/Modules/init/bash_completion: line 14: syntax error near unexpected token `('
...

This happens with all environment-modules builds >= ver 3.7.1, downgrading to 
environment-modules-3.2.6-8.fc12.x86_64 works.

Version-Release number of selected component (if applicable):environment-modules-3.2.7b-2.fc12.x86_64


How reproducible: always


Steps to Reproduce:
1. try to rebuild the blacs srpm for instance.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Deji Akingunola 2009-10-25 21:47:44 UTC
Although environment-modules-3.2.7b-4.fc12 fixed this particular issue, it caused another (Bug 530770). I'll leave this open until the other issue is resolved.

Comment 2 Fedora Update System 2009-10-27 06:29:07 UTC
environment-modules-3.2.7b-5.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update environment-modules'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-10725

Comment 3 Fedora Update System 2009-11-10 17:49:38 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.