perlPackages: fix meta and fix build with perl-5.26 (#42909)
This commit is contained in:
parent
b29440fd10
commit
4dc44955e8
@ -1861,6 +1861,10 @@ let self = _self // overrides; _self = with self; {
|
||||
url = "mirror://cpan/authors/id/J/JS/JSWARTZ/${name}.tar.gz";
|
||||
sha256 = "c7f1a2b3570a8fede484e933f89ba1729e0abd05935791d146c522dd120ee851";
|
||||
};
|
||||
preConfigure = stdenv.lib.optionalString (stdenv.lib.versionAtLeast perl.version "5.26") ''
|
||||
# fix error 'Unescaped left brace in regex is illegal here in regex'
|
||||
substituteInPlace lib/CHI/t/Driver/Subcache/l1_cache.pm --replace 'qr/CHI stats: {' 'qr/CHI stats: \{'
|
||||
'';
|
||||
buildInputs = [ TestClass TestDeep TestException TestWarn TimeDate ];
|
||||
propagatedBuildInputs = [ CarpAssert ClassLoad DataUUID DigestJHash HashMoreUtils JSONMaybeXS ListMoreUtils LogAny Moo MooXTypesMooseLikeNumeric StringRewritePrefix TaskWeaken TimeDuration TimeDurationParse ];
|
||||
meta = {
|
||||
@ -2097,6 +2101,10 @@ let self = _self // overrides; _self = with self; {
|
||||
url = "mirror://cpan/authors/id/E/EV/EVO/${name}.tar.gz";
|
||||
sha256 = "0ricb0mn0i06ngfhq5y035yx8i7ahlx83yyqwixqmv6hg4p79b5c";
|
||||
};
|
||||
preConfigure = stdenv.lib.optionalString (stdenv.lib.versionAtLeast perl.version "5.26") ''
|
||||
# fix error 'Unescaped left brace in regex is illegal here in regex'
|
||||
substituteInPlace tests/xemulator/class_methodmaker/Test.pm --replace 's/(TEST\s{)/$1/g' 's/(TEST\s\{)/$1/g'
|
||||
'';
|
||||
};
|
||||
|
||||
ClassMethodMaker = buildPerlPackage rec {
|
||||
@ -14018,7 +14026,7 @@ let self = _self // overrides; _self = with self; {
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ pSub ];
|
||||
meta.broken = true;
|
||||
broken = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user