Page MenuHomeFreeBSD

Mk/bsd.sites.mk: Update MASTER_SITE_GCC entries
ClosedPublic

Authored by diizzy on Aug 27 2022, 8:02 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 11 2024, 3:57 PM
Unknown Object (File)
Oct 4 2024, 1:47 PM
Unknown Object (File)
Oct 1 2024, 9:55 PM
Unknown Object (File)
Sep 21 2024, 8:35 PM
Unknown Object (File)
Sep 1 2024, 7:58 AM
Unknown Object (File)
Aug 31 2024, 2:03 AM
Unknown Object (File)
Aug 23 2024, 2:28 AM
Unknown Object (File)
Aug 18 2024, 2:24 PM
Subscribers
None

Details

Summary

Refresh mirror list with working mirrors and not stale mirrors (quite few doesn't carry snapshots for example)
Drop ftp mirrors
Use main site as fallback

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

diizzy created this revision.

I'd to have a second pair of eyes in case I overlooked something :-)

Thanks @diizzy, I will check the mirror list you propose as soon as possible.

A few questions about your patch:

  • I am unsure why do you want to remove ftp mirrors. My guess is that it is for security reasons, but in that case I would also remove http mirrors and keep https only. Also, remember that we use checksums, so we always check file integrity, from ftp and http mirrors too. I think there are other security concerns for ftp, so maybe you want to disable it for them, but what about http? Is file integrity the only security concern in this case? Also, I have not found any warning against using ftp and http mirrors in the porter's handbook, nor recommendation to use https.

Finally, I would change the patch by putting, in order, https://ftpmirror.gnu.org , http://ftpmirror.gnu.org, https://ftp.gnu.org/gnu/, http://ftp.gnu.org/gnu/, ftp://ftp.gnu.org/gnu/ (excluding maybe ftp and http) and removing all the mirrors now listed. In alternative, I would use the mirrors list from https://gcc.gnu.org/mirrors.html (excluding maybe ftp and http and surely the few that do not work). The first approach has the advantage that users would be able to download the sources from a nearby mirror, while with the second approach they use the first mirror that works in the list. Also, it seems that https://ftpmirror.gnu.org and http://ftpmirror.gnu.org have more mirrors than those listed on https://gcc.gnu.org/mirrors.html.

Moreover, please note that we have a MASTER_SITE_GNU definition and that https://ftpmirror.gnu.org , http://ftpmirror.gnu.org, https://ftp.gnu.org/gnu/, http://ftp.gnu.org/gnu/, ftp://ftp.gnu.org/gnu/ are links for GNU software, which includes gcc. So it is probably better to update MASTER_SITE_GNU with this list of links, then define MASTER_SITE_GCC by using the value of MASTER_SITE_GNU, or we could also remove the MASTER_SITE_GCC variable and use MASTER_SITE_GNU directly in the gcc ports (those do not include only those that I maintain, there are a few more).

In case you want to touch the MASTER_SITE_GNU variable, I recommend asking for review from some gnu software maintainer.

Hi,

That url ( https://gcc.gnu.org/mirrors.html ) is outdated and contains broken mirrors such as netgull.com and the other ones you've listed unfortunately which is annoying.
Confusingly GNU GCC mirrors used for the ftpmirror.gnu.org sub domain don't carry the "full set" such as snapshots which is why GNU mirrors (alias) isn't used in the first place afaik, see https://ftpmirror.gnu.org/gcc/ for example

A few sites such as mirrors.kernel.org (GeoDNS) have very good overall connectivity which why they're used, there's no need to force users to use slow mirrors just and we don't need a ton listed, if 9 sites are down you're likely to have other issues than mirrors being down.

ftp mirrors are removed as they're being deprecated overall including providers are removing them so there's no need to keep those around. If both https and http is broken you're unlikely to have working ftp connectivity anyway.

Hope that clears up things,

Best regards,
Daniel

That url ( https://gcc.gnu.org/mirrors.html ) is outdated and contains broken mirrors such as netgull.com and the other ones you've listed unfortunately which is annoying.

I double checked and you are right about netgull.com: although it works, it is outdated, so we cannot use it. However, all the other mirrors I listed work and are up to date: do they work for me only? If they do not work for you too, of course we cannot add them. And anyway, as you write, we do not need a ton of mirrors.

Confusingly GNU GCC mirrors used for the ftpmirror.gnu.org sub domain don't carry the "full set" such as snapshots which is why GNU mirrors (alias) isn't used in the first place afaik, see https://ftpmirror.gnu.org/gcc/ for example

Indeed, you are right.

ftp mirrors are removed as they're being deprecated overall including providers are removing them so there's no need to keep those around. If both https and http is broken you're unlikely to have working ftp connectivity anyway.

I am fine with removing them then.

The patch looks good to me. I would only change one link if it works for you too (see inline comment).

Mk/bsd.sites.mk
254

Can we change this one with https://mirrorservice.org/sites/sourceware.org/pub/gcc/, which is listed on the official mirrors list?

This revision is now accepted and ready to land.Aug 31 2022, 11:12 PM
Mk/bsd.sites.mk
254

Sure, I'll fix that. Thanks!