about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorStig Palmquist <git@stig.io>2023-08-01 16:45:27 +0200
committerStig Palmquist <git@stig.io>2023-08-01 17:01:47 +0200
commit5be1087e8f05241672908e96030bd1fe978ada53 (patch)
treeefb55eec28502c8ad7e14c7c4988fa90a34e71c2 /pkgs
parent676eaea4a4d942ed8602b1b0c10dbef49058ef20 (diff)
perlPackages.DataClone: add patch for perl 5.38.0
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/perl-modules/Data-Clone-fix-apostrophe-package-separator.patch26
-rw-r--r--pkgs/top-level/perl-packages.nix3
2 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/perl-modules/Data-Clone-fix-apostrophe-package-separator.patch b/pkgs/development/perl-modules/Data-Clone-fix-apostrophe-package-separator.patch
new file mode 100644
index 0000000000000..4d2bef16c9c4b
--- /dev/null
+++ b/pkgs/development/perl-modules/Data-Clone-fix-apostrophe-package-separator.patch
@@ -0,0 +1,26 @@
+https://github.com/gfx/p5-Data-Clone/pull/3
+
+From 43102a83d15aedc61e5904eb5a6dab33c3c02b40 Mon Sep 17 00:00:00 2001
+From: Yves Orton <demerphq@gmail.com>
+Date: Thu, 9 Feb 2023 16:24:45 +0100
+Subject: [PATCH] t/07_stack.t - isn't is deprecated, use isnt instead
+
+As of 5.37.8 use of apostrophe for a package separator is deprecated,
+and in 5.40 it will be removed entirely. Switch to isnt() instead
+of isn't().
+---
+ t/07_stack.t | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/t/07_stack.t b/t/07_stack.t
+index 165e6a5..a750366 100644
+--- a/t/07_stack.t
++++ b/t/07_stack.t
+@@ -17,6 +17,6 @@ use Data::Clone;
+ 
+ my $before = bless [], Bar::;
+ my $after  = clone($before);
+-isn't $after, $before, 'stack reallocation during callback';
++isnt $after, $before, 'stack reallocation during callback';
+ 
+ done_testing;
\ No newline at end of file
diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix
index ad451f54ba98d..d72b5d1de89d1 100644
--- a/pkgs/top-level/perl-packages.nix
+++ b/pkgs/top-level/perl-packages.nix
@@ -5562,6 +5562,9 @@ with self; {
       hash = "sha256-L+XheYgqa5Jt/vChCLSiyHof+waJK88vuI5Mj0uEODw=";
     };
     buildInputs = [ TestRequires ];
+    patches = [
+      ../development/perl-modules/Data-Clone-fix-apostrophe-package-separator.patch
+    ];
     meta = {
       description = "Polymorphic data cloning";
       license = with lib.licenses; [ artistic1 gpl1Plus ];