From 807b0bab37ad2d0d11b7f0a54e5859ff1ae9867d Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Wed, 4 Feb 2026 16:00:48 +0100 Subject: [PATCH] package/{glibc, localedef}: move to sourceware.org git repo As described in https://gitlab.com/buildroot.org/buildroot/-/issues/160, the github mirror is getting shut down - So move to the sourceware.org git repo. The github mirror was originally used because of performance and reliability issues with sourceware, but that seems be resolved now after server/RAM upgrades - E.G. from the sourceware news: April 22, 2024 server2.sourceware.org now has 512GB RAM, thanks Red Hat. https://sourceware.org/ So change back to fetch glibc (and localedef) from sourceware.org over git. Notice: The git archiving leads to slightly different paths and permissions in the tarball, but the file content is identical: mkdir a && tar -C a -x --strip-components=1 -f \ path/to/glibc-2.42-51-gcbf39c26b25801e9bc88499b4fd361ac172d4125.tar.gz mkdir b && tar -C b -x --strip-components=1 -f \ path/to/glibc-2.42-51-gcbf39c26b25801e9bc88499b4fd361ac172d4125-git4.tar.gz Signed-off-by: Peter Korsgaard [Julien: - add missing SoB line - fix command lines in commit log ] Signed-off-by: Julien Olivain --- package/glibc/glibc.hash | 4 ++-- package/glibc/glibc.mk | 10 ++-------- package/localedef/localedef.mk | 5 +++-- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/package/glibc/glibc.hash b/package/glibc/glibc.hash index a58bb7b9a7..0a11cfdb5e 100644 --- a/package/glibc/glibc.hash +++ b/package/glibc/glibc.hash @@ -1,5 +1,5 @@ -# Locally calculated (fetched from Github) -sha256 f63ffa06cd17ee8ff891f6de41de6e189b96edc6b2be2807ae597291f4464388 glibc-2.42-51-gcbf39c26b25801e9bc88499b4fd361ac172d4125.tar.gz +# Locally calculated (fetched from git) +sha256 737e3b2bfee2e3e209e514133f4ff7d2bef0d0dc903fd46b4e2244f6c998f7b2 glibc-2.42-51-gcbf39c26b25801e9bc88499b4fd361ac172d4125-git4.tar.gz # Hashes for license files sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING diff --git a/package/glibc/glibc.mk b/package/glibc/glibc.mk index 44bf9c4b06..80d21b86ed 100644 --- a/package/glibc/glibc.mk +++ b/package/glibc/glibc.mk @@ -8,14 +8,8 @@ # git describe --match 'glibc-*' --abbrev=40 origin/release/MAJOR.MINOR/master | cut -d '-' -f 2- # When updating the version, please also update localedef GLIBC_VERSION = 2.42-51-gcbf39c26b25801e9bc88499b4fd361ac172d4125 - -# Upstream doesn't officially provide an https download link. -# There is one (https://sourceware.org/git/glibc.git) but it's not reliable, -# sometimes the connection times out. So use an unofficial github mirror. -# When updating the version, check it on the official repository; -# *NEVER* decide on a version string by looking at the mirror. -# Then check that the mirror has been synced already (happens once a day.) -GLIBC_SITE = $(call github,bminor,glibc,$(GLIBC_VERSION)) +GLIBC_SITE = https://sourceware.org/git/glibc.git +GLIBC_SITE_METHOD = git GLIBC_LICENSE = GPL-2.0+ (programs), LGPL-2.1+, BSD-3-Clause, MIT (library) GLIBC_LICENSE_FILES = COPYING COPYING.LIB LICENSES diff --git a/package/localedef/localedef.mk b/package/localedef/localedef.mk index 254a79026a..4da110417a 100644 --- a/package/localedef/localedef.mk +++ b/package/localedef/localedef.mk @@ -8,8 +8,9 @@ # As in glibc.mk, generate version string using: # git describe --match 'glibc-*' --abbrev=40 origin/release/MAJOR.MINOR/master | cut -d '-' -f 2- LOCALEDEF_VERSION = 2.42-51-gcbf39c26b25801e9bc88499b4fd361ac172d4125 -LOCALEDEF_SOURCE = glibc-$(LOCALEDEF_VERSION).tar.gz -LOCALEDEF_SITE = $(call github,bminor,glibc,$(LOCALEDEF_VERSION)) +LOCALEDEF_SOURCE = glibc-$(LOCALEDEF_VERSION)$(BR_FMT_VERSION_git).tar.gz +LOCALEDEF_SITE = https://sourceware.org/git/glibc.git +LOCALEDEF_SITE_METHOD = git HOST_LOCALEDEF_DL_SUBDIR = glibc HOST_LOCALEDEF_DEPENDENCIES = \