[MacPorts] #60558: mirror_sites.tcl: trimming and updating
MacPorts
noreply at macports.org
Tue May 26 14:22:58 UTC 2020
#60558: mirror_sites.tcl: trimming and updating
---------------------+--------------------
Reporter: iEFdev | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.6.2
Resolution: | Keywords:
Port: |
---------------------+--------------------
Comment (by ryandesign):
Different servers implement different requirements for https, by virtue of
the list of SSL/TLS protocols they support, the list of encryption
algorithms they support, and/or whether the certificate authority through
which their certificate is issued is recognized by the system. GitHub and
SourceForge for example both implemented requirements a few years ago that
surpass the abilities of /usr/bin/curl on OS X 10.8 and earlier, but not
all servers are that restrictive, and some are more restrictive than that.
The `distfiles_scheme` and `packages_scheme` variables aren't great,
because they presume that the decision about whether to use http or https
is always the same on an OS version. It is not; it varies by server. So
there should really be separate variables for each server, for those that
offer http and https, if that https is not compatible with all systems.
We use these variables only for official MacPorts mirrors. For other
servers, if they offer https, we have been switching unconditionally to
https in the interest of privacy, even if that https does not support all
OS versions. In that case older OS versions may try to connect to those
servers, fail, and then download successfully from another server, such as
our mirrors; that's fine. Figuring out which OS versions support https on
each of hundreds of other servers would be too tedious.
As for the other issues, thanks for pointing them out. I wasn't aware of
them. You're correct for example that [https://derickrethans.nl/php-
mirrors.html the php mirrors are gone] and we need to adapt MacPorts
accordingly. Regarding the dead link, it's inevitable that servers will go
way or that they will stop hosting some content. There is no automated
process in place to keep mirror_sites.tcl up to date; it requires someone
like you to notice a problem and for it to be fixed manually. If you'd
like to submit a PR to fix any or all of this that would be great,
otherwise I'm sure someone will get to it eventually.
--
Ticket URL: <https://trac.macports.org/ticket/60558#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list