[MacPorts] #51516: MacPorts should use a bundled copy of a newer libcurl and SSL library rather than the OS X version
MacPorts
noreply at macports.org
Tue Aug 23 00:43:07 UTC 2022
#51516: MacPorts should use a bundled copy of a newer libcurl and SSL library
rather than the OS X version
--------------------------+--------------------------------
Reporter: ryandesign | Owner: macports-tickets@…
Type: enhancement | Status: new
Priority: Normal | Milestone: MacPorts Future
Component: base | Version:
Resolution: | Keywords:
Port: |
--------------------------+--------------------------------
Comment (by kencu):
Maybe -- but you will not get all the important people to agree to bundle
curl/openssl into the MacPorts build.
So either you convince the ones that won't to agree (good luck with that)
or you accept my workaround (which I know you use) or -- you do a lot of
work to come up with another method.
There is an acceptable real-world workaround that has been suggested by
neverpanic in the mailing lists about a year ago. It involves having the
relevant part of MacPorts use the system libcurl by default, but look for
an use the alternate MacPorts libcurl first if it exists. You can find the
mailing list discussion in MacPorts-dev a year ago or perhaps 18 months.
You would use the relevant dyld functions to look for an open the libcurl
in ${prefix} if it exists, and then use the functions needed in there (as
I recall they are slightly different), or if there is no libcurl in
${prefix} fall back to the one in the system and use that.
This solution is elegant, certainly correct, robust, and does not require
macports to bundle libcurl (and thereby be responsible for security
breaches in so doing). It is also time consuming, requires considerable
programming expertise to accomplish, and will need to be maintained based
on changes in libcurl in ${prefix} as it is updated.
As my /opt/bootstrap workaround works so perfectly for me, I won't be
spending that time to do this. I doubt, in fact, that anyone with skill
set will, as -- well, life is short, time is limited, and this likely
won't rise to the top of anyone's list who can do it.
But you never know.
--
Ticket URL: <https://trac.macports.org/ticket/51516#comment:99>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list