Fix for overlong shebang in valgrind (#13779)

Fix for some overlong shebangs in valgrind. Borrowed from verrou/package.py
This commit is contained in:
David Hows 2019-11-21 09:50:14 +11:00 committed by Adam J. Stewart
parent 894267e02e
commit ad4986be94

View File

@ -4,6 +4,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
import glob
import sys
@ -67,3 +68,10 @@ def configure_args(self):
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)