Commit Graph

471 Commits

Author SHA1 Message Date
Chris Patterson
cb16321ca6 base-files: remove bbappend hacking on fstab
This approach breaks images which have Xen in DISTRO_FEATURES,
but are not booting under Xen (and mounting /proc/xen fails).

xencommons, xendriverdomain, or proc-xen.mount should take care of
mounting /proc/xen.

Signed-off-by: Chris Patterson <pattersonc@ainfosec.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-07-04 00:24:35 -04:00
Paul Barker
f53bca5f88 netns: New recipe
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 <paul@paulbarker.me.uk>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-06-21 09:40:01 -04:00
Paul Barker
0ce0b5cc74 runc: Use go-osarchmap to set GOARCH
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 <paul@paulbarker.me.uk>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-06-17 08:34:55 -04:00
Paul Barker
6b656b8678 runc: Backport fix for building against musl
Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-06-17 08:34:55 -04:00
Fabio Berton
7605443085 docker-registry: Make version dependence compatible with opkg
Some recipes in RDEPENDS are installing specific version of package, for
example:
  gunicorn (= 19.1.1)

If usigin ipk for PACKAGE_CLASSES, opkg prints error:

Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies
 for docker:
 *      gunicorn (= 19.1.1) *
 * opkg_install: Cannot install package docker.

This error is caused because opkg appends package revision to version.
In this case:
  gunicorn_19.1.1-r0.1

If we use comparator >= this error doesn't appear.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-06-17 08:34:46 -04:00
Kai Kang
06dccfa933 criu: fix build-deps qa warning
It shows warning when build crius if libselinux has been built already:

  WARNING: QA Issue: criu rdepends on libselinux, but it isn't a build dependency? [build-deps]

Add a patch to disable selinux support when 'selinux' is not in PACKAGECONF.

And update indentation at same time.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-06-06 02:44:44 -04:00
Yunguo Wei
01aa8f1819 docker: override GOROOT at build time
Usually $GOROOT is set by go tool, but if sstate is specified, $GOROOT
is set to the path in the first project. If docker is built in the
another project(with same SSTATE_DIR) later, and the first project is removed,
the following error will be seen:

| go: cannot find GOROOT directory:
/path/to/previous/project/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/x86_64-wrs-linux/go

This commit is overriding $GOROOT stored in the go tool in sstate cache,
making sure it is set to the correct path in current project.

See more information here: https://golang.org/doc/install#install

Signed-off-by: Yunguo Wei <yunguo.wei@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-05-30 14:19:39 -04:00
Bruce Ashfield
313b06bfad go-cross: allow tmp directory to already exist
The change [go-native: don't use host /var/tmp for temp build artifacts]
fixed builds, but it is possible that the tmp directory already exists, which
results in the following failure:

  | DEBUG: Executing shell function do_compile
  | mkdir: cannot create directory 'tmp/work/x86_64-linux/go-cross/1.6.2-r0/build-tmp': File exists
  | WARNING: exit code 1 from a shell command.
  | ERROR: Function failed: do_compile (log file is located at tmp/work/x86_64-linux/go-cross/1.6.2-r0/temp/log.do_compile.29142)

By adding a -p to the mkdir calls, we can survive this scenario.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-05-25 09:50:56 -04:00
He Zhe
da1e90ecc8 protobuf: Add RDEPENDS for ptest
This patch adds bash and python to ptest's RDEPENDS to avoid the following
warning:
"WARNING: QA Issue: /usr/lib64/protobuf/ptest/run-ptest_protobuf-ptest contained
in package protobuf-ptest requires /bin/bash, but no providers found in its
RDEPENDS [file-rdeps]"

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-05-25 09:42:14 -04:00
Roy Li
dc7ab5bea5 libvirt-python: backport a patch to fix crash in getAllDomainStats
Upstream libvirt Commits 1d39dbaf and 827ed9b4 broke the libvirt-python API
by removing virDomainRef() and virDomainFree().  virDomainStatsRecordListFree() will
free that domain pointer and later when virDomain (python object) call
its destructor and tries to free that same pointer again.

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-05-25 09:41:44 -04:00
Bruce Ashfield
16a31ef4a8 containerd: replace deprecated base_contains
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-05-25 09:36:49 -04:00
Zumeng Chen
0afa6e168e protobuf: add protobuf-2.5.0 into devtool
Protocol Buffers(a.k.a., protobuf) are language-neutral, platform-neutral,
extensible mechanism for serializing structured data, so it is reasonable
to be a part of development tool recipe.

Signed-off-by: Zumeng Chen <zumeng.chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-05-20 12:36:54 -04:00
Zumeng Chen
823c8cfcdf criu: remove protobuf-2.6.1 and the related
Since CRIU does not explicitly nominate the version of protobuf as 2.6.1, which
should not be included just here. And it seems protobuf-2.5.0 is doable or this
CRIU version based on a basic testing according to criu.org/Simple_loop as well,
so remove it from criu.

Signed-off-by: Zumeng Chen <zumeng.chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-05-20 12:36:54 -04:00
Mark Asselstine
3c3293e6b8 go-native: don't use host /var/tmp for temp build artifacts
Similar to a recent change for go-cross we can potentially run in to a
build failure:

  go tool dist: mkdtemp(/var/tmp/go-cbuild-A0rrP5): No such file or directory

when the host doesn't have a /var/tmp or when the permissions don't
allow for the creation of the temporary directory. Instead of relying
on /var/tmp we create and use a temporary directory in the $WORKDIR to
work around this issue. This is passed to the build via the TMPDIR
environment variable.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-05-20 12:34:34 -04:00
Bruce Ashfield
77e846b14f docker: drop obselete dependencies
We no longer need go-net and go-sqlite for the docker build and
runtime. The upstream repos are no longer properly fetching, so
we can simply drop the recipes and dependency.

If they are ever needed in the future, we can revisit the upstream
source for them.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-05-18 14:20:29 -04:00
Anders Roxell
6f1ea8bd21 lxc: workaround to ignore deprecated
Recent patch did deprecate a standard POSIX function [1].

This is the build error:
| ../../../lxc-2.0.0/src/lxc/cgfs.c: In function 'cgroup_rmdir':
| ../../../lxc-2.0.0/src/lxc/cgfs.c:172:2: error: 'readdir_r' is deprecated [-Werror=deprecated-declarations]
|   while (!readdir_r(dir, &dirent, &direntp)) {
|   ^
| In file included from ../../../lxc-2.0.0/src/lxc/cgfs.c:30:0:
| /.../build/tmp-glibc/sysroots/qemux86-64/usr/include/dirent.h:183:12: note: declared here
|  extern int readdir_r (DIR *__restrict __dirp,
|             ^

[1] https://www.sourceware.org/ml/libc-alpha/2016-02/msg00093.html

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-05-17 23:48:28 -04:00
Dai Caiyun
fd94b3f2e6 openvswitch: Fix rootfs creation errors
error: file /var/run from install of openvswitch-2.1.3-r0.x86_64
    conflicts with file from package base-files-3.0.14-r89.ubinux_x86_64

Signed-off-by: Dai Caiyun <daicy.fnst@cn.fujitsu.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-05-16 11:37:12 -04:00
Mark Asselstine
7e2ad373b6 go-cross: don't use host /var/tmp for temporary build artifacts
The default behavior for go-cross build is to use the path specified
in TMPDIR for some temporary build artifacts and if no TMPDIR is set
in the environment to fallback to use /var/tmp. This causes a build
failure on hosts that do not have a /var/tmp or that have restrictive
permissions on /var/tmp. The failure is seen as:

  go tool dist: mkdtemp(/var/tmp/go-cbuild-yhmNbi): No such file or directory

By setting TMPDIR and ensuring we create this
directory we can avoid the associated issue with using the default.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-05-16 11:12:36 -04:00
Derek Straka
a3617f2464 globally replace 'base_contains' calls with 'bb.utils.contains'
The 'base_contains' is now deprecated and only kept as a compatibility method.  It will be removed in future releases.

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-05-03 22:21:25 -04:00
Yunguo Wei
1fd94d8535 criu: Fix QA warning
This is fixing:

QA Issue: criu rdepends on libbsd, but it isn't a build dependency? [build-deps]

Signed-off-by: Yunguo Wei <yunguo.wei@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-05-03 22:19:54 -04:00
Bruce Ashfield
6f17a76ac1 docker: uprev to 1.11.1
Updating docker to the 1.11.1 release, which uses the open container initiative
components.

With this udpate, we drop patches that are no longer required, and adjust the
install/strip routines to not look for obselete components.

There are now 4 binaries required for docker to work:

  - docker
  - docker-containerd
  - docker-containerd-shim
  - docker-runc

The new containerd and runc recipes provide the latter, while docker provides
the cli and daemon.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-05-02 14:02:42 -04:00
Bruce Ashfield
fd1a6d1bd3 runc: initial recipe
With the update to docker 1.11.x, we must also introduce runc. From the
runc site:

   runC is a CLI tool for spawning and running containers according to the OCP specification.

   Containers are started as a child process of runC and can be embedded into various other
   systems without having to run a Docker daemon.

   runC is built on libcontainer, the same container technology powering millions of
   Docker Engine installations.

   Docker images can be run with runC.

So not only is runc required for docker, it is useful for any system that wants
to run OCP containers AND docker containers.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-05-02 14:02:42 -04:00
Bruce Ashfield
e919b641bb containerd: initial recipe
With the update to docker 1.11.x+, we need the OCI containerd to control
runc:

  containerd is a daemon to control runC, built for performance and density.
  containerd leverages runC's advanced features such as seccomp and user
  namespace support as well as checkpoint and restore for cloning and
  live migration of containers.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-05-02 14:02:41 -04:00
Bruce Ashfield
79654fc6a1 go: add go-cross 1.6
Introduce the 1.6 go release, and port patches to apply to this version.
Existing versions (1.5) are not removed, so this is not a forced update.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-05-02 14:02:41 -04:00
Bruce Ashfield
5dedd395f4 lxc: update configuration to include all required options
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-05-02 14:02:41 -04:00
Bruce Ashfield
38cdaf39bf lxc: update to 2.0.0
2.0.0 is released, and contains many of the patches we've been carrying for
1.x.

With this updated, we drop upstream backports (and submitted patches), and
refresh on patch. Otherwise, everything is the same.

Sanity tested on x86-64.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-04-25 16:26:23 -04:00
Paul Gortmaker
3498e94adf lxc: inherit python native to fix configure error
Recently the configure with python enabled has become the default here.
However, if the host doesn't have python3, configure fails with:

     checking for a Python interpreter with version >= 3.2... none
     configure: error: You must install python3

We have a python3 in the sysroot, but we need to inherit it for it to
be available for lxc's configure step.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-04-22 12:57:43 -04:00
Paul Gortmaker
7735217d66 go-cross: add relocation fix to 1.4 for new binutils.
Add relocation fix as documented in contained commit log, so that we
can build with newer binutils, as per the ones we get via the self
hosted builder and things like build-appliance.

Fixes:

| go-native/1.4.3-r0/go/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic?
| go-native/1.4.3-r0/go/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic?
| runtime/cgo(.text): unexpected relocation type 298
| runtime/cgo(.text): unexpected relocation type 298
| # cmd/go
| go-native/1.4.3-r0/go/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic?
| go-native/1.4.3-r0/go/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic?
| runtime/cgo(.text): unexpected relocation type 298
| runtime/cgo(.text): unexpected relocation type 298
| WARNING: go-native/1.4.3-r0/temp/run.do_compile.30243:1 exit 2 from './make.bash --host-only'
| ERROR: Function failed: do_compile (log file is located at go-native/1.4.3-r0/temp/log.do_compile.30243)
ERROR: Task 6 (meta-virtualization/recipes-devtools/go-cross/go-native_1.4.bb, do_compile) failed with exit code '1'

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
2016-04-22 12:51:23 -04:00
Paul Gortmaker
ecd6adcb82 go-cross: uprev 1.4.2 --> 1.4.3
There is a fix for newer binutils that was aimed at being placed
on the 1.4.3 baseline, so update accordingly.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
2016-04-22 12:51:23 -04:00
fli
23459b9b70 meta-virtualization: enable lxc-start support wlan0
Cherry picked patch from lxc upstream commit:
f2e206ff47<lxc: let lxc-start support wlan phys>
to enable lxc-start command support wlan0 device
and make cube-essential support paththrough wlan
device from host to lxc containers.

Signed-off-by: fli <fupan.li@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-04-22 10:27:40 -04:00
He Zhe
3e84107e40 openvswitch: ptest: Fix python path
Set PYTHON to TARGET_PYTHON for running on target

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-04-19 15:51:17 -04:00
Zongchun Yu
acbe424171 docker: uprev to 1.9.0
Signed-off-by: Zongchun Yu <zongchun.yu@nxp.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-04-19 15:51:14 -04:00
Zongchun Yu
12c601cd2d go-cross: uprev to 1.5.2
* Add go-native as build bootstrap for go-cross.
* Upgrade go-cross to v1.5.2

Signed-off-by: Zongchun Yu <zongchun.yu@nxp.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-04-19 15:51:10 -04:00
Derek Straka
841dc6f3a2 irqbalance: update to 1.1.0
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-04-18 14:16:52 -04:00
Derek Straka
c50d09dd2f dev86: update to version 0.16.20
Also supress the warnings about executables being already stripped

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-04-18 14:16:52 -04:00
Derek Straka
6c5b15e21a seabios: update to version 1.9.1
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-04-18 14:16:52 -04:00
Jackie Huang
9536713ef4 python-m2crypto: Fix issue with swig 3.0.5
The version 0.22.3 of python-m2crypto fails to work after
swig updated to 3.0.5+:
AttributeError: 'module' object has no attribute 'PKCS5_SALT_LEN'

It's fixed since 0.22.4 and we could update it to latest version,
but docker-registry depends on the version 0.22.3, so backport
the patch to fix the issue with swig 3.0.5.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-04-05 11:15:15 -04:00
He Zhe
fc9dd8d0fc openvswitch: Fix ptest for v2.5
- Copy certain files from srcdir since it has been different from
  build directory.
- Copy more necessary files for new added test cases.
- Modify config files for running on target.
- Add necessary RDEPENDS

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-04-05 11:12:37 -04:00
Mark Asselstine
a715fe0d9f lxc: uprev to latest stable 1.1.4 -> 1.1.5
This is the latest stable release and includes many important bug
fixes as well as CVE fixes such as CVE-2015-1335.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-04-04 20:03:30 -04:00
Chris Patterson
637adee284 xen: deploy efi binary, if present
Signed-off-by: Chris Patterson <pattersonc@ainfosec.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-03-31 09:15:26 -04:00
Yunguo Wei
da65e83a39 libvirt: uprev to 1.3.2
Release notes here http://libvirt.org/news.html.

Signed-off-by: Yunguo Wei <yunguo.wei@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-03-31 09:15:25 -04:00
He Zhe
2bb28a781f openvswitch: Uprev to latest version 2.5.0
Uprev to git rev bb429e09f7783f1ba23ac0682ed9edf424f0cfbb (based on 2.5.0)

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-03-31 09:15:25 -04:00
Bogdan Purcareata
bffe56510c lxc: warning fixes in busybox template
Warnings fixes:
- optional mounts when dirs not available
- busybox dynamically linked
- fstab not available in container

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-03-29 12:35:41 -04:00
Derek Straka
7fce344fd2 xen: add the extra packages released with xen 4.7
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-03-29 12:32:36 -04:00
Derek Straka
033af14650 xen: add the flask policy to the set of files installed to the deploy directory
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-03-29 12:32:36 -04:00
Derek Straka
80d20f741c xen: add the ability to configure the name of the policy
When using non-release versions, the policy files may have a different name (xenpolicy-${PV}-unstable).  Allow the policy file name to be configured by the xen recipe.

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-03-29 12:32:36 -04:00
Derek Straka
e9bf6b81a0 xen: split the flask package into a policy and tools package
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-03-29 12:32:36 -04:00
Chris Patterson
60d87a0ad7 xen: add curl and gnutls to depends
Addresses QA warnings with regards to rdepends for xen-qemu.

Signed-off-by: Chris Patterson <pattersonc@ainfosec.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-03-24 11:31:53 -04:00
Chris Patterson
af49562964 xen: uprev to 4.6.1
Drop xsm fix backport, no longer required.

Signed-off-by: Chris Patterson <pattersonc@ainfosec.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-03-24 11:31:53 -04:00
Derek Straka
9128134535 ipxe: add cdr-tools-native to the list of depends
During the compile phase, ipxe needs to use mkisofs which is part of cdrtools

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-03-24 11:31:47 -04:00