Skip to content
Snippets Groups Projects
Commit 8ad0be96 authored by Michael Kuhn's avatar Michael Kuhn Committed by Adam J. Stewart
Browse files

perl: Fix binary detection (#14536)

It seems that stable versions of perl also install a `perlX.Y.Z` binary.
However, it seems that this binary can hang if used in conjunction with
Spack's sbang workaround, as observed during automake's build.
parent b7f04935
No related branches found
No related tags found
No related merge requests found
......@@ -305,7 +305,7 @@ def command(self):
Returns:
Executable: the Perl command
"""
for ver in (self.spec.version, ''):
for ver in ('', self.spec.version):
path = os.path.join(self.prefix.bin, '{0}{1}'.format(
self.spec.name, ver))
if os.path.exists(path):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment