pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/perl5 Fix for OS X 10.12, where clock_gettime() i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/07bb9f4d1a8d
branches:  trunk
changeset: 351880:07bb9f4d1a8d
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Aug 31 13:24:06 2016 +0000

description:
Fix for OS X 10.12, where clock_gettime() is defined.

diffstat:

 lang/perl5/distinfo                               |   3 +-
 lang/perl5/patches/patch-dist_Time-HiRes_HiRes.xs |  27 +++++++++++++++++++++++
 2 files changed, 29 insertions(+), 1 deletions(-)

diffs (48 lines):

diff -r 25497bbbb0e0 -r 07bb9f4d1a8d lang/perl5/distinfo
--- a/lang/perl5/distinfo       Wed Aug 31 09:24:09 2016 +0000
+++ b/lang/perl5/distinfo       Wed Aug 31 13:24:06 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.137 2016/06/14 11:47:21 jperkin Exp $
+$NetBSD: distinfo,v 1.138 2016/08/31 13:24:06 adam Exp $
 
 SHA1 (perl-5.24.0.tar.bz2) = 298fa605138c1a00dab95643130ae0edab369b4d
 RMD160 (perl-5.24.0.tar.bz2) = 756bf07069e91eabe3dac3a47aec5097d48f8963
@@ -15,6 +15,7 @@
 SHA1 (patch-ck) = 483e93a782e5627d3c7334d930ee11010fe7f7d8
 SHA1 (patch-cn) = d1877383e213a414562b5bb4c1e8aa785926fab7
 SHA1 (patch-dist_Carp_lib_Carp.pm) = fb628ee983462cec9303ceea09852378ec654ecf
+SHA1 (patch-dist_Time-HiRes_HiRes.xs) = 067911a23881d48d2ad431076b3babeb585b83d7
 SHA1 (patch-ext_Errno_Errno__pm.PL) = 4f135e267da17de38f8f1e7e03d5209bfd09a323
 SHA1 (patch-ext_XS-APItest_Makefile.PL) = 7094aa4cb021c1f29054a40c4f5f4c15c59f13de
 SHA1 (patch-hints_cygwin.sh) = 1b21d927d6b7379754c4cd64a2b05d3632c35470
diff -r 25497bbbb0e0 -r 07bb9f4d1a8d lang/perl5/patches/patch-dist_Time-HiRes_HiRes.xs
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/perl5/patches/patch-dist_Time-HiRes_HiRes.xs Wed Aug 31 13:24:06 2016 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-dist_Time-HiRes_HiRes.xs,v 1.1 2016/08/31 13:24:06 adam Exp $
+
+Fix for OS X 10.12, where clock_gettime() is defined.
+
+--- dist/Time-HiRes/HiRes.xs.orig      2016-08-31 15:04:18.000000000 +0200
++++ dist/Time-HiRes/HiRes.xs   2016-08-31 15:05:29.000000000 +0200
+@@ -747,6 +747,10 @@
+ #endif /* !TIME_HIRES_STAT */
+ }
+ 
++#if defined(USE_ITHREADS) && defined(PERL_DARWIN)
++STATIC perl_mutex darwin_time_mutex;
++#endif
++
+ /* Until Apple implements clock_gettime() (ditto clock_getres())
+  * we will emulate it using Mach interfaces. */
+ #if defined(PERL_DARWIN) && !defined(CLOCK_REALTIME)
+@@ -758,9 +762,6 @@
+ 
+ #  define TIMER_ABSTIME   0x01
+ 
+-#ifdef USE_ITHREADS
+-STATIC perl_mutex darwin_time_mutex;
+-#endif
+ 
+ static uint64_t absolute_time_init;
+ static mach_timebase_info_data_t timebase_info;



Home | Main Index | Thread Index | Old Index