Bug 290898 - net/wifi-firmware-kmod: update MASTER_SITES
Summary: net/wifi-firmware-kmod: update MASTER_SITES
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Bjoern A. Zeeb
URL:
Keywords:
Depends on:
Blocks: 802.11, LinuxKPI
  Show dependency treegraph
 
Reported: 2025-11-08 16:11 UTC by Maurice Walker
Modified: 2025-11-17 00:14 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (bz)


Attachments
Proposed patch (1.32 KB, patch)
2025-11-08 16:11 UTC, Maurice Walker
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maurice Walker 2025-11-08 16:11:12 UTC
Created attachment 265272 [details]
Proposed patch

When trying to build the wifi firmware pkgs, my build system repeatedly failed to fetch some firmware files, as described in the commit which originally expanded the MASTER_SITES:

https://reviews.freebsd.org/D46681

The list of geolocated servers is outdated, most of them have since been decommissioned. I performed a RIPE Atlas measurement to check what CNAMEs geo.source.kernel.org currently resolves to around the world. This is the result.

After updating the MASTER_SITES, the build was successful.
Comment 1 Bjoern A. Zeeb freebsd_committer freebsd_triage 2025-11-08 18:25:29 UTC
The geolocated entries should only be fallbacks really;  I wonder where the original error came from?

I have other updates queued for the wifi-firmware ports;  I'll happily incorporate this.
Thank you for running the check and the patch!
Comment 2 Maurice Walker 2025-11-08 21:31:19 UTC
Thanks!

git.kernel.org resolves to CNAME geo.source.kernel.org, which resolves to one(!) of the geolocated CNAMEs - the server closest to you. Firmware files then get downloaded from this server (only). This works for a few files, but it seems that at some point server-side rate limiting prevents further downloads.

If we keep a list of all the geolocated servers, the download process simply switches to the next server once a download fails.
Comment 3 commit-hook freebsd_committer freebsd_triage 2025-11-17 00:12:59 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a7e181e4be8569ae319d3e199ccbb300428f32f0

commit a7e181e4be8569ae319d3e199ccbb300428f32f0
Author:     Maurice Walker <maurice@walker.earth>
AuthorDate: 2025-11-11 01:11:35 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-11-17 00:11:29 +0000

    net/wifi-firmware-kmod: update additional MASTER_SITES entries

    The fallback list of geolocated servers is outdated.
    Update with current set discovered using the RIPE Atlas service.

    PR:             290898
    Reviewed by:    jrm
    Differential Revision: https://reviews.freebsd.org/D53678

 net/wifi-firmware-kmod/Makefile.inc | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
Comment 4 Bjoern A. Zeeb freebsd_committer freebsd_triage 2025-11-17 00:14:32 UTC
Thanks a lot for doing the research and submitting the fix!