Bug 220260 - A bad "module use" command in /usr/share/Modules/modulefiles/modules
Summary: A bad "module use" command in /usr/share/Modules/modulefiles/modules
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: environment-modules
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: FE7Target
TreeView+ depends on / blocked
 
Reported: 2006-12-19 23:09 UTC by erikj
Modified: 2007-11-30 22:11 UTC (History)
3 users (show)

Fixed In Version: 3.2.3-3
Clone Of:
Environment:
Last Closed: 2007-02-09 18:24:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description erikj 2006-12-19 23:09:37 UTC
We have discovered that the environment-modules package has a problem
with it's "modules" module.

A "module load modules" command gives an error due to an erroneous
"module use" command at line 27 in /usr/share/Modules/modulefiles/modules.

wolfberry8% module load modules
ModuleCmd_Use.c(186):ERROR:11: Usage is 'use [-a|--append] dir [dir ...]'
modules(27):ERROR:102: Tcl command execution failed: module             use


Looking at the file, there is an incomplete "use" command at the end of
the module.

module          use

should be

module          use             /usr/share/Modules

Comment 1 erikj 2006-12-19 23:30:10 UTC
This was observed in environment-modules-3.2.3-2.fc6, which seems
to be the same version in the 'development' directory.

Comment 2 erikj 2006-12-20 03:27:23 UTC
I was messing around with the configure files when I realized the issue seems
to be that VERSIONPATH is not set when --with-version-path is unset AND module
versioning is off.  But the "modules" module file uses the @VERSIONPATH@ macro.

A quick fix that worked for me was to just specify the path on the configure
line like this:

 %build
-%configure --disable-versioning --prefix=%{_datadir}
--exec-prefix=%{_datadir}/Modules
+%configure --disable-versioning --prefix=%{_datadir}
--exec-prefix=%{_datadir}/Modules --with-version-path=/usr/share/Modules/modulefiles
 make %{?_smp_mflags}


Comment 3 Orion Poplawski 2007-02-09 18:24:29 UTC
Fixed in 3.2.3-3.fc6


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