[MacPorts] #69827: got 0.98.2 and TLS library dependency woes
MacPorts
noreply at macports.org
Thu Apr 25 21:11:39 UTC 2024
#69827: got 0.98.2 and TLS library dependency woes
----------------------+--------------------
Reporter: artkiver | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port:
----------------------+--------------------
Also see:
https://github.com/macports/macports-ports/pull/23716
Specifically, GitHub Actions CI is breaking with this PR to Got for
reasons that certainly weren't true previously.
Namely, it seems to be defaulting to OpenSSL3 and failing because it can't
find libtls, which MacPorts supplies via the libretls MacPort.
There are some different approaches to potentially take and I am
documenting them here for reference and to get some Portfile
experimentation somewhere that isn't just local to my system.
For example, one Portfile, simply explicitly declares libressl as a
dependency, that works locally.
Another example, the Portfile declares openssl and libretls as
dependencies, that works locally too.
The third example, borrows inspiration from the "smarts" in the rpki-
client Portfile, to attempt to determine which TLS library MacPorts
already has installed, and now has two variants, a libressl and an openssl
variant. This sort of seems to work locally, kind of, but not entirely.
For example, if I remove all TLS libraries, it will default to installing
OpenSSL3 and libretls and functions.
If, on the other hand, I have libressl already installed, it works.
However, if I remove all TLS libraries, but then specify +libressl when
installing the port, for some reason it is still installing OpenSSL3 and
then fails, because that conflicts!
That logic, was very thoroughly tested when originally introduced with the
rpki-client Portfile, so my guess is, something changed with MacPorts?
Hopefully others can suggest some improvements?
Thanks!
--
Ticket URL: <https://trac.macports.org/ticket/69827>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list