mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00

Bumping go-errors to version v0.8.1-32-g5dd12d0, which comprises the following commits: 5dd12d0 AddingPowerSupport_CI/Testing (#234) 614d223 Revert "Support Go 1.13 error chains in `Cause` (#215)" (#220) 49f8f61 Support Go 1.13 error chains in `Cause` (#215) 004deef remove unnecessary use of fmt.Sprintf (#217) 6d954f5 feat: support std errors functions (#213) 7f95ac1 Add support for Go 1.13 error chains (#206) 91f1693 travis.yml: add Go 1.13 ca0248e fix travis, 1.10 doesnt support by unconvert anymore 27936f6 travis.yml: add Go 1.12 (#200) 856c240 Add json.Marshaler support to the Frame type. (#197) ffb6e22 Reduce allocations in StackTrace.Format (#194) e9933c1 Restore performance improvements from #150 ee1923e Return errors.Frame to a uintptr 72fa05e errors: detect unknown frames correctly (#192) c38ea53 Remove errors.Frame to runtime.Frame conversions (#189) c9e70be Makefile: switch to staticcheck (#187) ee4766c Fix error during merge 584cbac Remove checks for old style anon funcs (#186) 42ce1b6 Remove Frame methods (#185) 937e8c5 gofmt -w e19cb69 Remove last reference to runtime.FuncForPC (#184) 4f47277 Switch to runtime.CallersFrames (#183) 537896a travis: remove Go 1.8 and earlier (#182) 31aac83 travis: use Makefile (#181) 5ac96ae Update README.md ba968bf gofmt -w errors.go (#179) 059132a Update .travis.yml (#168) d58f942 Bump Travis versions (#172) 6ed0a2e Fix StackTrace print example 2233dee Copyedit the package documentation (#135) e981d1a Add WithMessagef function (#118) c059e47 fixed spelling (#156) 816c908 travis.yml: add Go 1.10 (#154) e1ac100 reduce allocations when printing stack traces (#149) 30136e2 Remove deadcode (#146) e881fd5 Fix minor typo in README.md (#142) 8842a6e Add badge for number of dependent libraries (#109) e4f5060 Fix doc comment for exported Format func (#137) f15c970 Remove an unused argument of utility test func (#139) 2b3a18b travis: add 1.9.x to go versions (#133) c605e28 Add doc comment for exported Format func (#115) ff09b13 Bump Go versions, use latest patch releases (#110) bfd5150 Move benchmark assigned err to global exported variable (#106) 248dadf Bump Go versions (#91) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
42 lines
1.3 KiB
BlitzBasic
42 lines
1.3 KiB
BlitzBasic
DESCRIPTION = "Simple error handling primitives"
|
|
HOMEPAGE = "https://github.com/pkg/errors"
|
|
SECTION = "devel/go"
|
|
LICENSE = "BSD"
|
|
LIC_FILES_CHKSUM = "file://src/${PKG_NAME}/LICENSE;md5=6fe682a02df52c6653f33bd0f7126b5a"
|
|
|
|
SRCNAME = "errors"
|
|
|
|
PKG_NAME = "github.com/pkg/${SRCNAME}"
|
|
SRC_URI = "git://${PKG_NAME}.git;destsuffix=git/src/${PKG_NAME}"
|
|
|
|
SRCREV = "5dd12d0cfe7f152f80558d591504ce685299311e"
|
|
PV = "v0.8.1+git${SRCPV}"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
# NO-OP the do compile rule because this recipe is source only.
|
|
do_compile() {
|
|
}
|
|
|
|
do_install() {
|
|
install -d ${D}${prefix}/local/go/src/${PKG_NAME}
|
|
for j in $(cd ${S} && find src/${PKG_NAME} -name "*.go" -not -path "*/.tool/*"); 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
|
|
done
|
|
cp -r ${S}/src/${PKG_NAME}/LICENSE ${D}${prefix}/local/go/src/${PKG_NAME}/
|
|
}
|
|
|
|
SYSROOT_PREPROCESS_FUNCS += "go_errors_file_sysroot_preprocess"
|
|
|
|
go_errors_file_sysroot_preprocess () {
|
|
install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME}
|
|
cp -r ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME})
|
|
}
|
|
|
|
FILES:${PN} += "${prefix}/local/go/src/${PKG_NAME}/*"
|
|
|
|
CLEANBROKEN = "1"
|