[MacPorts] #60558: mirror_sites.tcl: trimming and updating

MacPorts noreply at macports.org
Tue May 26 19:49:57 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 iEFdev):

 Replying to [comment:2 ryandesign]:
 > 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.

 So, strip down the mirrors to just one (php).

 Just made a quick test to see if one could do a status test:

 {{{#!bash
 $ for site in $(sed -n '18,30p' mirror_sites.tcl); do \
 > echo -n "${site}: " && curl -I ${site} 2>/dev/null | grep HTTP; done
 https://mirror.aarnet.edu.au/pub/apache/: HTTP/1.1 200 OK
 https://archive.apache.org/dist/: HTTP/1.1 200 OK
 https://www.apache.org/dist/: HTTP/1.1 302 Found
 http://mirror.cc.columbia.edu/pub/software/apache/: HTTP/1.1 200 OK
 http://mirror.facebook.net/apache/: HTTP/1.1 200 OK
 http://www.gtlib.gatech.edu/pub/apache/: HTTP/1.1 200 OK
 http://mirrors.ibiblio.org/apache/: HTTP/1.1 200 OK
 ftp://ftp.infoscience.co.jp/pub/net/apache/dist/:      <--- err/timeout

 http://mirror.internode.on.net/pub/apache/: HTTP/1.1 200 OK
 http://apache.is.co.za/: HTTP/1.1 200 OK
 https://www.mirrorservice.org/sites/ftp.apache.org/: HTTP/1.1 200 OK
 http://apache.pesat.net.id/: HTTP/1.1 403 Forbidden
 http://apache.mirror.rafal.ca/: HTTP/1.1 200 OK
 }}}

 A timeout err doesn't tell if the site's gone or not. If not obvious,
 perhaps better to keep them?

 —

 And it looks like mySQL have removed their
 [http://dev.mysql.com/downloads/mirrors.html mirror page] as well.
 Couldn't find any info about it though. Tested a random few mirrors… and ~
 half are gone. I don't know what to make of that. I can remove the bad
 ones, but there's no way to [https://github.com/macports/macports-
 ports/blob/master/_resources/port1.0/fetch/mirror_sites.tcl#L534 generate]
 a new/updated list.

 When clicking on a download link:

 {{{
 https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.20.zip
   ---> https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-8.0.20.zip (via
 Finder info)
 }}}

 So, maybe just use `https://dev.mysql.com/get/Downloads/` as a single
 mirror then?


 // Well, I just wanted to take a quick look. Another day.

-- 
Ticket URL: <https://trac.macports.org/ticket/60558#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list