Page MenuHomeFreeBSD

Mk/bsd.sites.mk: Skim and update Apache sites
ClosedPublic

Authored by michaelo on May 29 2026, 4:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jun 24, 1:55 PM
Unknown Object (File)
Wed, Jun 24, 7:15 AM
Unknown Object (File)
Wed, Jun 17, 11:29 PM
Unknown Object (File)
Tue, Jun 16, 2:35 PM
Unknown Object (File)
Tue, Jun 16, 5:11 AM
Unknown Object (File)
Fri, Jun 12, 11:46 PM
Unknown Object (File)
Fri, Jun 12, 11:08 PM
Unknown Object (File)
Mon, Jun 8, 1:39 PM
Subscribers

Details

Summary

The Apache mirror network has been shut down years ago because we moved to a CDN.
Therefore, use the latest download CDN and fall back to archive if the requested
dist file is not the latest one anymore.

Reference: https://www.apache.org/mirrors

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 73580
Build 70463: arc lint + arc unit

Event Timeline

michaelo created this revision.

Ran these two successfully:

grep -r --include=Makefile -E -e 'MASTER_SITES=.+APACHE' . -l | cut -d / -f 2-3 | xargs -I% make -C % makesum
grep -r --include=Makefile -E -e 'APACHE/' . -l | cut -d / -f 2-3 | xargs -I% make -C % makesum

Only www/archiva failed because it has been moved to attic years ago and defunct. Latest release in ports tree is several years old. DL CDN does not host the dist file anymore. This port needs to be deprecated and removed sooner or later.

archive.apache.org was removed because it's simply wrong in the context of mirror(s) and shouldn't be in the list
See https://cgit.freebsd.org/ports/commit/Mk/bsd.sites.mk?id=34197c5c60d360ad5af37c3e8aaf4d18176d4f3b

archive.apache.org was removed because it's simply wrong in the context of mirror(s) and shouldn't be in the list
See https://cgit.freebsd.org/ports/commit/Mk/bsd.sites.mk?id=34197c5c60d360ad5af37c3e8aaf4d18176d4f3b

I see and I read D32382 and we have a problem. The CDN only hosts the latest releases, not the archive. As soon as we are past the latest release within a port the dist file will be unfetchable. This happened to me yesterday when I was working on commons-daemon 1.6.0. It also takes upto 24 hours to sync from DL CDN to archive.

What would be your proposal to solve this problem? Aligning MASTER_SITES in ports when they are not uptodate is not a solution. Maybe we should invert? Archive and then DL CDN?

Maintainers need to keep their ports working properly, adding band-aids to work around the issues isn't a proper solution.

Maintainers need to keep their ports working properly, adding band-aids to work around the issues isn't a proper solution.

I don't think that people will be able to do this in time. You cannot expect that. So maybe we should drop DL CDN completely?

This revision is now accepted and ready to land.Sat, May 30, 8:24 PM