Commit Graph

161 Commits

Author SHA1 Message Date
Xavier Delaruelle
11c7a0c6d6 install: disable silent_shell_debug by default
Change installation option --enable-silent-shell-debug-support to
disable it by default. Now the silent_shell_debug configuration option
enables to locally enable this feature from the initrc configuration
file.
2021-08-31 20:59:18 +02:00
Xavier Delaruelle
1283c28d2e install: disable quarantine_support by default
Change installation option --enable-quarantine-support to disable it by
default. Now the quarantine_support configuration option enables to
locally enable this feature from the initrc configuration file.
2021-08-26 21:21:30 +02:00
Xavier Delaruelle
9cb14536a0 install: remove useless gitworktree install config var 2021-07-24 14:06:09 +02:00
Xavier Delaruelle
d358efd18c install: remove useless EXEEXT install config var 2021-07-24 14:06:09 +02:00
Xavier Delaruelle
2fdaf5449a install: remove --enable-compat-version install option
Remove installation option '--enable-compat-version'. Compatiblity
version co-installation is discontinued.
2021-07-24 14:06:06 +02:00
Xavier Delaruelle
664808acd7 install: swap --enable-dotmodulespath/--enable-modulespath
Make --enable-modulespath the primary option name and
--enable-dotmodulespath the secondary option name as .modulespath is not
anymore the primary name of this configuration file.
2021-07-18 22:06:02 +02:00
Xavier Delaruelle
2e2e3c3275 install: set --with-initconf-in to etcdir by default
Installation option '--with-initconf-in' is set to 'etdir' by default
to locate configuration files in the directory designated by the
'--etcdir' option. Therefore the initialization configuration file is
named `initrc` in this directory, and the  modulepath-specific
configuration file is named `modulespath`.

Configuration files are thus located in a traditional etcdir rather
being part of the init dir among scripts that should stay read only.
2021-07-18 16:06:20 +02:00
Xavier Delaruelle
372ea4edd1 missing/doc: missing inst opt default value mention 2021-07-16 22:53:40 +02:00
Xavier Delaruelle
6050cb7216 install: set --enable-set-shell-startup off by default
Installation option '--enable-set-shell-startup' is set off by default
but could be enabled once installed through the `initrc` configuration
file.

It seems better to let people choose to enable this option than being
surprised to find Modules initialization script run automatically each
time a sub-shell is spawn.
2021-07-16 22:04:27 +02:00
Xavier Delaruelle
9383c006a4 install: reset --enable-new-features
Installation option '--enable-new-features' has been reset following
major version change as all the options it implied are now enabled by
default.
2021-07-16 21:21:15 +02:00
Xavier Delaruelle
86cb6dc4f6 install: set --with-icase on by default
Installation option '--with-icase' is set to `search` by default to
activate case insensitive match on search contexts.
2021-07-16 15:56:45 +02:00
Xavier Delaruelle
65fffd85fc install: set --enable-color on by default
Installation option '--enable-color' is set on by default which enables
the `auto` output color mode.
2021-07-16 15:56:45 +02:00
Xavier Delaruelle
0d322333f9 install: set --enable-advanced-version-spec on by default
Installation option '--enable-advanced-version-spec' is set on by
default which activates the Advanced module version specifiers.
2021-07-16 15:56:45 +02:00
Xavier Delaruelle
357c915533 install: set --enable-extended-default on by default
Installation option '--enable-extended-default' is set on by default
which allows partial module version specification.
2021-07-16 15:56:45 +02:00
Xavier Delaruelle
25af5e70a5 install: set --enable-auto-handling on by default
Installation option '--enable-auto-handling' is set on by default which
enables the automated module handling mode.
2021-07-16 15:56:45 +02:00
Xavier Delaruelle
1d63f5de04 install: remove debug statement in configure 2021-07-16 15:56:45 +02:00
Xavier Delaruelle
f4b69a2e9d install: add --with-variant-shortcut configure option 2021-06-28 20:44:23 +02:00
Xavier Delaruelle
e893e8f686 install/doc: add va color key
Add the `va` color key in default light and dark color palettes to
graphically enhance the report of variant value.
2021-06-21 20:43:10 +02:00
Xavier Delaruelle
1c5bbd6c90 install/doc: add variant element on list_*output configs
Add the element `variant` in the allow list of the list_output and
list_terse_output configuration options. Set this new element in the
default value list of the list_output configuration option.
2021-06-21 20:43:10 +02:00
Xavier Delaruelle
db74c4cbdf install: allow building from submodule repository
Fix installation scripts to allow building Modules when its repository
is set as a git submodule.

Closes #398.
2021-05-11 20:14:07 +02:00
Xavier Delaruelle
c00ecefaa4 install: add --with-editor configure option
Introduce the --with-editor configure option to choose at installation
time the default editor command to use to interactively edit
modulefiles. Default editor is 'vi'.
2021-04-24 13:36:51 +02:00
Xavier Delaruelle
17cd13c0bf install: re-license configure script from GPLv3+ to GPLv2+
Change license of the configure installation script from GPLv3+ to
GPLv2+.

Align this way all files from the Modules project under the GPLv2+
license.

Consent has been obtained from the copyright holders (I, @xdch47 and
@jraphanel) to perform such move. Consent from Jacques Raphanel and
Felix Neumärker were collected by email.

Revert contribution from R.K. Owen (cc4d3194), from whom consent is not
yet obtained. Contribution will be restored as soon as consent will be
obrained.

Related to #389
2021-03-02 20:14:57 +01:00
Xavier Delaruelle
cc9c468270 install: add -i opt to lib autoreconf
Ensure missing auxiliary file are copied when running autoreconf for
Modules Tcl extension library.
2021-02-17 16:04:04 +01:00
Xavier Delaruelle
8f93a65713 install: split configure err msg over an extra line 2021-02-08 07:17:38 +01:00
Xavier Delaruelle
8b00f850c2 install: color ERROR/WARNING msg header in configure
Color the *ERROR* and *WARNING* message headers produced by configure
script if output is sent to a terminal.
2021-02-08 07:17:38 +01:00
Xavier Delaruelle
dd45d45988 install: check --with-nearly-forbidden-days int value
Check the value set for the --with-nearly-forbidden-days option is an
integer comprised between 0 and 365.
2021-02-08 07:17:38 +01:00
Xavier Delaruelle
f5dfb30fcb Add {avail,list}_{terse_,}output configurations 2021-02-08 07:17:37 +01:00
Xavier Delaruelle
12bfe42cc3 install: correctly detect pre-built doc environment
Do not set docs as pre-built if configure script is ran another time
after building doc.
2021-02-06 13:03:35 +01:00
R.K. Owen
cc4d3194d6 install: fix configure script when called from PATH
Have configure assume the '.' dot directory when invoked without the
prepended ./
2021-02-06 13:01:27 +01:00
Xavier Delaruelle
06f049c3ee Add mcookie_version_check config
Add mcookie_version_check configuration to disable the version check on
the Modules magic cookie used in modulefiles. Option, enabled by
default, is linked to the MODULES_MCOOKIE_VERSION_CHECK environment
variable.

Closes #377.
2021-01-25 06:08:13 +01:00
Xavier Delaruelle
ab21a6e656 install: add --enable-new-features configure option
Introduce --enable-new-features configure option to enable all at once
all the new features disabled by default due to the behavior change they
introduced on Modules 4.

--enable-new-features option is equivalent to --enable-auto-handling,
--enable-color, --with-icase=search, --enable-extended-default,
--enable-advanced-version-spec.
2021-01-15 06:50:17 +01:00
Xavier Delaruelle
c7843b80a8 install: add default color/abbrev for super-sticky tag 2021-01-03 18:16:38 +01:00
Xavier Delaruelle
b95f532537 install: add default color/abbrev to sticky tag 2020-12-28 10:07:29 +01:00
Xavier Delaruelle
30bb518f77 Introduce verbose2 verbosity level
verbose2 verbosity level is introduced as a higher level than verbose
and lower than trace level. This new verbosity level currently enables
to view the loading and unloading notification of *hidden-loaded*
modules.
2020-12-18 18:59:23 +01:00
Xavier Delaruelle
ea801976c0 install: add abbrev for hidden-loaded tag
hidden-loaded tag will use same abbreviation than hidden tag (*H*), as
hidden tag is reported only on avail context and hidden-loaded on list
context. So the sgr code defined for H abbreviation will also applies to
hidden-loaded tag.
2020-12-18 18:59:11 +01:00
Xavier Delaruelle
70f9bac583 Set color for basic tag abbrev
Provide in the default light and dark background color set a graphical
rendition code for the basic module tags (loaded, auto-loaded, hidden,
forbidden, nearly-forbidden).
2020-12-18 18:58:53 +01:00
Xavier Delaruelle
4e0ec6450b Add tag_color_name configuration 2020-12-18 18:58:53 +01:00
Xavier Delaruelle
979349da7d Add tag_abbrev configuration 2020-12-18 18:58:37 +01:00
Xavier Delaruelle
d371aac50a install: clear git remote in build ref tag 2020-12-18 18:58:26 +01:00
Xavier Delaruelle
045c0a5aba Add implicit_requirement config
Introduce the implicit_requirement configuration option to control
whether a prereq or conflict requirement should be implicitly set
toward modules respectively specified on module load or module unload
commands in modulefile.

Default value for option could be set at configure time with the
--enable-implicit-requirement option (enabled by default). This value
could be superseded by setup of implicit_requirement option with config
sub-command. Which set the MODULES_IMPLICIT_REQUIREMENT environment
variable.
2020-11-15 10:03:42 +01:00
Xavier Delaruelle
4b6cc95f01 ts: test ModuleTool/ModuleToolVersion in 50/410 2020-11-15 08:45:47 +01:00
Xavier Delaruelle
4e0d8b5966 Add 'tr' sgr color key for trace messages 2020-09-06 15:31:04 +02:00
Xavier Delaruelle
e325ce434e install: add support for MinGW platform
Look for `make` rather `gmake` on MinGW and build library with a `.dll`
extension on this platform.
2020-09-06 15:31:04 +02:00
Xavier Delaruelle
06d68bfd69 Rework trace verbosity level
Report module resolution/search/selection/evaluation to trace big steps
of modulecmd.tcl activity.
2020-09-06 09:34:06 +02:00
Xavier Delaruelle
aa0c357260 Rework current trace verbose mode into debug2 mode
Report procedure call in addition to other debug messages through the
`debug2` verbosity level rather the `trace` level (that is preserved for
another task).

When -D/--debug option is set multiple times, `debug2` mode is set.
2020-09-05 15:35:44 +02:00
Xavier Delaruelle
178b9ef6df install: add --with-nearly-forbidden-days configure opt
Introduce the --with-nearly-forbidden-days ./configure script option to
define the number of days a module is considered nearly forbidden prior
reaching its expiry date limit set by module-forbid command.
2020-08-28 07:18:25 +02:00
Xavier Delaruelle
4a78e9ae91 Add support for multilib systems
Introduce the `--enable-multilib-support` configure option to add
mechanism in `modulecmd.tcl` to look at an alternative location to find
the Modules Tcl extension library in case this library cannot be found
at its main location.

It adds the ability on specific architecture (e.g., x86_64) to use the
library build for another architecture compatible with current machine
(e.g., i686).

When this option is enabled, modulecmd.tcl is produced in a way that
make it identical whether built from 32bit or 64bit systems. This way no
conflict happen on EL/Fedora systems when installing both 64bit and
32bit RPM packages.
2020-08-10 08:06:09 +02:00
Xavier Delaruelle
7fd21aec90 install: pass --{build,target,host} opt to lib configure
Also pass the --build, --target and --host options down to the
`configure` script of Modules Tcl extension library.
2020-08-10 08:06:09 +02:00
Xavier Delaruelle
84cc9beed6 install: add support for env var and system type set on configure
Add support to define environment variable and build system type as
`configure` script arguments to better match GNU configuration
specification.
2020-08-10 08:06:09 +02:00
Xavier Delaruelle
a1dc7955ff install: ign not supported --enable-*/--with-* opts
Ignore not supported `--enable-*` and `--with-*` options on `configure`
script rather raise an error to comply with GNU configuration
specification.
2020-08-10 08:06:09 +02:00