From 63d586cd6499ef2a8d311223fa0e1ed9d071dd0e Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 15 Oct 2025 21:49:40 +0100 Subject: [PATCH] classes/mirrors: use geo-located kernel.org mirrors We use the kernel.org mirrors for a number of projects: obviously the kernel, but also the GNU tarballs are fetched from there too. However, mirrors.kernel.org does not have any geo-proximity DNS magic and will always resolve to the primary server on in west coast USA, which is far from ideal if you're not near there. Switch the mirror URLs to mirrors.edge.kernel.org, which does actually resolve to a closer server. Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/classes-global/mirrors.bbclass | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/meta/classes-global/mirrors.bbclass b/meta/classes-global/mirrors.bbclass index e31af488b95..75a0003ce55 100644 --- a/meta/classes-global/mirrors.bbclass +++ b/meta/classes-global/mirrors.bbclass @@ -10,8 +10,8 @@ ${DEBIAN_MIRROR} http://snapshot.debian.org/archive/debian/20250101T023759Z/pool ${DEBIAN_MIRROR} http://snapshot.debian.org/archive/debian-archive/20120328T092752Z/debian/pool \ ${DEBIAN_MIRROR} http://snapshot.debian.org/archive/debian-archive/20110127T084257Z/debian/pool \ ${DEBIAN_MIRROR} http://snapshot.debian.org/archive/debian-archive/20090802T004153Z/debian/pool \ -${GNU_MIRROR} https://mirrors.kernel.org/gnu \ -${KERNELORG_MIRROR} http://www.kernel.org/pub \ +${GNU_MIRROR} https://mirrors.edge.kernel.org/gnu \ +${KERNELORG_MIRROR} http://www.edge.kernel.org/pub \ ${GNUPG_MIRROR} ftp://ftp.gnupg.org/gcrypt \ ${GNUPG_MIRROR} ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt \ ${GNUPG_MIRROR} ftp://mirrors.dotsrc.org/gcrypt \ @@ -26,7 +26,7 @@ ${APACHE_MIRROR} http://archive.apache.org/dist \ http://downloads.sourceforge.net/watchdog/ http://fossies.org/linux/misc/ \ ${SAVANNAH_GNU_MIRROR} http://download-mirror.savannah.gnu.org/releases \ ${SAVANNAH_NONGNU_MIRROR} http://download-mirror.savannah.nongnu.org/releases \ -ftp://sourceware.org/pub http://mirrors.kernel.org/sourceware \ +ftp://sourceware.org/pub http://mirrors.edge.kernel.org/sourceware \ ftp://sourceware.org/pub http://gd.tuwien.ac.at/gnu/sourceware \ ftp://sourceware.org/pub http://ftp.gwdg.de/pub/linux/sources.redhat.com/sourceware \ cvs://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \ @@ -52,8 +52,8 @@ https?://.*/.* http://sources.openembedded.org/ \ ftp://.*/.* http://sources.openembedded.org/ \ npm://.*/?.* http://sources.openembedded.org/ \ ${CPAN_MIRROR} https://cpan.metacpan.org/ \ -https?://downloads.yoctoproject.org/releases/uninative/ https://mirrors.kernel.org/yocto/uninative/ \ -https?://downloads.yoctoproject.org/mirror/sources/ https://mirrors.kernel.org/yocto-sources/ \ +https?://downloads.yoctoproject.org/releases/uninative/ https://mirrors.edge.kernel.org/yocto/uninative/ \ +https?://downloads.yoctoproject.org/mirror/sources/ https://mirrors.edge.kernel.org/yocto-sources/ \ " # Use MIRRORS to provide git repo fallbacks using the https protocol, for cases -- 2.47.3