[MacPorts] #71729: port deps misdetects dependencies on Rosetta
MacPorts
noreply at macports.org
Fri Jan 3 03:56:34 UTC 2025
#71729: port deps misdetects dependencies on Rosetta
---------------------------+--------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.10.5
Resolution: | Keywords:
Port: |
---------------------------+--------------------
Comment (by ryandesign):
Looking at the PortIndex files on the server, I see that the darwin 10
i386 index is the only one that mentions a clang-11 dependency for
LimeChat. Later and earlier macOS versions do not mention any clang
dependency. I can also see this locally on a macOS 12 machine:
{{{
% port deps LimeChat
LimeChat @2.47_1 has no dependencies.
}}}
{{{
% port deps LimeChat os.major=11
LimeChat @2.47_1 has no dependencies.
}}}
{{{
% port deps LimeChat os.major=10
Full Name: LimeChat @2.26_1
Build Dependencies: clang-11
Library Dependencies: libcxx
}}}
{{{
% port deps LimeChat os.major=9 configure.cxx_stdlib=libstdc++
LimeChat @2.26_1 has no dependencies.
}}}
The reason seems to be that MacPorts uses libc++ on 10.6 and later, and it
knows that no compiler available via Xcode on 10.6 can use libc++, so it
does not attempt to use any Xcode compiler and falls back to a MacPorts
clang compiler:
https://github.com/macports/macports-
base/blob/b2dcbb94d1a02cc37cb7041c6df48a5d1e4b3d4b/src/port1.0/portconfigure.tcl#L936-L939
On 10.5 and earlier, libstdc++ is used, so the Xcode compilers would be
acceptable.
So, as far as I can tell, this is all working as designed.
--
Ticket URL: <https://trac.macports.org/ticket/71729#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list