From 4d03a2768eb808b272011b055f09003d38fd3578 Mon Sep 17 00:00:00 2001 From: acastanedam Date: Wed, 4 May 2022 18:14:21 +0200 Subject: gpi-2_fix_deps: setup 'gawk' and 'sed' dependencies (#29740) Strictly, `sed` is a `build` and `run` dependency in all gpi-2 versions, whereas `gawk` is a `run` (`build` and `run`) dependency for gpi-2 versions greater or equal (less) than 1.4.0 --- var/spack/repos/builtin/packages/gpi-2/package.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/gpi-2/package.py b/var/spack/repos/builtin/packages/gpi-2/package.py index af8eebd6a3..7ea200fed8 100644 --- a/var/spack/repos/builtin/packages/gpi-2/package.py +++ b/var/spack/repos/builtin/packages/gpi-2/package.py @@ -60,7 +60,9 @@ class Gpi2(AutotoolsPackage): depends_on('libtool', type='build', when='@1.4.0:') depends_on('m4', type='build', when='@1.4.0:') - depends_on('gawk', type='run') + depends_on('sed', type=('build', 'run')) + depends_on('gawk', type=('build', 'run'), when='@:1.3.3') + depends_on('gawk', type=('run'), when='@1.4.0:') depends_on('openssh', type='run') depends_on('mpi', when='+mpi') -- cgit v1.2.3-70-g09d2