mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00

Bumping umoci to version v0.4.7-150-g33ec006, which comprises the following commits: 150b9e0 build(deps): bump github.com/stretchr/testify from 1.8.3 to 1.8.4 1c365a2 build(deps): bump github.com/stretchr/testify from 1.8.2 to 1.8.3 6e6027c build(deps): bump golang.org/x/sys from 0.7.0 to 0.8.0 b267d7b test: move 'go test' output to stderr for coverage binary 947f407 build(deps): bump github.com/opencontainers/runc from 1.1.6 to 1.1.7 e9394e8 CHANGELOG: update to include changes from v0.4.7 08672f5 vendor: bump several deps b4f2258 go.mod: update Go version to go1.18 b285980 build(deps): bump github.com/vbatts/go-mtree from 0.5.2 to 0.5.3 61c566b build(deps): bump google.golang.org/protobuf from 1.28.1 to 1.30.0 a0bb45f build(deps): bump actions/setup-go from 3 to 4 bdfd50b build(deps): bump github.com/stretchr/testify from 1.8.1 to 1.8.2 37c828e gha: ci: make ci-image cache expire weekly 3e7ddbd dockerfile: update to leap 15.4 44a127b Makefile: pull image details from Dockerfile c99bc38 dockerfile: fetch oci-*-tools with go install 701c194 test: update to gomtree 0.5.2 ac5e249 test: (raw-)config: only use export in sub-shell c8183de oci: config: strip "-dev" from runtime-spec version b1c2cdf oci: config: correctly handle runtime-spec versions de9ad94 make: add -buildvcs=false to builds 6d52935 gha: bump Go version for validate to Go 1.20.x 3544ece build(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1 Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
83 lines
2.3 KiB
BlitzBasic
83 lines
2.3 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 = "33ec00665c66321f1b1f34ca7e6f370ac35c1233"
|
|
SRC_URI = "git://github.com/opencontainers/umoci.git;branch=main;name=umoci;destsuffix=github.com/opencontainers/umoci;protocol=https \
|
|
"
|
|
|
|
PV = "v0.4.7+git${SRCPV}"
|
|
S = "${WORKDIR}/github.com/opencontainers/umoci"
|
|
GO_IMPORT = "github.com/opencontainers/umoci"
|
|
|
|
inherit goarch
|
|
inherit go
|
|
|
|
# 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
|
|
|
|
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"
|