[meta-virtualization] [PATCH 1/2] layer.conf: Change dependency on meta-selinux to recommendation

2019-09-24 Thread Paul Barker
The recipe for cri-o already has an anonymous Python function in place to skip the recipe if dependencies are not found so there's no need to force inclusion of the meta-selinux layer. Signed-off-by: Paul Barker --- conf/layer.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[meta-virtualization] [PATCH 2/2] netns: Fix build on qemux86-64

2019-09-24 Thread Paul Barker
The build has broken again on master, even for non-static builds of netns. The simplest fix is to extend our existing patch to cover this case as well. Signed-off-by: Paul Barker --- ...ce-rebuilding-all-packages-to-avoid-cgo.patch | 16 +++- 1 file changed, 11 insertions(+), 5

Re: [meta-virtualization] [PATCH] cgroup-lite: remove incorrect SYSTEMD_AUTO_ENABLE setting

2019-05-06 Thread Paul Barker
Rather than breaking this behaviour I'd like to see if we can support this in oe-core. Cc-ing Jonas and Alex on this one - is it simple to support `SYSTEMD_AUTO_ENABLE = "mask"` after the recent systemd changes in oe-core? Thanks, -- Paul Barker Managing Director &

[meta-virtualization] [PATCH] runc.inc: Move RRECOMMENDS to runc-docker

2019-01-11 Thread Paul Barker
If we're building runc-opencontainers it's likely that we're not using docker. Signed-off-by: Paul Barker --- recipes-containers/runc/runc-docker_git.bb | 2 ++ recipes-containers/runc/runc.inc | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rec

[meta-virtualization] [PATCH] Use SRCPV instead of SRCREV where possible

2019-01-11 Thread Paul Barker
This change reduces the length of ${PV} for several recipes and gives us auto-incrementing version numbers. Signed-off-by: Paul Barker --- recipes-containers/containerd/containerd.inc | 2 +- recipes-devtools/go/go-cli_git.bb | 2 +- recipes-devtools/go/go-dbus_git.bb

[meta-virtualization] [PATCH 1/1] netns: Use correct go toolchain

2019-01-08 Thread Paul Barker
If we don't explicitly set the GO variable as an argument to make then the native go toolchain is invoked instead of the cross-toolchain we actually want. This can result in a netns binary which is built for the wrong architecture. Signed-off-by: Paul Barker --- recipes-networking/

[meta-virtualization] [PATCH 0/1] netns fix for master & thud

2019-01-08 Thread Paul Barker
This patch belongs on both master and thud and should apply to both without needing modification. I'll follow up with a netns update on master once I've got some outstanding issues resolved. Paul Barker (1): netns: Use correct go toolchain recipes-networking/netns/netns_git.bb | 2

[meta-virtualization] sumo branch

2018-05-12 Thread Paul Barker
Hey, Looks like sumo is now out :) Could we get a sumo branch in meta-virtualization please? Cheers and many thanks to everyone who has contributed, -- Paul Barker Togán Labs Ltd -- ___ meta-virtualization mailing list meta-virtualization

Re: [meta-virtualization] [PATCH 2/2] netns: Update to v0.4.0

2018-05-08 Thread Paul Barker
On Tue, May 8, 2018 at 9:14 PM, Paul Barker wrote: > The netns project has been moved into the 'genuinetools' organisation and so > URLs have been updated. The copyright line in the license file has been > updated > to reference "The Genuinetools Authors". > &

[meta-virtualization] [PATCH 1/2] runc-opencontainers: Drop obsolete patch

2018-05-08 Thread Paul Barker
The upstream Makefile now calls `$(GO)` instead of just `go` so this patch isn't needed anymore. Signed-off-by: Paul Barker --- .../0001-Use-correct-go-cross-compiler.patch | 85 -- recipes-containers/runc/runc-opencontainers_git.bb | 1 - 2 files change

[meta-virtualization] [PATCH 2/2] netns: Update to v0.4.0

2018-05-08 Thread Paul Barker
ream. Signed-off-by: Paul Barker --- .../0001-Allow-selection-of-go-compiler.patch | 107 + recipes-networking/netns/netns_git.bb | 16 +-- 2 files changed, 115 insertions(+), 8 deletions(-) create mode 100644 recipes-networking/netns/files/0001-A

[meta-virtualization] [PATCH 4/5] runc: Drop inherit goarch

2017-10-13 Thread Paul Barker
The go bbclass already inherits goarch. Signed-off-by: Paul Barker --- recipes-containers/runc/runc.inc | 2 -- 1 file changed, 2 deletions(-) diff --git a/recipes-containers/runc/runc.inc b/recipes-containers/runc/runc.inc index b1f2ba8..c1ff08f 100644 --- a/recipes-containers/runc/runc.inc

[meta-virtualization] [PATCH 5/5] runc: Merge common metadata into inc file

2017-10-13 Thread Paul Barker
Signed-off-by: Paul Barker --- recipes-containers/runc/runc-docker_git.bb | 4 recipes-containers/runc/runc-opencontainers_git.bb | 4 recipes-containers/runc/runc.inc | 4 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/recipes-containers

[meta-virtualization] [PATCH 3/5] runc-docker: Drop unused EXTRA_FLAGS

2017-10-13 Thread Paul Barker
This variable isn't picked up by the runc Makefile anyway as it isn't exported. Signed-off-by: Paul Barker --- recipes-containers/runc/runc-docker_git.bb | 2 -- 1 file changed, 2 deletions(-) diff --git a/recipes-containers/runc/runc-docker_git.bb b/recipes-containers/runc/runc-doc

[meta-virtualization] [PATCH 0/5] netns fix and runc recipe simplification

2017-10-13 Thread Paul Barker
ta as the last patch incase that still isn't wanted. Paul Barker (5): netns: Use correct go cross-compiler runc-opencontainers: Drop unnecessary do_compile_prepend runc-docker: Drop unused EXTRA_FLAGS runc: Drop inherit goarch runc: Merge common metadata into inc file rec

[meta-virtualization] [PATCH 2/5] runc-opencontainers: Drop unnecessary do_compile_prepend

2017-10-13 Thread Paul Barker
The "vendor/src" symlink is already created in do_compile in runc.inc. Signed-off-by: Paul Barker --- recipes-containers/runc/runc-opencontainers_git.bb | 7 --- 1 file changed, 7 deletions(-) diff --git a/recipes-containers/runc/runc-opencontainers_git.bb b/recipes-containers

[meta-virtualization] [PATCH 1/5] netns: Use correct go cross-compiler

2017-10-13 Thread Paul Barker
The makefile for netns needs to be patched to ensure that we use the binaries from go-cross and not go-native. Signed-off-by: Paul Barker --- .../files/0001-Use-correct-go-cross-compiler.patch | 77 ++ recipes-networking/netns/netns_git.bb | 4 +- 2 files

Re: [meta-virtualization] [PATCH 4/4] runc: Simplify recipes

2017-10-12 Thread Paul Barker
On 12 Oct 2017 6:02 p.m., "Bruce Ashfield" wrote: On Thu, Oct 12, 2017 at 12:49 PM, Paul Barker wrote: > * All common settings are merged into the runc.inc file. > > * SRC_URI and SRCREV settings are normalised, dropping unnecessary arguments. I'm going to keep the name

[meta-virtualization] [PATCH 4/4] runc: Simplify recipes

2017-10-12 Thread Paul Barker
runc Makefile anyway as it isn't exported. * Drop unnecessary do_compile_prepend in runc-opencontainers as the "vendor/src" symlink is already created in do_compile in runc.inc. Signed-off-by: Paul Barker --- recipes-containers/runc/runc-docker_git.bb | 10 ++ rec

[meta-virtualization] [PATCH 2/4] sanity-meta-virt: Watch for SanityCheck event

2017-10-12 Thread Paul Barker
The ConfigParsed event is raised multiple times during a build which resulted in the sanity warning appearing up to 4 times per build. Instead we should be watching for the SanityCheck event (this is what the sanity checks in oe-core watch for). Signed-off-by: Paul Barker --- classes/sanity

[meta-virtualization] [PATCH 0/4] sanity-meta-virt and runc improvements

2017-10-12 Thread Paul Barker
simplified. runc-docker is fixed for aarch64 platforms by disabling compilation of the recvtty demo/reference application. Paul Barker (4): sanity-meta-virt: Make skip variable name layer specific sanity-meta-virt: Watch for SanityCheck event runc-docker: Disable building recvtty runc

[meta-virtualization] [PATCH 3/4] runc-docker: Disable building recvtty

2017-10-12 Thread Paul Barker
The recvtty demo/reference application has cross compilation issues when targeting aarch64 platforms. As it is just a demo application and is not usually used, we can just patch the Makefile to disable building this application. Signed-off-by: Paul Barker --- .../0001-Disable-building

[meta-virtualization] [PATCH 1/4] sanity-meta-virt: Make skip variable name layer specific

2017-10-12 Thread Paul Barker
The variable used to skip the sanity check should be named in a layer specific way. This will ensure there is no confusion if other layers use a similar sanity check. Signed-off-by: Paul Barker --- classes/sanity-meta-virt.bbclass | 2 +- conf/layer.conf | 2 +- 2 files changed

Re: [meta-virtualization] [PATCH V4 1/3] sanity-meta-virt.bbclass: add class for bbappend files checking

2017-10-12 Thread Paul Barker
On Thu, Oct 5, 2017 at 8:48 PM, Bruce Ashfield wrote: > On Thu, Oct 5, 2017 at 12:15 PM, Paul Barker wrote: >> >> I'm getting this new warning up to 4 times on each bitbake invocation: >> twice before the "Parsing recipes" line, once after the "Executing

Re: [meta-virtualization] [PATCH] Revert "runc: Don't override GOARCH or GOROOT"

2017-10-12 Thread Paul Barker
On Tue, Oct 10, 2017 at 12:30 AM, Paul Barker wrote: > On Tue, Oct 10, 2017 at 12:02 AM, Bruce Ashfield > wrote: >> On Mon, Oct 9, 2017 at 5:56 PM, Paul Barker wrote: >>> >>> It seems like we have conflicting changes :( Reverting this patch will >&

Re: [meta-virtualization] [PATCH] Revert "runc: Don't override GOARCH or GOROOT"

2017-10-09 Thread Paul Barker
On Tue, Oct 10, 2017 at 12:02 AM, Bruce Ashfield wrote: > On Mon, Oct 9, 2017 at 5:56 PM, Paul Barker wrote: >> On Mon, Oct 9, 2017 at 8:54 PM, Aníbal Limón wrote: >>> From: Aníbal Limón >>> >>> This reverts commit fdee07aadc1b5224a540c7e8893144207e1979cb. &

Re: [meta-virtualization] [PATCH] Revert "runc: Don't override GOARCH or GOROOT"

2017-10-09 Thread Paul Barker
e we have conflicting changes :( Reverting this patch will break cross-compilation of runc-opencontainers for x86-64 with musl libc again. I'll try cross-compiling both runc variants for arm, aarch64, x86 and x86-64 and see if I can find a solution that works for everything. -- Paul Barker Togán Labs Ltd -- ___ meta-virtualization mailing list meta-virtualization@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-virtualization

Re: [meta-virtualization] [PATCH V4 1/3] sanity-meta-virt.bbclass: add class for bbappend files checking

2017-10-05 Thread Paul Barker
uot;Executing RunQueue Tasks" line. It's also totally irrelevant for users of a distro like ours (Oryx Linux) which includes meta-virtualization for runc, docker or other related tools but doesn't use kvm or xen. I guess I can set SKIP_SANITY_BBAPPEND_CHECK in our distro config but this sounds like a universal skip for all sanity bbappend checks - is this intended? Or does this variable just apply to the check in this layer? If it's specific to this layer I think it needs a better name. Thanks, -- Paul Barker Togán Labs Ltd -- ___ meta-virtualization mailing list meta-virtualization@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-virtualization

[meta-virtualization] [PATCH 1/4] netns: Update to v0.2.1

2017-10-05 Thread Paul Barker
Signed-off-by: Paul Barker --- recipes-networking/netns/netns_git.bb | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/recipes-networking/netns/netns_git.bb b/recipes-networking/netns/netns_git.bb index 8e771f5..4437764 100644 --- a/recipes-networking/netns

[meta-virtualization] [PATCH 4/4] runc: Don't override GOARCH or GOROOT

2017-10-05 Thread Paul Barker
These variables are now set correctly by go.bbclass in oe-core. Changing them to point at the native sysroot just leads to build errors in some cases, for example when the target and host have matching GOARCH but not matching c libraries. Signed-off-by: Paul Barker --- recipes-containers/runc

[meta-virtualization] [PATCH 0/4] netns update and runc fixes

2017-10-05 Thread Paul Barker
* Update netns to the latest release. * Fix runc compilation problems when targeting qemux86-64. Both runc-docker and runc-opencontainers have been build tested with these changes. * Drop an old patch which is no longer used. Paul Barker (4): netns: Update to v0.2.1 runc: Drop obsolete

[meta-virtualization] [PATCH 2/4] runc: Drop obsolete patch

2017-10-05 Thread Paul Barker
This patch hasn't been used in a long time. Signed-off-by: Paul Barker --- .../0001-nsexec-fix-build-against-musl-libc.patch | 48 -- 1 file changed, 48 deletions(-) delete mode 100644 recipes-containers/runc/runc/0001-nsexec-fix-build-against-musl-libc.patch diff

[meta-virtualization] [PATCH 3/4] runc: Use correct go cross-compiler

2017-10-05 Thread Paul Barker
The makefiles for both providers of runc need to be patched in similar ways to ensure that we use the binaries from go-cross and not go-native. Signed-off-by: Paul Barker --- .../0001-Use-correct-go-cross-compiler.patch | 85 ++ recipes-containers/runc/runc

[meta-virtualization] [PATCH 0/2] runc-opencontainers updates

2017-10-04 Thread Paul Barker
These changes fix the build for runc-opencontainers and upgrade to the latest version (v1.0.0-rc4). Paul Barker (2): runc-opencontainers: Update to v1.0.0-rc4 runc-opencontainers: go.bbclass compile fixes recipes-containers/runc/runc-opencontainers_git.bb | 11 ++- 1 file changed, 6

[meta-virtualization] [PATCH 2/2] runc-opencontainers: go.bbclass compile fixes

2017-10-04 Thread Paul Barker
These fixes are needed due to updates to go.bbclass in oe-core. See commit 01a8d4537012ad93dc8510e9b762acdc8c4536c7 for more information. Signed-off-by: Paul Barker --- recipes-containers/runc/runc-opencontainers_git.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a

[meta-virtualization] [PATCH 1/2] runc-opencontainers: Update to v1.0.0-rc4

2017-10-04 Thread Paul Barker
Signed-off-by: Paul Barker --- recipes-containers/runc/runc-opencontainers_git.bb | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/recipes-containers/runc/runc-opencontainers_git.bb b/recipes-containers/runc/runc-opencontainers_git.bb index 4a6e8cd..940ae95 100644

Re: [meta-virtualization] [PATCH 3/4] runc-opencontainers: Drop unnecessary branch spec from SRC_URI

2017-04-03 Thread Paul Barker
On Mon, 3 Apr 2017 07:11:37 -0400 Bruce Ashfield wrote: > unnecessary, but I prefer it. since we are not always on master for > this recipe. > > I'll test the rest of the series, but I'll pass on this patch. > > Bruce > No problem, it's an aesthetic thing. I'm not sure why git has mixed up t

[meta-virtualization] [PATCH 0/4] Updates for runc & associated tools

2017-04-03 Thread Paul Barker
I've finally got back to playing around with runc and associated tools :) These patches have been tested on a raspberrypi3 and allow successful creation of a guest container using runc, netns and cgroup-lite. Paul Barker (4): netns: Update to latest HEAD runc-opencontainers: Update to v

[meta-virtualization] [PATCH 2/4] runc-opencontainers: Update to v1.0.0-rc3

2017-04-03 Thread Paul Barker
From: Paul Barker Signed-off-by: Paul Barker --- recipes-containers/runc/runc-opencontainers_git.bb | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/recipes-containers/runc/runc-opencontainers_git.bb b/recipes-containers/runc/runc-opencontainers_git.bb index

[meta-virtualization] [PATCH 1/4] netns: Update to latest HEAD

2017-04-03 Thread Paul Barker
There have been a couple of fixes and new features upstream, let's bring them in. The upstream URL has also changed slightly. Signed-off-by: Paul Barker --- recipes-networking/netns/netns_git.bb | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recipes-networking/

[meta-virtualization] [PATCH 3/4] runc-opencontainers: Drop unnecessary branch spec from SRC_URI

2017-04-03 Thread Paul Barker
From: Paul Barker Signed-off-by: Paul Barker --- recipes-containers/runc/runc-opencontainers_git.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recipes-containers/runc/runc-opencontainers_git.bb b/recipes-containers/runc/runc-opencontainers_git.bb index 4a6e8cd

[meta-virtualization] [PATCH 4/4] cgroup-lite: Inherit allarch

2017-04-03 Thread Paul Barker
This recipe just installs a pair of shell scripts. Signed-off-by: Paul Barker --- recipes-containers/cgroup-lite/cgroup-lite_1.11.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes-containers/cgroup-lite/cgroup-lite_1.11.bb b/recipes-containers/cgroup-lite/cgroup-lite_1.11.bb index

[meta-virtualization] [PATCH 2/2] Remove True option to getVar calls

2017-01-01 Thread Paul Barker
getVar() now defaults to expanding by default. Signed-off-by: Paul Barker --- classes/go-osarchmap.bbclass| 18 +- recipes-devtools/go-cross/go-cross.inc | 2 +- recipes-extended/libvirt/libvirt-python.inc | 2 +- recipes-extended/xen/xen-arch.inc

[meta-virtualization] [PATCH 1/2] go-osarchmap: Skip golang recipes for unsupported architectures

2017-01-01 Thread Paul Barker
Building any recipe for a mips-based machine like arduino-yun currently leads to errors in go_map_arch(). Instead, errors should only be raised if a recipe which uses golang is built. This is achieved using the same error handling seen in recipes-extended/xen. Signed-off-by: Paul Barker

[meta-virtualization] Dependency on oe-meta-go

2016-06-19 Thread Paul Barker
meta-virtualization without using that layer. Is this still a valid dependency or does the README need an update? Thanks, Paul Barker -- ___ meta-virtualization mailing list meta-virtualization@yoctoproject.org https://lists.yoctoproject.org/listinfo

[meta-virtualization] [PATCH] netns: New recipe

2016-06-19 Thread Paul Barker
netns is a runc hook for setting up simple bridge networking within containers. See README.md (or https://github.com/jfrazelle/netns/blob/master/README.md) for instructions on how to use netns. Signed-off-by: Paul Barker --- recipes-networking/netns/netns_git.bb | 44

[meta-virtualization] [PATCH 2/2] runc: Use go-osarchmap to set GOARCH

2016-06-16 Thread Paul Barker
When building for qemux86 the following error was encountered due to GOARCH being set incorrectly: compile: unknown architecture "i586" This can be fixed by using the go-osarchmap class. Signed-off-by: Paul Barker --- recipes-containers/runc/runc_git.bb | 11 +++ 1 file

[meta-virtualization] [PATCH 1/2] runc: Backport fix for building against musl

2016-06-16 Thread Paul Barker
Signed-off-by: Paul Barker --- .../0001-nsexec-fix-build-against-musl-libc.patch | 48 ++ recipes-containers/runc/runc_git.bb| 1 + 2 files changed, 49 insertions(+) create mode 100644 recipes-containers/runc/runc/0001-nsexec-fix-build-against-musl