Commit Graph

666 Commits

Author SHA1 Message Date
gsell 27fcf7ed69 Merge branch 'master' into 32-overlay-implementation 2021-05-11 13:40:45 +02:00
gsell adcfbd5401 Merge branch '119-modulecmd-fixes-in-loading-a-pmodules-module' into 'master'
Resolve "modulecmd: fixes in loading a Pmodules module"

Closes #119

See merge request Pmodules/src!88
2021-05-11 13:37:31 +02:00
gsell e0950bcd25 modulecmd: fix initialisation after loading a Pmodule module 2021-05-11 12:05:00 +02:00
gsell fe07ceef9d Merge branch 'master' into 32-overlay-implementation 2021-05-11 11:39:14 +02:00
gsell bc1afaf60c Merge branch '118-modulecmd-loading-a-pmodules-module' into 'master'
Resolve "modulecmd: loading a Pmodules module"

Closes #118

See merge request Pmodules/src!87
2021-05-10 16:18:36 +02:00
gsell fcec9f77c2 modulecmd: restore some env.vars after loading Pmodules module 2021-05-10 15:55:19 +02:00
gsell ca4c530a5e modulecmd: prevent loading Pmodules module if other modules are loaded 2021-05-10 15:53:06 +02:00
gsell d32f04ea83 modulecmd: bugfix in basic initialization 2021-05-07 16:41:00 +02:00
gsell bff9055b20 modulecmd: bugfix in tmp file setup/cleanup 2021-05-07 16:40:08 +02:00
gsell 183e7f40a2 libstd.bash: function to check Bash variable type added 2021-05-07 15:51:28 +02:00
gsell ff20825975 Merge branch 'master' into 32-overlay-implementation 2021-05-06 19:54:45 +02:00
gsell a6623727ae Merge branch '117-reinitialize-pmodules-environment-after-loading-a-new-pmodules-version' into 'master'
Resolve "reinitialize Pmodules environment after loading a new Pmodules version"

Closes #117

See merge request Pmodules/src!86
2021-05-06 19:05:36 +02:00
gsell 0ea9e54cc4 modulecmd: reinitialize Pmodules if Pmodules version changed 2021-05-06 19:04:27 +02:00
gsell ab1f6c263d modulecmd: fixed in sub-cmd avail
- bugfix in loop collecting per group directories in MODULEPATH
- use UsedGroups to loop over the groups, this defines a clear oder
- in pmodules_init(): prepend groups to UseGroups instead of
  appending. This fixes an issue in the order the groups were listed.
2021-05-06 18:14:07 +02:00
gsell a3835d3f0b libmodules.tcl: bugfix in module-addgroup{} 2021-05-06 18:12:44 +02:00
gsell 59fa8aadeb Merge branch 'master' into 32-overlay-implementation 2021-05-06 14:44:51 +02:00
gsell 1731df2097 Merge branch '116-modulecmd-use-default-ifs' into 'master'
Resolve "modulecmd: use default IFS"

Closes #116

See merge request Pmodules/src!85
2021-05-06 14:40:48 +02:00
gsell f5351f025e modulecmd: use default IFS 2021-05-06 14:40:12 +02:00
gsell 37680f6504 Merge branch 'master' into 32-overlay-implementation 2021-05-06 14:33:48 +02:00
gsell 9cef06786c Merge branch '115-modulecmd-group-argument-for-sub-cmd-avail' into 'master'
Resolve "modulecmd: group argument for sub-cmd avail"

Closes #115

See merge request Pmodules/src!84
2021-05-06 14:27:10 +02:00
gsell 6318a0a591 modulecmd: sub-cmd avail: group argument added
It's now possible to list available modules in certain groups only.
2021-05-06 14:23:55 +02:00
gsell e3299a1afa modulecmd: sub-cmd avail: pass group as argument to output function 2021-05-06 14:22:30 +02:00
gsell 2b8d085909 Merge branch '114-modulecmd-align-columns-in-sub-command-avail' into 'master'
Resolve "modulecmd: align columns in sub-command avail"

Closes #114

See merge request Pmodules/src!83
2021-05-06 11:29:25 +02:00
gsell dc1ad90c70 modulecmd: align columns in sub-cmd avail 2021-05-06 11:28:10 +02:00
gsell ac88f14202 Merge branch 'cherry-pick-9a0d55ed' into 'master'
modulecmd: save environment after unloading a module

See merge request Pmodules/src!82
2021-05-06 10:34:44 +02:00
gsell daead01197 modulecmd: save environment after unloading a module
(cherry picked from commit 9a0d55ed85)
2021-05-06 10:34:20 +02:00
gsell 37bc7af084 Merge branch '113-modulefile-fix-path-mangling' into 'master'
Resolve "modulefile: fix PATH mangling"

Closes #113

See merge request Pmodules/src!81
2021-05-06 10:33:25 +02:00
gsell 2faf42a4e0 modulefile: bugfix in modifying PATH
(cherry picked from commit d25663a32e)
2021-05-06 10:32:27 +02:00
gsell fcf37f8b44 Pmodule modulefile: remove Pmodules bin dir from PATH
in some cases it might happen that we have a Pmodules bin directory
in PATH. This has to be removed if we load a Pmodule module.


(cherry picked from commit d23fdf930a)
2021-05-06 10:31:47 +02:00
gsell d25663a32e modulefile: bugfix in modifying PATH 2021-05-06 09:27:28 +02:00
gsell 9a0d55ed85 modulecmd: save environment after unloading a module 2021-05-06 09:25:26 +02:00
gsell 325551eecd modulecmd: fixes in adding/removing overlays
bugfix in the code to prevent adding an overlay if modules are already
loaded, same for removing

more clear error message if an overlay cannot be added/removed

use constants for overlay modifiers
2021-05-06 09:19:46 +02:00
gsell 415a942931 libmodules.tcl: bugfixes in module-addgroup() handling overlays
replacing(global) overlays were not handle properly
2021-05-06 09:11:44 +02:00
gsell 38bbf3917d Merge branch 'master' into 32-overlay-implementation 2021-04-30 15:58:52 +02:00
gsell b0636eb004 Merge branch '112-modmanage-review-and-cleanup' into 'master'
Resolve "modmanage: review and cleanup"

Closes #112

See merge request Pmodules/src!80
2021-04-30 15:33:32 +02:00
gsell 47bccd5fa8 modmange: functions from libpmodules.bash added 2021-04-30 15:30:17 +02:00
gsell 8c4d911fa5 modmanage: don't use PATH to find commands 2021-04-30 15:27:46 +02:00
gsell 291039084b modmanage: hardcode CMD 2021-04-30 15:24:13 +02:00
gsell 2747861b52 modmanage: shebang fixed 2021-04-30 15:23:44 +02:00
gsell 7146c2b179 Merge branch '111-modulecmd-better-tmp-file-handling' into 'master'
Resolve "modulecmd: better tmp file handling"

Closes #111

See merge request Pmodules/src!79
2021-04-29 19:34:27 +02:00
gsell c55404a798 modulecmd: better tmp file handling
A global tmp file is created if the sub-command is 'load', 'purge' or
'search' and removed in the exit function.
2021-04-29 19:29:42 +02:00
gsell f398834f08 Merge branch '110-don-t-remove-a-pmodules-module-with-module-purge' into 'master'
Resolve "don't remove a Pmodules module with module purge"

Closes #110

See merge request Pmodules/src!78
2021-04-29 18:58:45 +02:00
gsell a970be1cf3 modulecmd: don't remove a loaded Pmodules module with module purge
Removing a Pmodule module with module purge has some unwanted
side-effects. It is not required to have modulecmd in a directory of
PATH. If you user explicitly loads a Pmodules module the bin directory
of the Pmodule module is added to the PATH. A Pmodules module might be
loaded for two reasons. First to change the Pmodules version, second
to make the build system available. If we remove a Pmodules module
with module purge the build systems is getting unavailable again. This
is confusing for the user.
2021-04-29 18:47:01 +02:00
gsell 80728b8a6a modulecmd: tag log messages with 'Pmodules' 2021-04-29 18:10:55 +02:00
gsell 47b5fae59b modbuild: better support for build modules in overlays
A new configuration file has been added to map human readable overlay
names to the corresponding directory. The overlay can be specified
with the --overlay option. The passed string can be either a name or a
directory. If a name is passed, this name must map to directory in the
configuration file ${PMODULES_ROOT}/config/overlays.conf. The name is
also used as to select the variant files 'files/variants.name'. The
selection of variant files can be overriden with the --system
option.
2021-04-29 17:54:25 +02:00
gsell d23fdf930a Pmodule modulefile: remove Pmodules bin dir from PATH
in some cases it might happen that we have a Pmodules bin directory
in PATH. This has to be removed if we load a Pmodule module.
2021-04-28 18:52:58 +02:00
gsell 9e6566636b modulecmd: bugfix in use/unuse overlays 2021-04-28 18:51:29 +02:00
gsell c44f393ef2 modulecmd: improved handling of tmp file(s)
A tmp file is now created at the very beginning for all subcommands
where a tmp file is needed. The file is removed in the _exit()
function which is registered via trap.
2021-04-28 14:21:16 +02:00
gsell 23cbb4210e modulecmd: sub-cmd purge: reset MODUEPATH to used groups
The sub-command purge should not remove used groups from MODULEPATH
2021-04-28 11:49:45 +02:00
gsell 077cf0c4be modulecmd: bugfix in save_env()
Unsetting 'UsedGroups' the way we did doesn't work, revert this change
2021-04-28 11:46:13 +02:00