pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/perl5



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Aug 31 13:24:06 UTC 2016

Modified Files:
        pkgsrc/lang/perl5: distinfo
Added Files:
        pkgsrc/lang/perl5/patches: patch-dist_Time-HiRes_HiRes.xs

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


To generate a diff of this commit:
cvs rdiff -u -r1.137 -r1.138 pkgsrc/lang/perl5/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/lang/perl5/patches/patch-dist_Time-HiRes_HiRes.xs

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/perl5/distinfo
diff -u pkgsrc/lang/perl5/distinfo:1.137 pkgsrc/lang/perl5/distinfo:1.138
--- pkgsrc/lang/perl5/distinfo:1.137    Tue Jun 14 11:47:21 2016
+++ pkgsrc/lang/perl5/distinfo  Wed Aug 31 13:24:06 2016
@@ -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-ch) = 5b6a89c82e158bab0a5f06
 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

Added files:

Index: pkgsrc/lang/perl5/patches/patch-dist_Time-HiRes_HiRes.xs
diff -u /dev/null pkgsrc/lang/perl5/patches/patch-dist_Time-HiRes_HiRes.xs:1.1
--- /dev/null   Wed Aug 31 13:24:06 2016
+++ pkgsrc/lang/perl5/patches/patch-dist_Time-HiRes_HiRes.xs    Wed Aug 31 13:24:06 2016
@@ -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