[153316] trunk/dports/lang/pypy
mmoll at macports.org
mmoll at macports.org
Wed Sep 28 19:10:36 PDT 2016
Revision: 153316
https://trac.macports.org/changeset/153316
Author: mmoll at macports.org
Date: 2016-09-28 19:10:36 -0700 (Wed, 28 Sep 2016)
Log Message:
-----------
pypy: add patch for MacOS Sierra. Closes #52369
Modified Paths:
--------------
trunk/dports/lang/pypy/Portfile
Added Paths:
-----------
trunk/dports/lang/pypy/files/rtime.py.diff
Modified: trunk/dports/lang/pypy/Portfile
===================================================================
--- trunk/dports/lang/pypy/Portfile 2016-09-29 02:07:27 UTC (rev 153315)
+++ trunk/dports/lang/pypy/Portfile 2016-09-29 02:10:36 UTC (rev 153316)
@@ -83,6 +83,10 @@
if {${os.major} >= 9} {
build.cmd arch -${build_arch} ${build.cmd}
}
+ # MacOS Sierra patch
+ if {${os.major} >= 16} {
+ patchfiles-append rtime.py.diff
+ }
}
build.env PYPY_USESSION_DIR=${workpath} PYPY_LOCALBASE=${prefix} \
CFLAGS="${configure.cc_archflags} ${configure.cppflags}" \
Added: trunk/dports/lang/pypy/files/rtime.py.diff
===================================================================
--- trunk/dports/lang/pypy/files/rtime.py.diff (rev 0)
+++ trunk/dports/lang/pypy/files/rtime.py.diff 2016-09-29 02:10:36 UTC (rev 153316)
@@ -0,0 +1,15 @@
+--- rpython/rlib/rtime.py 2016-09-06 05:46:10.000000000 -0500
++++ rpython/rlib/rtime.py 2016-09-28 15:56:54.000000000 -0500
+@@ -163,11 +163,9 @@
+ globals().update(rffi_platform.configure(CConfigForClockGetTime))
+ TIMESPEC = TIMESPEC
+ CLOCK_PROCESS_CPUTIME_ID = CLOCK_PROCESS_CPUTIME_ID
+- eci_with_lrt = eci.merge(ExternalCompilationInfo(libraries=['rt']))
+ c_clock_gettime = external('clock_gettime',
+ [lltype.Signed, lltype.Ptr(TIMESPEC)],
+- rffi.INT, releasegil=False,
+- compilation_info=eci_with_lrt)
++ rffi.INT, releasegil=False)
+ if need_rusage:
+ RUSAGE = RUSAGE
+ RUSAGE_SELF = RUSAGE_SELF or 0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160928/9412f996/attachment.html>
More information about the macports-changes
mailing list