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 <peter.kjellerstedt@axis.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
Peter Kjellerstedt 2025-04-20 14:46:19 +02:00 committed by Bruce Ashfield
parent 1c98d66d20
commit 428af39f51

View File

@ -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