[MacPorts] #68731: pinentry-mac does not build with Xcode 15
MacPorts
noreply at macports.org
Sat May 25 09:13:08 UTC 2024
#68731: pinentry-mac does not build with Xcode 15
---------------------------+--------------------
Reporter: szhorvat | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: pinentry-mac |
---------------------------+--------------------
Comment (by FlyingSamson):
According to the [https://developer.apple.com/support/xcode/ "Minimum
requirements and supported SDKs" table on this side] starting with XCode15
only SDK 14 is supported.
Since the upstream project of pinentry-map has been archived a long time
ago, I was wondering if this should still be preferred over `pinentry` by
the `gnupg2` port, which seems to be the only port depending on `pinentry-
map`. If not, I would suggest changing the logic in `gnupg2`'s portfile
(sorry could not yet figure out how to link code in GitHub in the
WikiFormatting yet)
{{{
platform darwin {
if {![variant_isset pinentry] && ![variant_isset pinentry_mac]} {
# Automatically switch between pinentry and pinentry-mac, with
pinentry-mac being
# preferred.
# 10.7 and below are not supported by pinentry-mac, though, and
will default to
# pinentry. Just like pure darwin without OS X will.
if {${os.subplatform} ne "macosx" ||
${xcodeversion} eq "none" ||
[vercmp ${xcodeversion} {5.0}] < 0 ||
${os.major} < 12 || (![catch {registry_active pinentry}] &&
[catch {registry_active pinentry-mac}])}
{
default_variants-append +pinentry
} else {
default_variants-append +pinentry_mac
}
}
if {${os.major} < 9} {
patchfiles-append patch-common_sysutils.c-fix-unsetenv-usage-
on-10.4.diff
}
}
}}}
to prefer `pinenty` for macOS < 10.7 and "pure darwin" (current state) AND
if Xcode version >= 15.
Would that be sensible?
--
Ticket URL: <https://trac.macports.org/ticket/68731#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list