Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{2023.06}[foss/2022a] R/4.2.1 #189

Closed
wants to merge 5 commits into from
Closed
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
31 changes: 31 additions & 0 deletions eb_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,32 @@ def pre_test_hook_ignore_failing_tests_SciPybundle(self, *args, **kwargs):
self.cfg['testopts'] = "|| echo ignoring failing tests"


def pre_single_extension_hook(ext, *args, **kwargs):
"""Main pre-configure hook: trigger custom functions based on software name."""
if ext.name in PRE_SINGLE_EXTENSION_HOOKS:
PRE_SINGLE_EXTENSION_HOOKS[ext.name](ext, *args, **kwargs)


def pre_single_extension_testthat(ext, *args, **kwargs):
"""
Pre-extension hook for testthat R package, to fix build on top of recent glibc.
"""
if ext.name == 'testthat' and LooseVersion(ext.version) < LooseVersion('3.1.0'):
# use constant value instead of SIGSTKSZ for stack size,
# cfr. https://github.com/r-lib/testthat/issues/1373 + https://github.com/r-lib/testthat/pull/1403
ext.cfg['preinstallopts'] = "sed -i 's/SIGSTKSZ/32768/g' inst/include/testthat/vendor/catch.h && "


def pre_single_extension_isoband(ext, *args, **kwargs):
"""
Pre-extension hook for isoband R package, to fix build on top of recent glibc.
"""
if ext.name == 'isoband' and LooseVersion(ext.version) < LooseVersion('0.2.5'):
# use constant value instead of SIGSTKSZ for stack size in vendored testthat included in isoband sources,
# cfr. https://github.com/r-lib/isoband/commit/6984e6ce8d977f06e0b5ff73f5d88e5c9a44c027
ext.cfg['preinstallopts'] = "sed -i 's/SIGSTKSZ/32768/g' src/testthat/vendor/catch.h && "


PARSE_HOOKS = {
'CGAL': parse_hook_cgal_toolchainopts_precise,
'fontconfig': parse_hook_fontconfig_add_fonts,
Expand All @@ -307,3 +333,8 @@ def pre_test_hook_ignore_failing_tests_SciPybundle(self, *args, **kwargs):
PRE_TEST_HOOKS = {
'SciPy-bundle': pre_test_hook_ignore_failing_tests_SciPybundle,
}

PRE_SINGLE_EXTENSION_HOOKS = {
'isoband': pre_single_extension_isoband,
'testthat': pre_single_extension_testthat,
}
22 changes: 12 additions & 10 deletions eessi-2023.06-eb-4.8.1-2022a.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ easyconfigs:
options:
from-pr: 18881
- Boost.Python-1.79.0-GCC-11.3.0.eb
- netCDF-4.9.0-gompi-2022a.eb:
# use updated CMakeMake easyblock to avoid that -DCMAKE_SKIP_RPATH=ON is used, which breaks the netCDF test step
# see https://github.com/easybuilders/easybuild-easyblocks/pull/3012
options:
include-easyblocks-from-pr: 3012
- netCDF-4.9.0-gompi-2022a.eb
# - netCDF-4.9.0-gompi-2022a.eb:
# # use updated CMakeMake easyblock to avoid that -DCMAKE_SKIP_RPATH=ON is used, which breaks the netCDF test step
# # see https://github.com/easybuilders/easybuild-easyblocks/pull/3012
# options:
# include-easyblocks-from-pr: 3012
- NCO-5.1.0-foss-2022a.eb
- AdapterRemoval-2.3.3-GCC-11.3.0.eb
- BEDTools-2.30.0-GCC-11.3.0.eb
Expand All @@ -30,11 +31,12 @@ easyconfigs:
- Ninja-1.10.2-GCCcore-11.3.0.eb
- Z3-4.10.2-GCCcore-11.3.0.eb
- SciPy-bundle-2022.05-foss-2022a.eb
- Xvfb-21.1.3-GCCcore-11.3.0.eb:
# enable exec permissions for xvfb-run after copying;
# need to also enable user write permissions on xvfb-run to ensure that copying with preserved permissions works
options:
from-pr: 18834
- Xvfb-21.1.3-GCCcore-11.3.0.eb
# - Xvfb-21.1.3-GCCcore-11.3.0.eb:
# # enable exec permissions for xvfb-run after copying;
# # need to also enable user write permissions on xvfb-run to ensure that copying with preserved permissions works
# options:
# from-pr: 18834
- tbb-2021.5.0-GCCcore-11.3.0.eb
- CMSeq-1.0.4-foss-2022a.eb
- Pango-1.50.7-GCCcore-11.3.0.eb
Expand Down
1 change: 1 addition & 0 deletions eessi-2023.06-eb-4.8.2-2022a.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
easyconfigs:
- CDO-2.0.6-gompi-2022a.eb
- R-4.2.1-foss-2022a.eb