diff options
author | Stig Palmquist <git@stig.io> | 2023-08-01 16:49:18 +0200 |
---|---|---|
committer | Stig Palmquist <git@stig.io> | 2023-08-01 17:01:54 +0200 |
commit | 5a9c09f2f7e50122bb2d56ded80b2142a1439ba6 (patch) | |
tree | 329ca37a53b7b76ada656d4b8169d7cc1827a6dc /pkgs/development/perl-modules | |
parent | d01224781f715fa82a615e914a1e924d9f24ccff (diff) |
perlPackages.ExceptionBase: add patch for perl 5.38.0
Diffstat (limited to 'pkgs/development/perl-modules')
-rw-r--r-- | pkgs/development/perl-modules/Exception-Base-remove-smartmatch-when-5.38.0.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/development/perl-modules/Exception-Base-remove-smartmatch-when-5.38.0.patch b/pkgs/development/perl-modules/Exception-Base-remove-smartmatch-when-5.38.0.patch new file mode 100644 index 0000000000000..00fd4b7e0c692 --- /dev/null +++ b/pkgs/development/perl-modules/Exception-Base-remove-smartmatch-when-5.38.0.patch @@ -0,0 +1,20 @@ +smartmatch deprecated in perl-5.37.10 + +Patch by @pghmcfc from +https://github.com/dex4er/perl-Exception-Base/issues/5#issuecomment-1637075218 + +diff --git a/t/tlib/Exception/BaseTest.pm b/t/tlib/Exception/BaseTest.pm +index d590d12..e531ed7 100644 +--- a/t/tlib/Exception/BaseTest.pm ++++ b/t/tlib/Exception/BaseTest.pm +@@ -569,8 +569,9 @@ sub test_overload { + $self->assert_matches(qr/String at /, $obj); + + # smart matching for Perl 5.10 +- if ($] >= 5.010) { ++ # Deprecation warning added in 5.37.10 ++ if ($] >= 5.010 && $] < 5.037010) { + no if $] >= 5.018, warnings => 'experimental::smartmatch'; + eval q{ + $self->assert_num_equals(1, 'String' ~~ $obj); + |