[openwrt/openwrt] tools/gnulib: use git archive as download source

LEDE Commits lede-commits at lists.infradead.org
Sat Jul 26 05:38:30 PDT 2025


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/222a1bed794c83298ae6e7dfddbe0eed7dcab0fc

commit 222a1bed794c83298ae6e7dfddbe0eed7dcab0fc
Author: Michael Pratt <mcpratt at pm.me>
AuthorDate: Tue Jul 8 14:57:58 2025 -0400

    tools/gnulib: use git archive as download source
    
    Snapshot downloads, whether from GNU cgit or GNU gitweb,
    are becoming more unreliable and unstable.
    Use the GNU gnulib git repository server for downloads
    because GNU has disabled cgit server snapshots due to performance issues.
    
    Other possible options include GNU gitweb snapshot or a git bundle download
    but these methods either may also have similar performance issues
    or require additions to the build system to handle the method
    beyond the previous commit.
    
    In case snapshots are to be used again for build tools in the future,
    the previous commit reduces the tarball generation attempts
    for the original source of snapshots in order to reduce server impact.
    
    A conversation regarding server performance issues and alternatives is linked.
    
    Link: https://lists.gnu.org/archive/html/bug-gnulib/2024-12/msg00124.html
    Signed-off-by: Michael Pratt <mcpratt at pm.me>
    Link: https://github.com/openwrt/openwrt/pull/16522
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 tools/gnulib/Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/gnulib/Makefile b/tools/gnulib/Makefile
index 245ba6be7d..33e6aba1cc 100644
--- a/tools/gnulib/Makefile
+++ b/tools/gnulib/Makefile
@@ -2,11 +2,11 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=gnulib
 PKG_CPE_ID:=cpe:/a:gnu:$(PKG_NAME)
-PKG_VERSION:=320db6ee7a3cd44ee77f09d30c8a9002159beb4b# # stable-202407
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://git.savannah.gnu.org/cgit/$(PKG_NAME).git/snapshot
-PKG_HASH:=0be734e8c5f88e259bd593d63da2be275b93aedb551ccdcd78db9825bddeb94e
+PKG_SOURCE_URL=git://git.git.savannah.gnu.org/$(PKG_NAME).git
+PKG_SOURCE_DATE:=2025-05-03
+PKG_SOURCE_VERSION:=320db6ee7a3cd44ee77f09d30c8a9002159beb4b# # stable-202407
+PKG_MIRROR_HASH:=0c3d39a0d26381b042ac8e95d22b88bda99bc8cc3974b151b1de184c0f4ac1bf
 
 include $(INCLUDE_DIR)/host-build.mk
 




More information about the lede-commits mailing list