[MacPorts] #65138: Pythons +universal: advice needed, should I submit a PR or not?

MacPorts noreply at macports.org
Sun May 8 14:00:41 UTC 2022


#65138: Pythons +universal: advice needed, should I submit a PR or not?
-------------------------------+-------------------------------------------
 Reporter:  barracuda156       |      Owner:  jmroot
     Type:  defect             |     Status:  assigned
 Priority:  Normal             |  Milestone:
Component:  ports              |    Version:  2.7.2
 Keywords:  powerpc, leopard,  |       Port:  python38, python39, python310
  ppc64                        |
-------------------------------+-------------------------------------------
 I have finally fixed Pythons 3.x to build as `+universal` on Leopard
 (ppc+ppc64). I don't know if I should submit a PR though, since the fix
 will either impact everyone or make Portfile unnecessarily complex.

 On a positive note, I got rid of a large chunk of universal voodoo (which
 way anyway broken) in the Portfile. However, my fix requires `muniversal`
 Portgroup. (Anticipating a question here: no, just adding `muniversal` to
 the existing Portfiles does not work.) I tried for a long time to come up
 with a patch to fix universal builds, an approach that worked for
 `python27` (not committed btw yet), however even though I was able to
 build Pythons as `+universal`, packages failed to install:
 https://trac.macports.org/ticket/64916
 So eventually I gave up on that, and fixed an error due to which
 `muniversal` failed in their case instead.

 Since I have no idea re status of universal builds outside of PPC and
 general desirability of switching to `muniversal`, I am asking first. For
 PPC things finally moved forward:
 36-111:files svacchanda$ port -v installed | grep python

 {{{
   python38 @3.8.13_0+universal (active) requested_variants='+universal'
 platform='darwin 9' archs='ppc ppc64' date='2022-05-08T19:54:10+0800'
   python39 @3.9.12_0+lto+universal (active)
 requested_variants='+lto+universal' platform='darwin 9' archs='ppc ppc64'
 date='2022-04-27T10:52:30+0800'
   python310 @3.10.4_0+universal (active) requested_variants='+universal'
 platform='darwin 9' archs='ppc ppc64' date='2022-04-27T09:52:51+0800'
 }}}

 Dependencies build as `+universal`, even the horrible `gobject-
 introspection` (though an older version which did not yet switch to
 handicapped `meson`).

-- 
Ticket URL: <https://trac.macports.org/ticket/65138>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list