diff options
author | David Hows <howsdav@gmail.com> | 2019-11-21 09:50:14 +1100 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2019-11-20 15:50:14 -0700 |
commit | ad4986be948addce672421af0c18ef56fffbb4da (patch) | |
tree | fe53eaa38ab6d467c6b15cc6db2ae96067a1f993 | |
parent | 894267e02e45be15cb6eb39db89a4693100e7e5f (diff) | |
download | spack-ad4986be948addce672421af0c18ef56fffbb4da.tar.gz spack-ad4986be948addce672421af0c18ef56fffbb4da.tar.bz2 spack-ad4986be948addce672421af0c18ef56fffbb4da.tar.xz spack-ad4986be948addce672421af0c18ef56fffbb4da.zip |
Fix for overlong shebang in valgrind (#13779)
Fix for some overlong shebangs in valgrind. Borrowed from verrou/package.py
-rw-r--r-- | var/spack/repos/builtin/packages/valgrind/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/valgrind/package.py b/var/spack/repos/builtin/packages/valgrind/package.py index 5691af014c..eca754a3c2 100644 --- a/var/spack/repos/builtin/packages/valgrind/package.py +++ b/var/spack/repos/builtin/packages/valgrind/package.py @@ -4,6 +4,7 @@ # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * +import glob import sys @@ -67,3 +68,10 @@ clang: error: unknown argument: '-static-libubsan' if sys.platform == 'darwin': options.append('--build=amd64-darwin') return options + + # Valgrind the potential for overlong perl shebangs + def patch(self): + for link_tool_in in glob.glob('coregrind/link_tool_exe_*.in'): + filter_file('^#! @PERL@', + '#! /usr/bin/env perl', + link_tool_in) |