The tarballs for all versions prior to 18.x have been moved to
https://mesa.freedesktop.org/archive/older-versions/

To avoid this practice causing fetching failures in the future,
let's use the git.

Signed-off-by: Alexander Kanavin <[email protected]>
---
 meta/recipes-graphics/mesa/mesa_19.0.3.bb | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-graphics/mesa/mesa_19.0.3.bb 
b/meta/recipes-graphics/mesa/mesa_19.0.3.bb
index 8a72df10147..001c2f41237 100644
--- a/meta/recipes-graphics/mesa/mesa_19.0.3.bb
+++ b/meta/recipes-graphics/mesa/mesa_19.0.3.bb
@@ -1,13 +1,15 @@
 require ${BPN}.inc
 
-SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \
+def ver_branch(v):
+    return oe.utils.trim_version(v, 2)
+
+SRC_URI = 
"git://gitlab.freedesktop.org/mesa/mesa.git;protocol=https;branch=${@ver_branch("${PV}")}
 \
            
file://0001-meson.build-check-for-all-linux-host_os-combinations.patch \
            file://0001-meson.build-make-TLS-GLX-optional-again.patch \
            file://0001-Allow-enable-DRI-without-DRI-drivers.patch \
            "
-
-SRC_URI[md5sum] = "d03bf14e42c0e54ebae5730712ccc408"
-SRC_URI[sha256sum] = 
"f027244e38dc309a4c12db45ef79be81ab62c797a50a88d566e4edb6159fc4d5"
+SRCREV = "c8cdee5dc3c6f9856ee73aed2b47cee77d675022"
+S = "${WORKDIR}/git"
 
 #because we cannot rely on the fact that all apps will use pkgconfig,
 #make eglplatform.h independent of MESA_EGL_NO_X11_HEADER
-- 
2.17.1

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to