-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use source toolchain version when passing only
--try-toolchain
`process_software_build_specs` ialways adds a `toolchain` key even when only the name of the toolchain is available. This makes the code in `tweak` ignore the code path in using `toolchain_name` and/or `toolchain_version` with the fallback to using the values of the source toolchain. This in turn leads to failures further down when a value of `None` is used where an actual version is expected. Fix by only adding the `toolchain` key when we have both the name and version and hence a complete, valid toolchain spec.
- Loading branch information
Showing
5 changed files
with
79 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
test/framework/easyconfigs/test_ecs/i/iimpi/iimpi-2018a.eb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This is an easyconfig file for EasyBuild, see http://easybuilders.github.io/easybuild | ||
easyblock = 'Toolchain' | ||
|
||
name = 'iimpi' | ||
version = '2018a' | ||
|
||
homepage = 'https://software.intel.com/parallel-studio-xe' | ||
description = """Intel C/C++ and Fortran compilers, alongside Intel MPI.""" | ||
|
||
toolchain = SYSTEM | ||
|
||
local_compver = '2016.1.150' | ||
local_suff = '-GCC-4.9.3-2.25' | ||
dependencies = [ | ||
('icc', local_compver, local_suff), | ||
('ifort', local_compver, local_suff), | ||
('impi', '5.1.2.150', '', ('iccifort', '%s%s' % (local_compver, local_suff))), | ||
] | ||
|
||
moduleclass = 'toolchain' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
test/framework/easyconfigs/test_ecs/t/toy/toy-0.0-foss-2018a.eb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name = 'toy' | ||
version = '0.0' | ||
|
||
homepage = 'https://easybuilders.github.io/easybuild' | ||
description = "Toy C program, 100% toy." | ||
|
||
toolchain = {'name': 'foss', 'version': '2018a'} | ||
toolchainopts = {'pic': True, 'opt': True, 'optarch': True} | ||
|
||
sources = [SOURCE_TAR_GZ] | ||
checksums = [[ | ||
'be662daa971a640e40be5c804d9d7d10', # default (MD5) | ||
'44332000aa33b99ad1e00cbd1a7da769220d74647060a10e807b916d73ea27bc', # default (SHA256) | ||
('adler32', '0x998410035'), | ||
('crc32', '0x1553842328'), | ||
('md5', 'be662daa971a640e40be5c804d9d7d10'), | ||
('sha1', 'f618096c52244539d0e89867405f573fdb0b55b0'), | ||
('size', 273), | ||
]] | ||
patches = [ | ||
'toy-0.0_fix-silly-typo-in-printf-statement.patch', | ||
('toy-extra.txt', 'toy-0.0'), | ||
] | ||
|
||
sanity_check_paths = { | ||
'files': [('bin/yot', 'bin/toy')], | ||
'dirs': ['bin'], | ||
} | ||
|
||
postinstallcmds = ["echo TOY > %(installdir)s/README"] | ||
|
||
moduleclass = 'tools' | ||
# trailing comment, leave this here, it may trigger bugs with extract_comments() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters