[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(-) diff

[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
aviour 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 & Principal Engineer Beta Five Ltd -

[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/recipes-containers

[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/netns

[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 ++ 1 file

[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 <pbar...@toganlabs.com> 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

[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 <pbar...@toganlabs.com> --- .../0001-Use-correct-go-cross-compiler.patch | 85 -- recipes-containers/runc/runc-opencontainers_git.bb |

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

2018-05-08 Thread Paul Barker
Signed-off-by: Paul Barker <p...@toganlabs.com> --- .../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/

[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 <pbar...@toganlabs.com> --- 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/r

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

2017-10-13 Thread Paul Barker
Signed-off-by: Paul Barker <pbar...@toganlabs.com> --- 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(-)

[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 <pbar...@toganlabs.com> --- 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-cont

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

2017-10-13 Thread Paul Barker
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 recipes-containers

[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 <pbar...@toganlabs.com> --- recipes-containers/runc/runc-opencontainers_git.bb | 7 --- 1 file changed, 7 deletions(-) diff --git a/recipes-containers/runc/runc-opencontainers_g

[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 <pbar...@toganlabs.com> --- .../files/0001-Use-correct-go-cross-compiler.patch | 77 ++ recipes-networking/netns/netns_

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

2017-10-12 Thread Paul Barker
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 <pbar...@toganlabs.com> --- recipes-containers/runc/runc-docker_git

[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 <pbar...@toganlabs.

[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 <pbar...@toganlabs.com> --- ..

[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 <pbar...@toganlabs.com> --- classes/sanity-meta-virt.bbclass | 2 +- conf/laye

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 <bruce.ashfi...@gmail.com> wrote: > On Thu, Oct 5, 2017 at 12:15 PM, Paul Barker <pbar...@toganlabs.com> wrote: >> >> I'm getting this new warning up to 4 times on each bitbake invocation: >> twice before the &

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 <pbar...@toganlabs.com> wrote: > On Tue, Oct 10, 2017 at 12:02 AM, Bruce Ashfield > <bruce.ashfi...@gmail.com> wrote: >> On Mon, Oct 9, 2017 at 5:56 PM, Paul Barker <pbar...@toganlabs.com> wrote: >>> >&g

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 <bruce.ashfi...@gmail.com> wrote: > On Mon, Oct 9, 2017 at 5:56 PM, Paul Barker <pbar...@toganlabs.com> wrote: >> On Mon, Oct 9, 2017 at 8:54 PM, Aníbal Limón <limon.ani...@gmail.com> wrote: >>> From: A

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

2017-10-09 Thread Paul Barker
cross compiler > rm -f ${S}/src/import/vendor/src It seems like 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

[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 <pbar...@toganlabs.

[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 <pbar...@toganlabs.com> --- .../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-agains

[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 <pbar...@toganlabs.com> --- .../0001-Use-correct-go-cross-compiler.patch | 85 ++ r

[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 1/2] runc-opencontainers: Update to v1.0.0-rc4

2017-10-04 Thread Paul Barker
Signed-off-by: Paul Barker <pbar...@toganlabs.com> --- 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

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

[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 v1.0.0

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

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

[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 <pbar...@toganlabs.com> --- recipes-networking/netns/netns_git.bb | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

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

2017-04-03 Thread Paul Barker
From: Paul Barker <p...@paulbarker.me.uk> Signed-off-by: Paul Barker <p...@paulbarker.me.uk> --- 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-con

[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 <pbar...@toganlabs.com> --- 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/cgrou

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

2016-06-19 Thread Paul Barker
-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

[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 <p...@paulbarker.me.uk> --- recipes-networking/netns/netns_git.b

[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 <p...@paulbarker.me.uk> --- recipes-containers/runc/

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

2016-06-16 Thread Paul Barker
Signed-off-by: Paul Barker <p...@paulbarker.me.uk> --- .../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-nsex