[MacPorts] #64390: Possible to build ports on 10.6.8 as universal (x86_64 + ppc64) after restoring PPC assembler?

MacPorts noreply at macports.org
Sun Jan 9 06:33:09 UTC 2022


#64390: Possible to build ports on 10.6.8 as universal (x86_64 + ppc64) after
restoring PPC assembler?
-----------------------------+--------------------
  Reporter:  barracuda156    |      Owner:  (none)
      Type:  enhancement     |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  base            |    Version:  2.7.1
Resolution:                  |   Keywords:
      Port:  powerpc, ppc64  |
-----------------------------+--------------------

Comment (by ryandesign):

 Replying to [ticket:64390 barracuda156]:
 > Two questions are:

 Questions are best asked on the mailing list. The issue tracker is for
 tracking bugs and feature requests—things that need something to be
 changed somewhere and then marked resolved.

 > 1. Is it possible in principle to build ports as universal for x86_64 +
 ppc64 (or for all 4 archs, m32 + m64) on an Intel machine?

 I'm not aware of anyone else having attempted that before. You can try it
 by setting `universal_archs` as desired in macports.conf. If you already
 had any ports installed with the +universal variant when you changed the
 value of `universal_archs`, reinstall those ports so they rebuild with the
 new set of architectures.

 > 2. If yes, can such builds be then installed (via setting up local
 archive) onto a PowerPC system?

 If you're building on one OS version and wanting to bring the resulting
 archives over to an earlier OS version, you would need to build with the
 deployment target set to the older OS version. So, to build on 10.6 with
 the intention of bringing an archive to 10.5, set
 `macosx_deployment_target 10.5` in macports.conf along with
 `build_from_source always` since otherwise you could receive archives from
 our build server that have the wrong deployment target. This setting would
 need to be in effect at the time that you build the affected port and all
 of its dependencies. (If you already had ports installed when you change
 this setting, rebuild them.) Not all ports honor the
 `macosx_deployment_target` setting, though that would be a bug that we
 would want to fix.

 Universal builds ''should'' work on any system that supports one of those
 architectures, but few people actually test that, so you may encounter
 some ports that build universal but don't actually work right on the
 foreign architecture(s). This is especially likely if building on an Intel
 machine for a PowerPC machine or vice versa due to endian differences and
 the likelihood that the developer of the software has not anticipated such
 a situation. If you find such bugs, file bug reports.

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


More information about the macports-tickets mailing list