Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
# notes may name what a release removed.
- name: No site names in the tree
run: |
! git grep -nIiE 'snellius|surf\.nl|/gpfs/|/projects/0|rg\.terra|scratch-shared|scratch-node|eblocalinstall' -- . ':!CHANGELOG.md' ':!changelog.d/' ':!tests/cli_ergonomics.rs' ':!.github/workflows/ci_test.yml'
! git grep -nIiE 'snellius|surf\.nl|/gpfs/|/projects/0|rg\.terra|scratch-shared|scratch-node|eblocalinstall' -- . ':(exclude)fixtures/parity_*' ':!CHANGELOG.md' ':!changelog.d/' ':!tests/cli_ergonomics.rs' ':!.github/workflows/ci_test.yml'
- name: Cargo source package
run: cargo package --locked

Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ exclude = [
"fixtures/maintainer_rpath_26480/",
"fixtures/maintainer_shell_stage/",
"fixtures/multi_gen_baseline/",
"fixtures/parity_*/",
"fixtures/parser_hardcases/",
"fixtures/qmcpack_foss_2026_1/",
"fixtures/stack_order_installed/",
Expand Down
1 change: 1 addition & 0 deletions changelog.d/+bare-module-system.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Reject bare module-version dependencies that resolve only at SYSTEM.
1 change: 1 addition & 0 deletions changelog.d/+eb-parse-conditional-augassign.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Evaluate decidable predicates over parsed recipe variables in conditional easyconfig branches so conditional += dependencies such as cuQuantum in PennyLane are preserved.
1 change: 1 addition & 0 deletions changelog.d/+foss-subtoolchain-sibling-order.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Order gfbf before gompi when deriving foss toolchain hierarchies from the easyconfig tree to match EasyBuild get_toolchain_hierarchy and shipped foss fixtures.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Recognize SYSTEM toolchain and GCCcore-based compiler recipes in derive_hierarchy_by_walking for sparse trees without toolchain users, and resolve split version plus versionsuffix compiler definitions.
1 change: 1 addition & 0 deletions changelog.d/+recipe-check-full-module-pin.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix `recipe check` rejecting a full toolchain-suffixed module version such as `5.3.0-GCCcore-13.3.0`. `build_order` already accepted it, and SYSTEM recipes like sentieon-genomics depend on it.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Allow within_generation and candidate_matches_dep to resolve dependencies whose exact version string spells a toolchain-suffixed module identity on a SYSTEM recipe.
1 change: 1 addition & 0 deletions changelog.d/+site-name-vendored-parity-fixtures.misc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Exclude vendored parity fixtures from the site-name CI guard.
339 changes: 339 additions & 0 deletions fixtures/parity_foss_subtoolchain/LICENSE

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions fixtures/parity_foss_subtoolchain/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Parity fixture: foss-2022a SUBTOOLCHAIN sibling order

Verbatim GPL-2.0-only excerpts vendored from EasyBuild upstream for toolchain
hierarchy parity tests (`tests/toolchain_hierarchy_parity.rs`). Excluded from
the published `eb_stack` crate via `Cargo.toml` `exclude = ["fixtures/parity_*/"]`.

- Upstream `easybuild-easyconfigs` commit `b210e3fdfe940821d74bbbb0d4e0469f16649963`:
minimal `foss-2022a` `get_toolchain_hierarchy` easyconfig closure (32 files)
- Upstream `easybuild-framework` commit `8907031c218b8a331de7c9d411555ead05df0411`:
`easybuild/toolchains/foss.py` (`SUBTOOLCHAIN = [Gompi.NAME, Golf.NAME, Gfbf.NAME]`)
- `LICENSE`: verbatim upstream GNU General Public License v2.0 (`sha256: 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643`)
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
easyblock = 'Bundle'

name = 'Autotools'
version = '20220317' # date of the most recent change

homepage = 'https://autotools.io'

description = """
This bundle collect the standard GNU build tools: Autoconf, Automake
and libtool
"""

toolchain = {'name': 'GCCcore', 'version': '11.3.0'}

dependencies = [
('Autoconf', '2.71'), # 20210128
('Automake', '1.16.5'), # 20211003
('libtool', '2.4.7'), # 20220317
]

# Pure bundle -- no need to specify 'binutils' used when building GCCcore
# toolchain as build dependency

moduleclass = 'devel'
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
easyblock = 'ConfigureMake'

name = 'BLIS'
version = '0.9.0'

homepage = 'https://github.com/flame/blis/'
description = """BLIS is a portable software framework for instantiating high-performance
BLAS-like dense linear algebra libraries."""

toolchain = {'name': 'GCC', 'version': '11.3.0'}

source_urls = ['https://github.com/flame/blis/archive/']
sources = ['%(version)s.tar.gz']
patches = [
'%(name)s-%(version)s_disable_power9_kernels.patch',
'%(name)s-%(version)s_enable_ppc_autodetect.patch',
]
checksums = [
'1135f664be7355427b91025075562805cdc6cc730d3173f83533b2c5dcc2f308', # 0.9.0.tar.gz
# BLIS-0.9.0_disable_power9_kernels.patch
'ed7a326bc5c5c21c42faefbec2fd7be609d1c7236981b466475edace39307279',
# BLIS-0.9.0_enable_ppc_autodetect.patch
'f373fb252c0d14036fb631f048091976cceb02abb3e570a97fbaeac2fbb12328',
]
builddependencies = [
('Python', '3.10.4', '-bare'),
('Perl', '5.34.1'),
]

configopts = '--enable-cblas --enable-threading=openmp --enable-shared CC="$CC" auto'

runtest = 'check'

sanity_check_paths = {
'files': ['include/blis/cblas.h', 'include/blis/blis.h',
'lib/libblis.a', 'lib/libblis.%s' % SHLIB_EXT],
'dirs': [],
}

modextrapaths = {MODULE_LOAD_ENV_HEADERS: 'include/blis'}

moduleclass = 'numlib'
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
easyblock = 'ConfigureMake'

name = 'Bison'
version = '3.8.2'

homepage = 'https://www.gnu.org/software/bison'
description = """Bison is a general-purpose parser generator that converts an annotated context-free grammar
into a deterministic LR or generalized LR (GLR) parser employing LALR(1) parser tables."""

toolchain = {'name': 'GCCcore', 'version': '11.3.0'}

source_urls = [GNU_SOURCE]
sources = [SOURCELOWER_TAR_GZ]
checksums = ['06c9e13bdf7eb24d4ceb6b59205a4f67c2c7e7213119644430fe82fbd14a0abb']

builddependencies = [
('M4', '1.4.19'),
# use same binutils version that was used when building GCCcore toolchain
('binutils', '2.38', '', SYSTEM),
]


sanity_check_paths = {
'files': ['bin/%s' % x for x in ['bison', 'yacc']] + [('lib/liby.a', 'lib64/liby.a')],
'dirs': [],
}

moduleclass = 'lang'
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
easyblock = 'ConfigureMake'

name = 'Bison'
version = '3.8.2'

homepage = 'https://www.gnu.org/software/bison'

description = """
Bison is a general-purpose parser generator that converts an annotated
context-free grammar into a deterministic LR or generalized LR (GLR) parser
employing LALR(1) parser tables.
"""

toolchain = SYSTEM

source_urls = [GNU_SOURCE]
sources = [SOURCELOWER_TAR_GZ]
checksums = ['06c9e13bdf7eb24d4ceb6b59205a4f67c2c7e7213119644430fe82fbd14a0abb']

builddependencies = [
('M4', '1.4.19'),
]

sanity_check_paths = {
'files': ['bin/%s' % x for x in ['bison', 'yacc']] + [('lib/liby.a', 'lib64/liby.a')],
'dirs': [],
}

moduleclass = 'lang'
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name = 'binutils'
version = '2.38'

homepage = 'https://directory.fsf.org/project/binutils/'
description = "binutils: GNU binary utilities"

toolchain = {'name': 'GCCcore', 'version': '11.3.0'}

source_urls = [GNU_SOURCE]
sources = [SOURCE_TAR_GZ]
checksums = ['b3f1dc5b17e75328f19bd88250bee2ef9f91fc8cbb7bd48bdb31390338636052']

builddependencies = [
('flex', '2.6.4'),
('Bison', '3.8.2'),
# use same binutils version that was used when building GCC toolchain, to 'bootstrap' this binutils
('binutils', version, '', SYSTEM)
]

dependencies = [
# zlib is a runtime dep to avoid that it gets embedded in libbfd.so,
# see https://github.com/easybuilders/easybuild-easyblocks/issues/1350
('zlib', '1.2.12'),
]

# avoid build failure when makeinfo command is not available
# see https://sourceware.org/bugzilla/show_bug.cgi?id=15345
buildopts = 'MAKEINFO=true'
installopts = buildopts

moduleclass = 'tools'
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name = 'binutils'
version = '2.38'

homepage = 'https://directory.fsf.org/project/binutils/'

description = "binutils: GNU binary utilities"

toolchain = SYSTEM

source_urls = [GNU_SOURCE]
sources = [SOURCE_TAR_GZ]
checksums = ['b3f1dc5b17e75328f19bd88250bee2ef9f91fc8cbb7bd48bdb31390338636052']

builddependencies = [
('flex', '2.6.4'),
('Bison', '3.8.2'),
# zlib required, but being linked in statically, so not a runtime dep
('zlib', '1.2.12'),
]

# avoid build failure when makeinfo command is not available
# see https://sourceware.org/bugzilla/show_bug.cgi?id=15345
buildopts = 'MAKEINFO=true'
installopts = buildopts

moduleclass = 'tools'
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name = 'CMake'
version = '3.23.1'

homepage = 'https://www.cmake.org'

description = """
CMake, the cross-platform, open-source build system. CMake is a family of
tools designed to build, test and package software.
"""

toolchain = {'name': 'GCCcore', 'version': '11.3.0'}

source_urls = ['https://www.cmake.org/files/v%(version_major_minor)s']
sources = [SOURCELOWER_TAR_GZ]
checksums = ['33fd10a8ec687a4d0d5b42473f10459bb92b3ae7def2b745dc10b192760869f3']

builddependencies = [
('binutils', '2.38'),
]

dependencies = [
('ncurses', '6.3'),
('zlib', '1.2.12'),
('bzip2', '1.0.8'),
('cURL', '7.83.0'),
('libarchive', '3.6.1'),
('OpenSSL', '1.1', '', SYSTEM),
]

moduleclass = 'devel'
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name = 'FFTW.MPI'
version = '3.3.10'

homepage = 'https://www.fftw.org'
description = """FFTW is a C subroutine library for computing the discrete Fourier transform (DFT)
in one or more dimensions, of arbitrary input size, and of both real and complex data."""

toolchain = {'name': 'gompi', 'version': '2022a'}
toolchainopts = {'pic': True}

source_urls = [homepage]
sources = ['fftw-%(version)s.tar.gz']
checksums = ['56c932549852cddcfafdab3820b0200c7742675be92179e59e6215b340e26467']

dependencies = [('FFTW', '3.3.10')]

runtest = 'check'

moduleclass = 'numlib'
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name = 'FFTW'
version = '3.3.10'

homepage = 'https://www.fftw.org'
description = """FFTW is a C subroutine library for computing the discrete Fourier transform (DFT)
in one or more dimensions, of arbitrary input size, and of both real and complex data."""

toolchain = {'name': 'GCC', 'version': '11.3.0'}
toolchainopts = {'pic': True}

source_urls = [homepage]
sources = [SOURCELOWER_TAR_GZ]
checksums = ['56c932549852cddcfafdab3820b0200c7742675be92179e59e6215b340e26467']

runtest = 'check'

moduleclass = 'numlib'
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
easyblock = 'Bundle'

name = 'FlexiBLAS'
version = '3.2.0'

homepage = 'https://gitlab.mpi-magdeburg.mpg.de/software/flexiblas-release'
description = """FlexiBLAS is a wrapper library that enables the exchange of the BLAS and LAPACK implementation
used by a program without recompiling or relinking it."""

toolchain = {'name': 'GCC', 'version': '11.3.0'}
local_extra_flags = "-fstack-protector-strong -fstack-clash-protection"
toolchainopts = {'pic': True, 'extra_cflags': local_extra_flags, 'extra_fflags': local_extra_flags}

builddependencies = [
('CMake', '3.23.1'),
('Python', '3.10.4', '-bare'), # required for running the tests
('BLIS', '0.9.0'),
]

dependencies = [
('OpenBLAS', '0.3.20'),
]

# note: first listed backend will be used as default by FlexiBLAS,
# unless otherwise specified via easyconfig parameter flexiblas_default
local_backends = ['OpenBLAS', 'BLIS']

# imkl supplies its backend via the imkl module, not as a dependency
if ARCH == 'x86_64':
local_backends.append('imkl')

default_component_specs = {'start_dir': '%(namelower)s-%(version)s'}
sanity_check_all_components = True

# Also build and install LAPACKE, which FlexiBLAS does not support yet
components = [
(name, version, {
'source_urls': ['https://github.com/mpimd-csc/flexiblas/releases/download/v%(version)s/'],
'sources': [SOURCELOWER_TAR_GZ],
'checksums': ['a3f4d66a30b6fa6473e492de86d34abc5f9d4e69d4d91ba23618388e8df05904'],
'backends': local_backends,
}),
('LAPACK', '3.10.1', {
'easyblock': 'CMakeMake',
'source_urls': ['https://github.com/Reference-LAPACK/lapack/archive/'],
'sources': ['v%(version)s.tar.gz'],
'checksums': ['cd005cd021f144d7d5f7f33c943942db9f03a28d110d6a3b80d718a295f7f714'],
'configopts': ('-DBUILD_SHARED_LIBS=ON -DUSE_OPTIMIZED_BLAS=ON -DLAPACKE=ON '
'-DUSE_OPTIMIZED_LAPACK=ON -DBUILD_DEPRECATED=ON '
'-DCMAKE_INSTALL_INCLUDEDIR=%(installdir)s/include/flexiblas'),
'sanity_check_paths': {
'files': ['lib/liblapacke.%s' % SHLIB_EXT, 'include/flexiblas/lapacke.h'],
'dirs': [],
},
}),
]

moduleclass = 'lib'
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name = 'flex'
version = '2.6.4'

homepage = 'http://flex.sourceforge.net/'

description = """
Flex (Fast Lexical Analyzer) is a tool for generating scanners. A scanner,
sometimes called a tokenizer, is a program which recognizes lexical patterns
in text.
"""

toolchain = {'name': 'GCCcore', 'version': '11.3.0'}
toolchainopts = {'pic': True}

source_urls = ['https://github.com/westes/flex/releases/download/v%(version)s/']
sources = [SOURCELOWER_TAR_GZ]
checksums = ['e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995']

builddependencies = [
('Bison', '3.8.2'),
('help2man', '1.49.2'),
# use same binutils version that was used when building GCC toolchain
('binutils', '2.38', '', SYSTEM),
]

dependencies = [
('M4', '1.4.19'),
]

# glibc 2.26 requires _GNU_SOURCE defined to expose reallocarray in the correct
# header, see https://github.com/westes/flex/issues/241
preconfigopts = 'export CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" && '

moduleclass = 'lang'
Loading