aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl/perl/fixes/file_path_hurd_errno.diff
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/perl/perl/fixes/file_path_hurd_errno.diff')
-rw-r--r--meta/recipes-devtools/perl/perl/fixes/file_path_hurd_errno.diff32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl/fixes/file_path_hurd_errno.diff b/meta/recipes-devtools/perl/perl/fixes/file_path_hurd_errno.diff
new file mode 100644
index 0000000000..ca5c51ab87
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/fixes/file_path_hurd_errno.diff
@@ -0,0 +1,32 @@
+From e504c7f1978469462558090a1c5cc5c7e9e15ae6 Mon Sep 17 00:00:00 2001
+From: Pino Toscano <pino@debian.org>
+Date: Thu, 8 Sep 2016 10:26:59 +0100
+Subject: [PATCH] File-Path: Fix test failure in Hurd due to hard-coded ENOENT
+
+Patch-Name: fixes/file_path_hurd_errno.diff
+
+---
+ cpan/File-Path/t/Path.t | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/cpan/File-Path/t/Path.t b/cpan/File-Path/t/Path.t
+index fffc49c..956ca09 100644
+--- a/cpan/File-Path/t/Path.t
++++ b/cpan/File-Path/t/Path.t
+@@ -8,6 +8,7 @@ use Config;
+ use Fcntl ':mode';
+ use lib 't/';
+ use FilePathTest;
++use Errno qw(:POSIX);
+
+ BEGIN {
+ use_ok('Cwd');
+@@ -668,7 +669,7 @@ is(
+ {
+ my ($x, $message, $object, $expect, $rv, $arg, $error);
+ my ($k, $v, $second_error, $third_error);
+- local $! = 2;
++ local $! = ENOENT;
+ $x = $!;
+
+ $message = 'message in a bottle';