[meta-intel] [PATCH] libyami: use git clone instead of unstable tarball
Ross Burton
ross.burton at intel.com
Mon Sep 18 07:00:30 PDT 2017
GitHub has confirmed that the /archive/ tarballs that are generated on demand
from git tags are not persistant and can change over time.
This is no longer an academic problem as this has been observed occuring.
libyami doesn't have any official maintainer-generated tarballs, so switch to
fetching over git.
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
common/recipes-multimedia/libyami/libyami-utils_1.2.0.bb | 8 ++++----
common/recipes-multimedia/libyami/libyami_1.2.0.bb | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/common/recipes-multimedia/libyami/libyami-utils_1.2.0.bb b/common/recipes-multimedia/libyami/libyami-utils_1.2.0.bb
index 672b8989..62d62d58 100644
--- a/common/recipes-multimedia/libyami/libyami-utils_1.2.0.bb
+++ b/common/recipes-multimedia/libyami/libyami-utils_1.2.0.bb
@@ -7,15 +7,15 @@ BUGTRACKER = "https://github.com/01org/libyami-utils/issues/new"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
-SRC_URI = "https://github.com/01org/libyami-utils/archive/${PV}.tar.gz;downloadfilename=${BP}.tar.gz \
+SRC_URI = "git://github.com/01org/libyami-utils.git \
file://0001-Fix-build-with-clang.patch \
"
-SRC_URI[md5sum] = "b4637f1a384e3de20076bf01ca2515d3"
-SRC_URI[sha256sum] = "3dbaedc797bf2d0e03879bfdbea462c3ec2aac89b49c1ed55cbff1be2590d1e8"
+SRCREV = "b480c0594a7e761a8ccfe6b19b3f9bd0c3d871a1"
+S = "${WORKDIR}/git"
DEPENDS = "libva libyami"
-EXTRA_OECONF = " --enable-tests-gles --disable-md5"
+EXTRA_OECONF = "--enable-tests-gles --disable-md5"
inherit autotools pkgconfig distro_features_check
diff --git a/common/recipes-multimedia/libyami/libyami_1.2.0.bb b/common/recipes-multimedia/libyami/libyami_1.2.0.bb
index e3462dd2..1d1d02fa 100644
--- a/common/recipes-multimedia/libyami/libyami_1.2.0.bb
+++ b/common/recipes-multimedia/libyami/libyami_1.2.0.bb
@@ -8,7 +8,7 @@ BUGTRACKER = "https://github.com/01org/libyami/issues/new"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=3b83ef96387f14655fc854ddc3c6bd57"
-SRC_URI = "https://github.com/01org/libyami/archive/${PV}.tar.gz;downloadfilename=${BP}.tar.gz \
+SRC_URI = "git://github.com/01org/libyami.git;branch=apache \
file://0001-bitWriter.cpp-Delete-unused-CACHEBYTES.patch \
file://0002-typecast-index-from-size_t-to-int.patch \
file://0003-Add-Wno-invalid-offsetof-to-compiler-commandline.patch \
@@ -19,8 +19,8 @@ SRC_URI = "https://github.com/01org/libyami/archive/${PV}.tar.gz;downloadfilenam
file://0008-NalUnit-is-declared-in-different-namespace.patch \
file://0009-Fix-clang-warnings.patch \
"
-SRC_URI[md5sum] = "2e2ed3bd900866476eced140799ee48b"
-SRC_URI[sha256sum] = "fdc3025f828c065a4434e73f5629e7ab8af593f1abbe097449dd5a13fa7d465f"
+SRCREV = "c884fc3facbf1a0adf2082a1cf95cb146300a5ca"
+S = "${WORKDIR}/git"
PACKAGECONFIG ??= "${@bb.utils.contains("DISTRO_FEATURES", "x11", "x11", "", d)}"
PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,virtual/libx11 libxrandr libxrender"
--
2.11.0
More information about the meta-intel
mailing list