[MacPorts] #69406: build shared-mime-info for deployment target 10.14 fails on macOS Sonoma
MacPorts
noreply at macports.org
Wed Mar 20 01:41:16 UTC 2024
#69406: build shared-mime-info for deployment target 10.14 fails on macOS Sonoma
-------------------------------+----------------------
Reporter: MStraeten | Owner: mascguy
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.9.1
Resolution: | Keywords:
Port: shared-mime-info |
-------------------------------+----------------------
Comment (by kencu):
legacysupport doesn't use {{{os.major}}} at all, nor are there any places
where it would be useful to substitute {{{macosx_deployment_target}}}.
It uses {{{__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__}}} for it's
testing, which would be properly set by setting the deployment target when
building legacysupport.
The problem I see is how the replacements work ... making sure that when
building something against legacysupport on a system that HAS the symbols,
to have them link against and use the ones in legacysupport instead so
that when deployed on a system that doesn't have the symbols, something
will be found.
And this is really not right either -- you would want the legacysupport
library to only use the replacement symbols when needed, and use the
system symbols if they exist, which means runtime testing, not build-time
testing.
IE -- a big project, to do it right, and not something I'm prepared to do,
certainly.
And taking into account the fact that 99% of all open source software also
does not properly handle the case of building on a new system to deploy on
an old system -- that is why I say just build the damned software on a VM
of your desired lowest target, and be done with it ...
--
Ticket URL: <https://trac.macports.org/ticket/69406#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list