[MacPorts] #64906: fixing Ruby for PowerPC

MacPorts noreply at macports.org
Thu May 12 08:17:44 UTC 2022


#64906: fixing Ruby for PowerPC
-----------------------------+-------------------------------------------
  Reporter:  barracuda156    |      Owner:  kimuraw
      Type:  defect          |     Status:  closed
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.7.2
Resolution:  wontfix         |   Keywords:  powerpc, leopard, snowleopard
      Port:  ruby27, ruby30  |
-----------------------------+-------------------------------------------

Comment (by barracuda156):

 Replying to [comment:20 kencu]:
 > ppcle and ppc/ppc64 are very different beasties. (ppcle means Little
 Endian, the others are Big Endian).

 I thought to try, because a) not a big deal of effort even if wasted
 anyway, b) some cases of code may be mostly identical (judging from
 examples, not from real knowledge).

 > There apparently is no coroutine implementation for ppc/ppc64:
 > https://github.com/ruby/ruby/tree/master/coroutine

 Yes, I know. I wanted to make it :)

 > So coroutines should not be used on those systems. It is optional
 anyway.
 > By default it appears that the coroutines should not be enabled on
 ppc*-darwin anyway:
 >
 >
 https://github.com/ruby/ruby/blob/7172ab0ec523fd190f661f52e999307d2e34429f/configure.ac#L2253
 >
 > but if somehow they are being accidentally enabled, there is a configure
 argument to force them to be off:
 >
 > {{{
 > --disable-fiber-coroutine
 > }}}

 Somehow I did not find an option to turn them off completely. What I did
 try initially is using `pthread` type coroutine, and that led to freezing
 in the mid of test suite (could be because my `pthread` patch has an
 error).

 I will try it now.

-- 
Ticket URL: <https://trac.macports.org/ticket/64906#comment:22>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list