Skip to contentSkip to conversation

emacs: Use GNU_MIRROR in SRC_URI

PATCH New Khem Raj 1 participant 1 message Oct 8, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 emacs: Use GNU_MIRROR in SRC_URI

Sometimes ftp.gnu.org might be slow.
Add UPSTREAM_CHECK_URI while here

Cc Gyorgy Sarvari <[email protected]>
---
 meta-oe/recipes-support/emacs/emacs_30.2.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
meta-oe/recipes-support/emacs/emacs_30.2.bb +3 -2
index 6f9b8a485c..95769aa94c 100644
@@ -4,8 +4,9 @@ HOMEPAGE = "https://www.gnu.org/software/emacs/"
 LICENSE = "GPL-3.0-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464"
 
-SRC_URI = "https://ftp.gnu.org/pub/gnu/emacs/emacs-${PV}.tar.xz \
-          "
+SRC_URI = "${GNU_MIRROR}/emacs/${BP}.tar.xz"
+UPSTREAM_CHECK_URI = "${GNU_MIRROR}/emacs/"
+
 SRC_URI:append:class-target = " \
     file://use-emacs-native-tools-for-cross-compiling.patch \
     file://avoid-running-host-binaries-for-sanity.patch \