Commit Graph

2541 Commits

Author SHA1 Message Date
Xavier Delaruelle
cd1de48da8 doc: fix broken refs in compiler-etc-depend recipe 2020-02-21 22:41:46 +01:00
Xavier Delaruelle
f046cd833c doc: simplify reading of compiler-etc-depend recipe (trailing space) 2020-02-21 22:41:46 +01:00
Xavier Delaruelle
e451b7754c doc: simplify reading of compiler-etc-depend recipe (dummy) 2020-02-21 22:41:46 +01:00
Tom Payerle
f2272eb917 doc: add compiler-etc-dependencies cookbook recipe
New cookbook discussing various strategies for creating modulefiles for
packages with multiple builds depending on previously loaded compiler,
MPI libraries etc. (E.g. handling different "flavors" of packages)
2020-02-21 22:41:46 +01:00
Xavier Delaruelle
6b95e5064e script: fix path deduplication in createmodule.sh
Fixes #316
2020-02-19 21:03:37 +01:00
Xavier Delaruelle
bab66eaaef ts: adapt perl code which sets _mlstatus 2020-02-18 14:41:13 +01:00
Xavier Delaruelle
01483bc586 Lift perl variable strictness for _mlstatus
Declaration of $_mlstatus (evaluation status variable) cannot be
done as part of generated code passed to `eval` statement. If $_mlstatus
is declared or re-declared as part of evaluated code, defined value
cannot be retrieved afterward in `module` subroutine.

To be able to retrieve the value of $_mlstatus set within generated code
evaluation yet avoiding warnings of a 'use strict;' mode, temporarily
disable variable strictness.
2020-02-18 14:41:13 +01:00
Andrey Maslennikov
91bcf17995 Add "my" for perl's $_mlstatus
Since this variable is always rendered it might be evaluated in a strict
scope and fail with the following error: `Global symbol "$_mlstatus"
requires explicit package name (did you forget to declare "my
$_mlstatus"?)`
2020-02-18 14:41:13 +01:00
Xavier Delaruelle
eddd041cf3 ts: adapt (again) err msg and code for fish 3.1 2020-02-18 06:23:53 +01:00
Armin Wehrfritz
a9e8019253 script: fix createmodule.py for python3
Fixes #315
2020-02-17 15:50:52 +01:00
Xavier Delaruelle
6b403bfe56 git: ignore dir used for local tests 2020-02-17 15:29:28 +01:00
Xavier Delaruelle
67ebfc1e9a ts: adapt err msg for fish 3.1 2020-02-17 15:29:15 +01:00
Xavier Delaruelle
514a670906 install: pass --with-python option to compat configure 2020-02-11 09:26:09 +01:00
Xavier Delaruelle
5397c24616 rpm: use configure option --with-python to set shebang 2020-02-10 07:31:24 +01:00
Xavier Delaruelle
004c3b6dc9 install: build and install createmodule.py in bindir 2020-02-10 07:19:52 +01:00
Xavier Delaruelle
1041e10b3f install: ensure all built scripts have exec perms 2020-02-10 07:08:52 +01:00
Xavier Delaruelle
9b395397ab install: add --with-python configure option
Enable to pass a specific Python interpreter command name or location at
configure step with `--with-python` option. Specified command name or
location should be found on build system only if building from git
repository.
2020-02-10 07:07:02 +01:00
Xavier Delaruelle
9535266a60 install: build createmodule.py/gitlog2changelog.py to set shebang
Adapt configure script and Makefile to detect `python` command location
and set it as shebang for `createmodule.py` and `gitlog2changelog.py`.
If python command is not found python3 then python2 are searched.
2020-02-10 07:00:32 +01:00
Xavier Delaruelle
95a17c9860 travis: fix configuration warnings 2020-02-09 17:43:56 +01:00
Xavier Delaruelle
726bdfe91c travis: replace a CentOS 6 test case by a CentOS 8 2020-02-09 17:43:56 +01:00
Xavier Delaruelle
f9ed70d8d0 install: %D git-log placeholder by not be supported 2020-02-09 13:55:10 +01:00
Xavier Delaruelle
b82fe6cd23 install/travis: add rules to build rpm and test it 2020-02-09 13:25:03 +01:00
Xavier Delaruelle
45ad52b67f ts: output detected tty col number 2020-02-09 08:30:32 +01:00
Xavier Delaruelle
75c3ef0d4a ts: fix msg block err tests with regexp special chars 2020-02-05 07:03:25 +01:00
Xavier Delaruelle
268e313bdf ts: output test error details whatever verbose value 2020-02-04 06:26:04 +01:00
Xavier Delaruelle
a28181074e install/script: abort auxiliary tools download after few seconds
Abort download of icdiff, nagelfar or tclsh83 after 2 timeouts of 5
seconds and record download failure for icdiff to avoid mt script to
attempt a new download tentative every time it is called.
2020-02-03 20:46:15 +01:00
Andrey Portnoy
e5c19bdd74 Fix typo in add.modules.in 2020-02-03 19:34:03 +01:00
Xavier Delaruelle
dee5da597c Fix sym version targetting mod version with space in name
Correctly handle symbolic version target including a whitespace in their
name.
2020-02-03 08:04:53 +01:00
Xavier Delaruelle
ac26f87e3c doc: desc. git archive build and createmodule script fixes in NEWS 2020-02-02 14:29:14 +01:00
Xavier Delaruelle
985aa88590 script: fix createmodule.{sh,py} for script outputting text
Inhibit output generated by scripts evaluated by createmodule.sh and
createmodule.py to ensure these outputs will not get in the way when
analyzing the environment change done by the evaluated scripts.

Fixes #309
2020-02-01 15:25:04 +01:00
Xavier Delaruelle
1ef61d6e77 script: avoid shell func defs in createmodule.sh
Fix createmodule.sh script to correctly analyses environment when shell
functions are found defined in it. These shell function definitions are
skipped.
2020-02-01 13:28:51 +01:00
Xavier Delaruelle
6309e4b1e9 doc: need more tools to install from a git archive export 2020-01-31 08:08:24 +01:00
Xavier Delaruelle
ed38a98c6c install: need sphinx if dist does not contain prebuilt doc
Check at configure step if pre-built documents are available, if found
Sphinx-related makefile rules are inhibited. Otherwise Sphinx
availability is tested and documentation build is disabled if not found.
2020-01-31 08:08:24 +01:00
Xavier Delaruelle
ad59a6bc01 install: no txt version of docs at dist root 2020-01-31 06:39:46 +01:00
Xavier Delaruelle
1e71298262 install: no need to pre-build README file in dist 2020-01-31 06:39:46 +01:00
Xavier Delaruelle
82778a99b4 doc: update core dev list in README 2020-01-31 06:39:46 +01:00
Xavier Delaruelle
ea931f13d3 install: no exclude of doc files from git archive dist
No more exclusion of project-related or installation documents from git
archive distribution. Enable makefile rules relative to Sphinx
documentation build even if not building from git repository. With
release distribution tarballs nothing changes as document is pre-built
in these archives. When working from a `git archive` export, these
Sphinx rules will help to build docs.
2020-01-31 06:39:06 +01:00
Xavier Delaruelle
0a2fbed5e2 install: do not clean ml.1 on 'make clean' if pre-built 2020-01-29 20:31:30 +01:00
Xavier Delaruelle
b4ccc6d097 install: add missing ml.1 pre-built doc in dist 2020-01-29 20:31:30 +01:00
Xavier Delaruelle
5760d2e686 install: build empty changelog if not building from git
In case Modules is built from a `git archive` distribution, generate a
bare ChangeLog file only referring to the NEWS document. Always include
gitlog2changelog.py tool in distributions, but do not run it if not
building from a git repository.
2020-01-29 20:31:27 +01:00
Xavier Delaruelle
59e9cf55da install: auto disable compat build if no src and not in git 2020-01-29 20:30:26 +01:00
Xavier Delaruelle
4182bdc9dc install: enable version.inc build outside git repository
Make `git archive` substitute .version.inc.in with commit hash, date and
refs. Compute MODULES_BUILD and MODULES_BUILD_DATE from these
informations in ./configure and Makefile if not working from git
repository.
2020-01-29 20:30:21 +01:00
Xavier Delaruelle
b8e34a44f7 doc: desc. Improved Windows support in NEWS/MIGRATING 2020-01-26 07:27:18 +01:00
Xavier Delaruelle
1a6c5564b4 doc: add ref to ml(1) man page in README 2020-01-25 16:21:53 +01:00
Xavier Delaruelle
78a4800085 appveyor: add native windows installation test case 2020-01-25 16:21:53 +01:00
Xavier Delaruelle
ea8052c23b script: add TESTINSTALL.bat script and ship it in dist-win 2020-01-25 16:21:53 +01:00
Xavier Delaruelle
13a99e387a script: ensure relevant exit code is set at end of win scripts 2020-01-25 16:21:53 +01:00
Xavier Delaruelle
fe3765454b script: move INSTALL.bat & UNINSTALL.bat in script dir 2020-01-25 16:21:53 +01:00
Xavier Delaruelle
90bb566542 install: set session PATH in INSTALL/UNINSTALL win scripts 2020-01-25 16:21:53 +01:00
Xavier Delaruelle
ff6e03f756 install: fix location of Windows find command 2020-01-25 16:21:53 +01:00