Ticket #52369: patch-Sierra.diff

File patch-Sierra.diff, 1.4 KB (added by mamoll (Mark Moll), 8 years ago)
  • Portfile

     
    8383    if {${os.major} >= 9} {
    8484        build.cmd arch -${build_arch} ${build.cmd}
    8585    }
     86    # MacOS Sierra patch
     87    if {${os.major} >= 16} {
     88        patchfiles-append rtime.py.diff
     89    }
    8690}
    8791build.env           PYPY_USESSION_DIR=${workpath} PYPY_LOCALBASE=${prefix} \
    8892                    CFLAGS="${configure.cc_archflags} ${configure.cppflags}" \
  • files/rtime.py.diff

     
     1--- rpython/rlib/rtime.py       2016-09-06 05:46:10.000000000 -0500
     2+++ rpython/rlib/rtime.py       2016-09-28 15:56:54.000000000 -0500
     3@@ -163,11 +163,9 @@
     4     globals().update(rffi_platform.configure(CConfigForClockGetTime))
     5     TIMESPEC = TIMESPEC
     6     CLOCK_PROCESS_CPUTIME_ID = CLOCK_PROCESS_CPUTIME_ID
     7-    eci_with_lrt = eci.merge(ExternalCompilationInfo(libraries=['rt']))
     8     c_clock_gettime = external('clock_gettime',
     9                                [lltype.Signed, lltype.Ptr(TIMESPEC)],
     10-                               rffi.INT, releasegil=False,
     11-                               compilation_info=eci_with_lrt)
     12+                               rffi.INT, releasegil=False)
     13 if need_rusage:
     14     RUSAGE = RUSAGE
     15     RUSAGE_SELF = RUSAGE_SELF or 0