summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorbernhardkaindl <43588962+bernhardkaindl@users.noreply.github.com>2021-09-27 15:18:36 +0200
committerGitHub <noreply@github.com>2021-09-27 15:18:36 +0200
commit4a130b9185c02ce423c631ceaeda11037584bdd9 (patch)
tree138892214189afa9b93228cd59a7ef984ed0ebb0 /var
parent2acfe55b746a72088e5aaad31e6ed264857895c6 (diff)
downloadspack-4a130b9185c02ce423c631ceaeda11037584bdd9.tar.gz
spack-4a130b9185c02ce423c631ceaeda11037584bdd9.tar.bz2
spack-4a130b9185c02ce423c631ceaeda11037584bdd9.tar.xz
spack-4a130b9185c02ce423c631ceaeda11037584bdd9.zip
perl: Fix test case bug perl#15544: Don't fail with PATH >1000 chars (#26245)
Fix the perl test case bug Perl/perl5#15544 Variable PATH longer than 1000 characters (as is usual with spack) fails a perl test case The fix is: Don't test PATH in testcase perlbug.t Fixes `spack install --test=all` for specs triggering a build and test of perl!
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/perl/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl/package.py b/var/spack/repos/builtin/packages/perl/package.py
index be0cd770a4..879088ed59 100644
--- a/var/spack/repos/builtin/packages/perl/package.py
+++ b/var/spack/repos/builtin/packages/perl/package.py
@@ -129,6 +129,11 @@ class Perl(Package): # Perl doesn't use Autotools, it should subclass Package
phases = ['configure', 'build', 'install']
+ def patch(self):
+ # https://github.com/Perl/perl5/issues/15544 long PATH(>1000 chars) fails a test
+ os.chmod('lib/perlbug.t', 0o644)
+ filter_file('!/$B/', '! (/(?:$B|PATH)/)', 'lib/perlbug.t')
+
@classmethod
def determine_version(cls, exe):
perl = spack.util.executable.Executable(exe)