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

MacPorts noreply at macports.org
Tue Apr 5 23:06:43 UTC 2022


#64787: shared-mime-info fails to build for ppc64 on Leopard
-------------------------------+-------------------------------------
  Reporter:  barracuda156      |      Owner:  (none)
      Type:  defect            |     Status:  new
  Priority:  Normal            |  Milestone:
 Component:  ports             |    Version:  2.7.1
Resolution:                    |   Keywords:  powerpc, leopard, ppc64
      Port:  shared-mime-info  |
-------------------------------+-------------------------------------

Comment (by 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'

 }}}

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


More information about the macports-tickets mailing list