From 428af39f51afbcab89d9a5e9b2b204c751704cfd Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Sun, 20 Apr 2025 14:46:19 +0200 Subject: [PATCH] yq: drop uneeded do_compile_prepend remove the do_compile:prepend(). It is not needed and removing it allows yq to be built after devtooling it. Signed-off-by: Peter Kjellerstedt Signed-off-by: Bruce Ashfield --- recipes-devtools/yq/yq_git.bb | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/recipes-devtools/yq/yq_git.bb b/recipes-devtools/yq/yq_git.bb index 9682ec95..363769b9 100644 --- a/recipes-devtools/yq/yq_git.bb +++ b/recipes-devtools/yq/yq_git.bb @@ -84,24 +84,10 @@ SRC_URI += "git://github.com/inconshreveable/mousetrap;name=mousetrap;protocol=h PV = "4.45.1+git" GO_IMPORT = "github.com/mikefarah/yq" +export GO111MODULE = "off" inherit go ptest -do_compile:prepend() { - # arrange for some of the golang built ins to be found - ( - cd ${WORKDIR}/build/src/ - ln -sf ${STAGING_DIR_TARGET}/${prefix}/lib/go/src/cmd/vendor/golang.org . - - cd ${WORKDIR}/build/ - ln -sf ${UNPACKDIR}/build/vendor . - ) - - # arrange for the fetched dependencies to be found - export GOPATH="${GOPATH}:${WORKDIR}/build/vendor/" - export GO111MODULE=off -} - do_install_ptest() { install -d ${D}${PTEST_PATH}/tests cp -r ${S}/src/${GO_IMPORT}/scripts/* ${D}${PTEST_PATH}/tests