diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2021-03-20 09:52:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-20 09:52:22 +0100 |
commit | ece71f1648229825200f5c86297a87430d228dd4 (patch) | |
tree | 19b199bb18e9fc70273a67eedf204ad2b179502e /var | |
parent | 07a9723c6388486c074c9b3d88472a309ac2cd07 (diff) | |
download | spack-ece71f1648229825200f5c86297a87430d228dd4.tar.gz spack-ece71f1648229825200f5c86297a87430d228dd4.tar.bz2 spack-ece71f1648229825200f5c86297a87430d228dd4.tar.xz spack-ece71f1648229825200f5c86297a87430d228dd4.zip |
hip: shorten shebang before cmake phase because it is used there (#22391)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/hip/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hip/package.py b/var/spack/repos/builtin/packages/hip/package.py index c0fb028d7b..f781725cfd 100644 --- a/var/spack/repos/builtin/packages/hip/package.py +++ b/var/spack/repos/builtin/packages/hip/package.py @@ -4,6 +4,7 @@ # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.util.prefix import Prefix +from spack.hooks.sbang import filter_shebang import os @@ -190,6 +191,10 @@ class Hip(CMakePackage): ] filter_file(match, substitute, *files, **kwargs) + # This guy is used during the cmake phase, so we have to fix the + # shebang already here in case it is too long. + filter_shebang('hipconfig') + if '@3.7.0:' in self.spec: numactl = self.spec['numactl'].prefix.lib kwargs = {'ignore_absent': False, 'backup': False, 'string': False} |