diff mbox series

[meta-oe,06/72] proj: Fetch from GitHub releases

Message ID 20261130084643.1500716-7-khem.raj@oss.qualcomm.com
State New
Headers show
Series Upgrades, tip updates, removals and build fixes | expand

Commit Message

Khem Raj Nov. 30, 2026, 8:45 a.m. UTC
download.osgeo.org is slow and intermittently returns errors, which
breaks both fetching and the upstream check. Fetch the release tarball
from GitHub releases instead; it is the same file, so the checksum does
not change. Inherit github-releases and check its release tags, skipping
pre-releases.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta-oe/recipes-navigation/proj/proj_9.9.0.bb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-navigation/proj/proj_9.9.0.bb b/meta-oe/recipes-navigation/proj/proj_9.9.0.bb
index 2204e214eb..4c96e51a23 100644
--- a/meta-oe/recipes-navigation/proj/proj_9.9.0.bb
+++ b/meta-oe/recipes-navigation/proj/proj_9.9.0.bb
@@ -5,12 +5,13 @@  LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://COPYING;md5=f27445198ba1500f508fce2b183ce0ff"
 DEPENDS = "sqlite3 sqlite3-native"
 
-SRC_URI = "https://download.osgeo.org/${BPN}/${BP}.tar.gz"
+GITHUB_BASE_URI = "https://github.com/OSGeo/PROJ/releases"
+SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/${BP}.tar.gz"
 SRC_URI[sha256sum] = "791a0610547eeabb17006cfd49cdbd2034f3240f47ed5e88a1031811f4e2bcf3"
 
-UPSTREAM_CHECK_REGEX = "proj-(?P<pver>\d+(\.\d+)+)\.tar\.gz"
+UPSTREAM_CHECK_REGEX = "releases/tag/(?P<pver>\d+(\.\d+)+)$"
 
-inherit bash-completion cmake lib_package pkgconfig
+inherit bash-completion cmake lib_package pkgconfig github-releases
 
 EXTRA_OECMAKE = "-DBUILD_TESTING=OFF"