[MacPorts] #69353: Macports base configure sets universal archs to arm64 x86_64 on powerpc-*-openbsd (i.e. both cpu and OS are 32-bit)
MacPorts
noreply at macports.org
Sat Mar 30 17:11:25 UTC 2024
#69353: Macports base configure sets universal archs to arm64 x86_64 on
powerpc-*-openbsd (i.e. both cpu and OS are 32-bit)
---------------------------+--------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.9.1
Resolution: | Keywords:
Port: |
---------------------------+--------------------
Comment (by barracuda156):
Replying to [comment:1 ryandesign]:
> As far as I know, universal builds are only possible on macOS so any
attempt to use the universal variant on non-Mac operating systems would
fail and what value universal_archs is set to would thus be irrelevant.
Fair enough. I still think the code needs a fix here though:
{{{
# Check whether --with-universal-archs was given.
if test ${with_universal_archs+y}
then :
withval=$with_universal_archs; UNIVERSAL_ARCHS=${withval}
fi
if test "x$UNIVERSAL_ARCHS" = "x"; then
case "$MACOSX_VERSION" in
10.1[0-3]*)
UNIVERSAL_ARCHS="x86_64 i386"
;;
10.1[4-9]*)
UNIVERSAL_ARCHS="x86_64"
;;
10.[0-5]*)
UNIVERSAL_ARCHS="i386 ppc"
;;
10.[6-9]*)
UNIVERSAL_ARCHS="x86_64 i386"
;;
*)
UNIVERSAL_ARCHS="arm64 x86_64"
;;
esac
fi
}}}
On < 10.6 it should rather be `i386 ppc ppc64`, and on 10.6 `i386 ppc
x86_64`, or otherwise check `os.arch` and make it conditional. Why would
someone on a PowerPC on Leopard prefer skipping `ppc64`? Or on Rosetta
skippin `ppc`?
--
Ticket URL: <https://trac.macports.org/ticket/69353#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list