Skip to content

Commit 33d0374

Browse files
authored
Merge branch '2023.06-software.eessi.io' into Add_CP2K
2 parents c0bec39 + 9431767 commit 33d0374

File tree

10 files changed

+69
-7
lines changed

10 files changed

+69
-7
lines changed

.github/workflows/scorecards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- cron: '25 15 * * 3'
1111
push:
1212
branches:
13-
- '2023.06-software.eessi.io'
13+
- '*-software.eessi.io'
1414

1515
# Declare default permissions as read only.
1616
permissions: read-all

.github/workflows/test-software.eessi.io.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# documentation: https://help.github.com/en/articles/workflow-syntax-for-github-actions
22
name: Check for missing software installations in software.eessi.io
3-
on: [push, pull_request, workflow_dispatch]
3+
on:
4+
push:
5+
branches: [ "*-software.eessi.io" ]
6+
pull_request:
7+
workflow_dispatch:
48
permissions:
59
contents: read # to fetch code (actions/checkout)
610
jobs:

.github/workflows/test_eessi_container_script.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# documentation: https://help.github.com/en/articles/workflow-syntax-for-github-actions
22
name: Tests for eessi_container.sh script
3-
on: [push, pull_request, workflow_dispatch]
3+
on:
4+
push:
5+
branches: [ "*-software.eessi.io" ]
6+
pull_request:
7+
workflow_dispatch:
48
permissions:
59
contents: read # to fetch code (actions/checkout)
610
jobs:

.github/workflows/test_licenses.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# documentation: https://help.github.com/en/articles/workflow-syntax-for-github-actions
22
name: Test software licenses
3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [ "*-software.eessi.io" ]
6+
pull_request:
47
permissions:
58
contents: read # to fetch code (actions/checkout)
69
jobs:

.github/workflows/tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# documentation: https://help.github.com/en/articles/workflow-syntax-for-github-actions
22
name: Tests
3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [ "*-software.eessi.io" ]
6+
pull_request:
47
permissions:
58
contents: read # to fetch code (actions/checkout)
69
jobs:

.github/workflows/tests_archdetect.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# documentation: https://help.github.com/en/articles/workflow-syntax-for-github-actions
22
name: Tests for eessi_archdetect.sh
3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [ "*-software.eessi.io" ]
6+
pull_request:
47
permissions:
58
contents: read # to fetch code (actions/checkout)
69
jobs:

.github/workflows/tests_init.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# documentation: https://help.github.com/en/articles/workflow-syntax-for-github-actions
22
name: Tests for init scripts
3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [ "*-software.eessi.io" ]
6+
pull_request:
47
permissions:
58
contents: read # to fetch code (actions/checkout)
69
jobs:

easystacks/software.eessi.io/2023.06/eessi-2023.06-eb-4.9.2-2023a.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ easyconfigs:
1616
- MAFFT-7.520-GCC-12.3.0-with-extensions.eb
1717
- ncbi-vdb-3.0.10-gompi-2023a.eb
1818
- MetalWalls-21.06.1-foss-2023a.eb
19+
- QuantumESPRESSO-7.3.1-foss-2023a.eb:
20+
options:
21+
# see https://github.com/easybuilders/easybuild-easyconfigs/pull/20138
22+
from-commit: dbdaacc0739fdee91baa9123864ea4428cf21273
23+
# see https://github.com/easybuilders/easybuild-easyblocks/pull/3338
24+
include-easyblocks-from-commit: 32e45bd1f2d916732ca5852d55d17fa4d99e388b
1925
- CP2K-2023.1-foss-2023a.eb:
2026
options:
2127
# see https://github.com/easybuilders/easybuild-easyconfigs/pull/20951

easystacks/software.eessi.io/2023.06/eessi-2023.06-eb-4.9.2-2023b.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ easyconfigs:
55
options:
66
# see https://github.com/easybuilders/easybuild-easyconfigs/pull/20889
77
from-commit: c66c4788a17f7e4f55aa23f9fdb782aad97c9ce7
8+
- Extrae-4.2.0-gompi-2023b.eb:
9+
options:
10+
# see https://github.com/easybuilders/easybuild-easyconfigs/pull/21017
11+
from-commit: 120f4d56efebd2bc61382db4c84a664a339c66cf
12+
# see https://github.com/easybuilders/easybuild-easyblocks/pull/3393
13+
include-easyblocks-from-commit: c4951c78d62fa5cf8e9f6fe0ead212d2a4d7cb9c

eb_hooks.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Hooks to customize how EasyBuild installs software in EESSI
22
# see https://docs.easybuild.io/en/latest/Hooks.html
3+
import glob
34
import os
45
import re
56

@@ -373,6 +374,34 @@ def pre_configure_hook_BLIS_a64fx(self, *args, **kwargs):
373374
else:
374375
raise EasyBuildError("BLIS-specific hook triggered for non-BLIS easyconfig?!")
375376

377+
def pre_configure_hook_extrae(self, *args, **kwargs):
378+
"""
379+
Pre-configure hook for Extrae
380+
- avoid use of 'which' in configure script
381+
- specify correct path to binutils/zlib (in compat layer)
382+
"""
383+
if self.name == 'Extrae':
384+
385+
# determine path to Prefix installation in compat layer via $EPREFIX
386+
eprefix = get_eessi_envvar('EPREFIX')
387+
388+
binutils_lib_path_glob_pattern = os.path.join(eprefix, 'usr', 'lib*', 'binutils', '*-linux-gnu', '2.*')
389+
binutils_lib_path = glob.glob(binutils_lib_path_glob_pattern)
390+
if len(binutils_lib_path) == 1:
391+
self.cfg.update('configopts', '--with-binutils=' + binutils_lib_path[0])
392+
else:
393+
raise EasyBuildError("Failed to isolate path for binutils libraries using %s, got %s",
394+
binutils_lib_path_glob_pattern, binutils_lib_path)
395+
396+
# zlib is a filtered dependency, so we need to manually specify it's location to avoid the host version
397+
self.cfg.update('configopts', '--with-libz=' + eprefix)
398+
399+
# replace use of 'which' with 'command -v', since 'which' is broken in EESSI build container;
400+
# this must be done *after* running configure script, because initial configuration re-writes configure script,
401+
# and problem due to use of which only pops up when running make ?!
402+
self.cfg.update('prebuildopts', "cp config/mpi-macros.m4 config/mpi-macros.m4.orig && sed -i 's/`which /`command -v /g' config/mpi-macros.m4 && ")
403+
else:
404+
raise EasyBuildError("Extrae-specific hook triggered for non-Extrae easyconfig?!")
376405

377406
def pre_configure_hook_gromacs(self, *args, **kwargs):
378407
"""
@@ -732,6 +761,7 @@ def inject_gpu_property(ec):
732761
PRE_CONFIGURE_HOOKS = {
733762
'at-spi2-core': pre_configure_hook_atspi2core_filter_ld_library_path,
734763
'BLIS': pre_configure_hook_BLIS_a64fx,
764+
'Extrae': pre_configure_hook_extrae,
735765
'GROMACS': pre_configure_hook_gromacs,
736766
'libfabric': pre_configure_hook_libfabric_disable_psm3_x86_64_generic,
737767
'MetaBAT': pre_configure_hook_metabat_filtered_zlib_dep,

0 commit comments

Comments
 (0)