neard: use GO_SRCURI_DESTSUFFIX
RFC PATCH 1/2 neard: use GO_SRCURI_DESTSUFFIX
* see:
https://lists.openembedded.org/g/openembedded-architecture/message/2007
https://git.openembedded.org/openembedded-core/commit/?id=cc4ec43a2b657fb4c58429ab14f1edc2473c1327
* fixes:
http://errors.yoctoproject.org/Errors/Details/772687/
Signed-off-by Martin Jansa <[email protected]>
--- ...w-external-specification-of-build-setti.patch | 16 ++++++++-------- recipes-containers/nerdctl/nerdctl_git.bb | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-)
recipes-containers/nerdctl/nerdctl/0001-Makefile-allow-external-specification-of-build-setti.patch +8 -8
@@ -1,4 +1,4 @@ -From 0e6809ea075acd3edf7de197cd4e190ccdad6361 Mon Sep 17 00:00:00 2001 +From c624d3aab602242df017f6d4c065ff709e712bab Mon Sep 17 00:00:00 2001 From: Bruce Ashfield <[email protected]> Date: Mon, 29 Mar 2021 20:50:47 -0400 Subject: [PATCH] Makefile: allow external specification of build settings
@@ -7,14 +7,14 @@ Upstream-Status: Inappropriate [embedded specific] Signed-off-by: Bruce Ashfield <[email protected]> --- - Makefile | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) -Index: nerdctl-v2.0.0-beta.1/src/import/Makefile -=================================================================== ---- nerdctl-v2.0.0-beta.1.orig/src/import/Makefile -+++ nerdctl-v2.0.0-beta.1/src/import/Makefile -@@ -38,7 +38,7 @@ +diff --git a/Makefile b/Makefile +index 844ae721..f5b90d84 100644 +--- a/Makefile ++++ b/Makefile +@@ -38,7 +38,7 @@ REVISION ?= $(shell git rev-parse HEAD)$(shell if ! git diff --no-ext-diff --qui GO_BUILD_LDFLAGS ?= -s -w GO_BUILD_FLAGS ?=
recipes-containers/nerdctl/nerdctl_git.bb +2 -2
@@ -13,12 +13,12 @@ DEPENDS = " \ SRCREV_FORMAT="nerdcli_cgroups" SRCREV_nerdcli = "265d6b9cf526ce7d9ed8d34a0e3c3066901cc463" -SRC_URI = "git://github.com/containerd/nerdctl.git;name=nerdcli;branch=main;protocol=https" +SRC_URI = "git://github.com/containerd/nerdctl.git;name=nerdcli;branch=main;protocol=https;destsuffix=${GO_SRCURI_DESTSUFFIX}" include src_uri.inc # patches and config -SRC_URI += "file://0001-Makefile-allow-external-specification-of-build-setti.patch \ +SRC_URI += "file://0001-Makefile-allow-external-specification-of-build-setti.patch;patchdir=src/${GO_IMPORT} \ file://modules.txt \ "
Signature · 1 line
2.45.1
RFC PATCH 2/2 cri-tools: use GO_SRCURI_DESTSUFFIX
* see:
https://lists.openembedded.org/g/openembedded-architecture/message/2007
https://git.openembedded.org/openembedded-core/commit/?id=cc4ec43a2b657fb4c58429ab14f1edc2473c1327
* fixes:
http://errors.yoctoproject.org/Errors/Details/772685/
Signed-off-by Martin Jansa <[email protected]>
--- ...d-allow-environmental-CGO-settings-and-pass-dont.patch | 6 +++--- recipes-containers/cri-tools/cri-tools_git.bb | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-)
recipes-containers/cri-tools/cri-tools/0001-build-allow-environmental-CGO-settings-and-pass-dont.patch +3 -3
@@ -35,10 +35,10 @@ Signed-off-by: Bruce Ashfield <[email protected]> src/import/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -Index: cri-tools-1.27.0+gite73a7139ed4986d6a0db784ae7a036841a02b351/src/import/Makefile +Index: Makefile =================================================================== ---- cri-tools-1.27.0+gite73a7139ed4986d6a0db784ae7a036841a02b351.orig/src/import/Makefile -+++ cri-tools-1.27.0+gite73a7139ed4986d6a0db784ae7a036841a02b351/src/import/Makefile +--- a/Makefile ++++ b/Makefile @@ -74,7 +74,8 @@ @$(MAKE) -B $(CRICTL)
recipes-containers/cri-tools/cri-tools_git.bb +4 -4
@@ -18,12 +18,12 @@ What is not in scope for this project? \ SRCREV_cri-tools = "17b4dd65d660fec94d7a5a070e3e89ef640f1087" SRC_URI = "\ - git://github.com/kubernetes-sigs/cri-tools.git;branch=master;name=cri-tools;protocol=https \ - file://0001-build-allow-environmental-CGO-settings-and-pass-dont.patch \ - " + git://github.com/kubernetes-sigs/cri-tools.git;branch=master;name=cri-tools;protocol=https;destsuffix=${GO_SRCURI_DESTSUFFIX} \ + file://0001-build-allow-environmental-CGO-settings-and-pass-dont.patch;patchdir=src/${GO_IMPORT}/ \ +" LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" +LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" GO_IMPORT = "import"
Signature · 1 line
2.45.1