diff mbox series

[1/2] conf/bitbake.conf: fix GNU mirror URL

Message ID 20260910130700.2587601-1-ross.burton@arm.com
State New
Headers show
Series [1/2] conf/bitbake.conf: fix GNU mirror URL | expand

Commit Message

Ross Burton Sept. 10, 2026, 1:06 p.m. UTC
Previously we moved GNU_MIRROR from ftp.gnu.org to ftpmirror.gnu.org[1],
however for reasons whilst ftp.gnu.org puts the content under a /gnu/
subdirectory, ftpmirror.gnu.org redirects to inside /gnu/.

This can be verified with curl. With /gnu/ included in the URL:

$ curl -vL https://ftpmirror.gnu.org/gnu/automake/automake-1.19.tar.gz
* Connected to ftpmirror.gnu.org (2001:470:142:5::200) port 443 (#0)
< HTTP/1.1 302 Moved Temporarily
< Location: https://mirror.cs.odu.edu/gnu//gnu/automake/automake-1.19.tar.gz
* Connected to mirror.cs.odu.edu (128.82.4.140) port 443 (#1)
> GET /gnu//gnu/automake/automake-1.19.tar.gz HTTP/1.1
< HTTP/1.1 404 Not Found

However, removing it:

$ curl -vL https://ftpmirror.gnu.org/automake/automake-1.19.tar.gz
* Connected to ftpmirror.gnu.org (2001:470:142:5::200) port 443 (#0)
< HTTP/1.1 302 Moved Temporarily
< Location: https://mirror.ibcp.fr/pub/gnu//automake/automake-1.19.tar.gz
* Connected to mirror.ibcp.fr (2001:660:500b:245::145) port 443 (#1)
> GET /pub/gnu//automake/automake-1.19.tar.gz HTTP/2
< HTTP/2 200
< content-length: 2517494
< content-type: application/x-gzip

This wasn't noticed as we have a default mirrors.bbclass which uses the
kernel.org mirror network.

It's also interesting that ftpmirror's attempt at providing local
mirrors is far from optimal: in testing this from the UK I was given
mirrors in the USA and China as often as Europe.

[1] oe-core d8c6f01d746 ("conf/bitbake.conf: use gnu mirror instead of main server")

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/conf/bitbake.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index a21223e216a..8a102d5e8f1 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -709,7 +709,7 @@  DEBIAN_MIRROR = "http://deb.debian.org/debian/pool"
 GENTOO_MIRROR = "http://distfiles.gentoo.org/distfiles"
 GNOME_GIT = "git://gitlab.gnome.org/GNOME"
 GNOME_MIRROR = "https://download.gnome.org/sources/"
-GNU_MIRROR = "https://ftpmirror.gnu.org/gnu"
+GNU_MIRROR = "https://ftpmirror.gnu.org/"
 GNUPG_MIRROR = "https://www.gnupg.org/ftp/gcrypt"
 KERNELORG_MIRROR = "https://cdn.kernel.org/pub"
 SAMBA_MIRROR = "http://samba.org/samba/ftp"