[152541] trunk/dports/lang/guile

jeremyhu at macports.org jeremyhu at macports.org
Sun Sep 11 23:47:28 PDT 2016


Revision: 152541
          https://trac.macports.org/changeset/152541
Author:   jeremyhu at macports.org
Date:     2016-09-11 23:47:28 -0700 (Sun, 11 Sep 2016)
Log Message:
-----------
guile: Sierra build fix

Modified Paths:
--------------
    trunk/dports/lang/guile/Portfile

Added Paths:
-----------
    trunk/dports/lang/guile/files/sierra.patch

Modified: trunk/dports/lang/guile/Portfile
===================================================================
--- trunk/dports/lang/guile/Portfile	2016-09-12 06:44:33 UTC (rev 152540)
+++ trunk/dports/lang/guile/Portfile	2016-09-12 06:47:28 UTC (rev 152541)
@@ -58,6 +58,8 @@
                     --enable-regex \
                     --disable-error-on-warning
 
+patchfiles          sierra.patch
+
 # Unable to cross compile, so we need to be able to run the built code
 if {${os.arch} eq "i386" && ${os.major} >= 11} {
     supported_archs i386 x86_64

Added: trunk/dports/lang/guile/files/sierra.patch
===================================================================
--- trunk/dports/lang/guile/files/sierra.patch	                        (rev 0)
+++ trunk/dports/lang/guile/files/sierra.patch	2016-09-12 06:47:28 UTC (rev 152541)
@@ -0,0 +1,25 @@
+http://osdir.com/ml/bug-guile-gnu/2016-06/msg00180.html
+
+diff --git a/libguile/stime.c b/libguile/stime.c
+index f430ca4..8b810a7 100644
+--- libguile/stime.c
++++ libguile/stime.c
+@@ -834,6 +834,10 @@ scm_init_stime()
+ 
+ #ifdef HAVE_POSIX_CPUTIME
+   {
++#ifdef __APPLE__
++    if (clock_gettime (CLOCK_PROCESS_CPUTIME_ID, &posix_run_time_base) == 0)
++      get_internal_run_time = get_internal_run_time_posix_timer;
++#else
+     clockid_t dummy;
+     
+     /* Only use the _POSIX_CPUTIME clock if it's going to work across
+@@ -843,6 +847,7 @@ scm_init_stime()
+       get_internal_run_time = get_internal_run_time_posix_timer;
+     else
+       errno = 0;
++#endif
+   }
+ #endif /* HAVE_POSIX_CPUTIME */
+ #endif /* HAVE_CLOCKTIME */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160911/9b67fe18/attachment.html>


More information about the macports-changes mailing list