aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl/perl/debian/kfreebsd-softupdates.diff
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/perl/perl/debian/kfreebsd-softupdates.diff')
-rw-r--r--meta/recipes-devtools/perl/perl/debian/kfreebsd-softupdates.diff30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl/debian/kfreebsd-softupdates.diff b/meta/recipes-devtools/perl/perl/debian/kfreebsd-softupdates.diff
new file mode 100644
index 0000000000..a90e898551
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/kfreebsd-softupdates.diff
@@ -0,0 +1,30 @@
+From 26b9d3f89e9fc4eb22977d12bc9116588ea50769 Mon Sep 17 00:00:00 2001
+From: Steven Chamberlain <steven@pyro.eu.org>
+Date: Thu, 17 Dec 2015 02:15:58 +0000
+Subject: [PATCH] Work around Debian Bug#796798
+
+kFreeBSD 10 (possibly only with softupdates enabled) may defer
+calculating the mtime for more than 2 seconds. Work around this
+with a stat() call to calculate the mtime immediately.
+
+(Modified to only stat() on kfreebsd by Niko Tyni)
+
+Bug-Debian: https://bugs.debian.org/796798
+Patch-Name: debian/kfreebsd-softupdates.diff
+
+---
+ t/op/stat.t | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/t/op/stat.t b/t/op/stat.t
+index 323c498..ce86a74 100644
+--- a/t/op/stat.t
++++ b/t/op/stat.t
+@@ -97,6 +97,7 @@ sleep 3 if $funky_FAT_timestamps;
+ print FOO "Now is the time for all good men to come to.\n";
+ close(FOO);
+
++stat($tmpfile) if $^O =~ /^gnukfreebsd/; # Work around Debian Bug#796798
+ sleep 2;
+
+ my $has_link = 1;