[MacPorts] #64787: shared-mime-info fails to build for ppc64 on Leopard: need to add muniversal PortGroup

MacPorts noreply at macports.org
Sat Apr 9 14:33:36 UTC 2022


#64787: shared-mime-info fails to build for ppc64 on Leopard: need to add
muniversal PortGroup
-------------------------------+-------------------------------------
  Reporter:  barracuda156      |      Owner:  RJVB
      Type:  defect            |     Status:  assigned
  Priority:  Normal            |  Milestone:
 Component:  ports             |    Version:  2.7.2
Resolution:                    |   Keywords:  powerpc, leopard, ppc64
      Port:  shared-mime-info  |
-------------------------------+-------------------------------------

Comment (by barracuda156):

 Replying to [comment:4 barracuda156]:
 > Replying to [comment:3 kencu]:
 > > read through the meson source code. It’s written in python, so easy
 enough. Find some part where it is examing the architecture of dependent
 libraries. Fix it to not error with the ppc7400 issue. Possibly submit the
 fix upstream.
 >
 > I have fixed `meson`:
 >
 > {{{
 > --- mesonbuild/mesonlib/universal.py.orig     2022-03-15
 17:29:03.000000000 +0800
 > +++ mesonbuild/mesonlib/universal.py  2022-04-06 06:59:05.000000000
 +0800
 > @@ -710,6 +710,8 @@
 >      # Convert from lipo-style archs to meson-style CPUs
 >      stdo = stdo.replace('i386', 'x86')
 >      stdo = stdo.replace('arm64', 'aarch64')
 > +    stdo = stdo.replace('ppc7400', 'ppc')
 > +    stdo = stdo.replace('ppc970', 'ppc64')
 >      # Add generic name for armv7 and armv7s
 >      if 'armv7' in stdo:
 >          stdo += ' arm'
 >
 > }}}
 >
 > P. S. Added `ppc970` just in case, may be redundant.

 Ok it seems ppc970 is a valid case too, so having it makes sense. Example:
 https://groups.google.com/g/hugin-ptx/c/uWSPhl1MjCc

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


More information about the macports-tickets mailing list