From df0abf029381587291621d28dd9716288d87c964 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Thu, 27 Jun 2019 03:54:50 +0000 Subject: oci-image-spec: uprev to v1.0.1 Updating the reference/source package of the oci-image-spec to v1.0.1. We also cleanup the install rule to be a bit simpler (by using --parents), and remove the .tool directory (which is new to this version), since it won't be package by default (and hence throws a QA error) and we don't need the .tool/* files. Signed-off-by: Bruce Ashfield --- recipes-containers/oci-image-spec/oci-image-spec_git.bb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/recipes-containers/oci-image-spec/oci-image-spec_git.bb b/recipes-containers/oci-image-spec/oci-image-spec_git.bb index 92a83998..58057408 100644 --- a/recipes-containers/oci-image-spec/oci-image-spec_git.bb +++ b/recipes-containers/oci-image-spec/oci-image-spec_git.bb @@ -9,8 +9,8 @@ SRCNAME = "image-spec" PKG_NAME = "github.com/opencontainers/${SRCNAME}" SRC_URI = "git://${PKG_NAME}.git;destsuffix=git/src/${PKG_NAME}" -SRCREV = "91d3eaabebcdc329edd9b4ff0f28f8f90022201f" -PV = "v1.0.0-rc4+git${SRCPV}" +SRCREV = "bd4f8fcb0979a663d8b97a1d4d9b030b3d2ca1fa" +PV = "v1.0.1+git${SRCPV}" S = "${WORKDIR}/git" @@ -21,11 +21,11 @@ do_compile() { do_install() { install -d ${D}${prefix}/local/go/src/${PKG_NAME} for j in $(cd ${S} && find src/${PKG_NAME} -name "*.go"); do - if [ ! -d ${D}${prefix}/local/go/$(dirname $j) ]; then - mkdir -p ${D}${prefix}/local/go/$(dirname $j) - fi - cp $j ${D}${prefix}/local/go/$j + cp --parents $j ${D}${prefix}/local/go/ done + # .tool isn't useful, so remote it. + rm -rf ${D}${prefix}/local/go/src/${PKG_NAME}/.tool/ + cp -r ${S}/src/${PKG_NAME}/LICENSE ${D}${prefix}/local/go/src/${PKG_NAME}/ } @@ -38,4 +38,4 @@ image_spec_file_sysroot_preprocess () { FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*" -CLEANBROKEN = "1" \ No newline at end of file +CLEANBROKEN = "1" -- cgit v1.2.3-54-g00ecf