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

Bumping umoci to version v0.4.7-260-g8f807a3, which comprises the following commits: e9fff47 pkg: fmtcompat: remove now that there are no users 63bbda0 errors: drop remaining errors.Wrap-like fmtcompat.Errorf users 73fffb3 errors: drop fmtcompat.Errorf for complicated err != nil checks 00a632e errors: drop fmtcompat.Errorf for explicit err != nil checks 5339feb errors: drop fmtcompat.Errorf for non-%w errors 1c67765 *: migrate to Go stdlib error wrapping cd18171 pkg: fmtcompat: add a compatibility shim for fmt.Errorf aaa6de8 fmt: use %q for quoting 97cbde3 *: fix new golint warnings 094e766 gha: enable CodeQL scanning e597e6a idtools: return errors for >u32 specification 71d012d oci: casext: mediatype: switch to generics for parser functions 0a5d0dc build(deps): bump github.com/klauspost/pgzip from 1.2.5 to 1.2.6 3405ba8 Fixed typo in rootless.md 3cf87e0 build(deps): bump codecov/codecov-action from 4 to 5 7bc95ad build(deps): bump golang.org/x/sys from 0.22.0 to 0.25.0 a357a4e build(deps): bump github.com/moby/sys/user from 0.1.0 to 0.3.0 7e48118 build(deps): bump opensuse/leap from 15.5 to 15.6 3e5ade3 build(deps): bump actions/cache from 3 to 4 a59f5ba build(deps): bump google.golang.org/protobuf from 1.34.1 to 1.34.2 3078d6b build(deps): bump github.com/vbatts/go-mtree from 0.5.3 to 0.5.4 ce130df build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 6fd54fc build(deps): bump codecov/codecov-action from 3 to 4 Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
86 lines
2.4 KiB
BlitzBasic
86 lines
2.4 KiB
BlitzBasic
HOMEPAGE = "https://github.com/openSUSE/umoci"
|
|
SUMMARY = "umoci modifies Open Container images"
|
|
LICENSE = "Apache-2.0"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
|
|
|
RDEPENDS:${PN} = "skopeo"
|
|
RDEPENDS:${PN}:class-native = ""
|
|
|
|
SRCREV_umoci = "8f807a317985f23f90f0d1dd75f5f6de34e0c263"
|
|
SRC_URI = "git://github.com/opencontainers/umoci.git;branch=main;name=umoci;destsuffix=github.com/opencontainers/umoci;protocol=https \
|
|
"
|
|
|
|
PV = "v0.4.7+git"
|
|
S = "${WORKDIR}/github.com/opencontainers/umoci"
|
|
GO_IMPORT = "github.com/opencontainers/umoci"
|
|
|
|
inherit goarch
|
|
inherit go
|
|
|
|
COMPATIBLE_HOST = "^(?!mips).*"
|
|
|
|
# This disables seccomp and apparmor, which are on by default in the
|
|
# go package.
|
|
EXTRA_OEMAKE="BUILDTAGS=''"
|
|
|
|
|
|
do_compile:class-native () {
|
|
export GOARCH="${BUILD_GOARCH}"
|
|
|
|
# Pass the needed cflags/ldflags so that cgo can find the needed headers files and libraries
|
|
export CGO_ENABLED="1"
|
|
export CFLAGS="${BUILD_CFLAGS}"
|
|
export LDFLAGS="${BUILD_LDFLAGS}"
|
|
export CGO_CFLAGS="${BUILD_CFLAGS}"
|
|
|
|
# as of go 1.15.5, there are some flags the CGO doesn't like. Rather than
|
|
# clearing them all, we sed away the ones we don't want.
|
|
# export CGO_LDFLAGS="$(echo ${BUILD_LDFLAGS} | sed 's/-Wl,-O1//g' | sed 's/-Wl,--dynamic-linker.*?( \|$\)//g')"
|
|
export CC="${BUILD_CC}"
|
|
export LD="${BUILD_LD}"
|
|
|
|
export GOPATH="${WORKDIR}/git/"
|
|
export GO111MODULE=off
|
|
|
|
export STATIC_BUILD_FLAGS="-trimpath"
|
|
|
|
cd ${S}
|
|
|
|
# why static ? patchelf will be run on dynamic binaries and it breaks
|
|
# the executable (coredump)
|
|
# https://forum.snapcraft.io/t/patchelf-broke-my-binary/4928
|
|
# https://github.com/NixOS/patchelf/issues/146
|
|
oe_runmake umoci.static
|
|
|
|
# so the common install can find our binary
|
|
cp umoci.static umoci
|
|
}
|
|
|
|
do_compile() {
|
|
export GOARCH="${TARGET_GOARCH}"
|
|
export GOPATH="${WORKDIR}/git/"
|
|
|
|
# Pass the needed cflags/ldflags so that cgo
|
|
# can find the needed headers files and libraries
|
|
export CGO_ENABLED="1"
|
|
export CFLAGS=""
|
|
export LDFLAGS=""
|
|
export CGO_CFLAGS="${TARGET_CFLAGS}"
|
|
export CGO_LDFLAGS="${TARGET_LDFLAGS}"
|
|
|
|
export GO111MODULE=off
|
|
|
|
export BUILD_FLAGS="-trimpath"
|
|
cd ${S}
|
|
|
|
oe_runmake umoci
|
|
}
|
|
|
|
do_install() {
|
|
install -d ${D}/${sbindir}
|
|
install ${S}/umoci ${D}/${sbindir}
|
|
}
|
|
|
|
INSANE_SKIP:${PN} += "ldflags already-stripped"
|
|
BBCLASSEXTEND = "native nativesdk"
|