From 4a130b9185c02ce423c631ceaeda11037584bdd9 Mon Sep 17 00:00:00 2001 From: bernhardkaindl <43588962+bernhardkaindl@users.noreply.github.com> Date: Mon, 27 Sep 2021 15:18:36 +0200 Subject: 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! --- var/spack/repos/builtin/packages/perl/package.py | 5 +++++ 1 file changed, 5 insertions(+) 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) -- cgit v1.2.3-70-g09d2