summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2012-07-08 21:23:08 +0000
committerwiz <wiz@pkgsrc.org>2012-07-08 21:23:08 +0000
commit8c3db5104f0292a60424207193792b029988ea34 (patch)
treea8e030b704e47bd1d8bc70d8e5f190b8772ed9ae /time
parent5bb5798a92ce15898baad65de67eb35e3e84973d (diff)
downloadpkgsrc-8c3db5104f0292a60424207193792b029988ea34.tar.gz
Fix off-by-one which broke Time::HiRes::usleep(1000000).
From Michai Ramakers in PR 46673. Bump PKGREVISION.
Diffstat (limited to 'time')
-rw-r--r--time/p5-Time-HiRes/Makefile3
-rw-r--r--time/p5-Time-HiRes/distinfo3
-rw-r--r--time/p5-Time-HiRes/patches/patch-HiRes.xs15
3 files changed, 19 insertions, 2 deletions
diff --git a/time/p5-Time-HiRes/Makefile b/time/p5-Time-HiRes/Makefile
index 2aa9b29d52e..19629f3ba07 100644
--- a/time/p5-Time-HiRes/Makefile
+++ b/time/p5-Time-HiRes/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.32 2011/11/11 11:25:38 sno Exp $
+# $NetBSD: Makefile,v 1.33 2012/07/08 21:23:08 wiz Exp $
DISTNAME= Time-HiRes-1.9724
PKGNAME= p5-${DISTNAME}
+PKGREVISION= 1
SVR4_PKGNAME= p5thr
CATEGORIES= time perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Time/}
diff --git a/time/p5-Time-HiRes/distinfo b/time/p5-Time-HiRes/distinfo
index 2d941716908..94a67f172c1 100644
--- a/time/p5-Time-HiRes/distinfo
+++ b/time/p5-Time-HiRes/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.18 2011/11/11 11:25:38 sno Exp $
+$NetBSD: distinfo,v 1.19 2012/07/08 21:23:08 wiz Exp $
SHA1 (Time-HiRes-1.9724.tar.gz) = 4ea94de4f2ab886d7fdd4c61e7cbd7d48c72f2e3
RMD160 (Time-HiRes-1.9724.tar.gz) = d02ccf5f32bc52ff4cfdb87abe756c444b8aa5d1
Size (Time-HiRes-1.9724.tar.gz) = 88066 bytes
+SHA1 (patch-HiRes.xs) = b098f561bc46ba92750dc9980a17521c1d665245
diff --git a/time/p5-Time-HiRes/patches/patch-HiRes.xs b/time/p5-Time-HiRes/patches/patch-HiRes.xs
new file mode 100644
index 00000000000..39f03454bf2
--- /dev/null
+++ b/time/p5-Time-HiRes/patches/patch-HiRes.xs
@@ -0,0 +1,15 @@
+$NetBSD: patch-HiRes.xs,v 1.1 2012/07/08 21:23:08 wiz Exp $
+
+Fix off-by-one. From Michai Ramakers in PR 46673.
+
+--- HiRes.xs.orig 2011-06-08 18:36:38.000000000 +0000
++++ HiRes.xs
+@@ -792,7 +792,7 @@ usleep(useconds)
+ CODE:
+ gettimeofday(&Ta, NULL);
+ if (items > 0) {
+- if (useconds > 1E6) {
++ if (useconds >= 1E6) {
+ IV seconds = (IV) (useconds / 1E6);
+ /* If usleep() has been implemented using setitimer()
+ * then this contortion is unnecessary-- but usleep()