Commit Graph

790 Commits

Author SHA1 Message Date
Christopher Clark
140c6836ed vgabios : extract biossums tool and build it separately, native
The biossums tool is used to generate the vgabios build product.

This patch:
* adds a separate recipe "biossums" for the tool
* makes the vgabios recipe depend upon biossums-native
* makes the vgabios recipe use the native binary rather than a locally built one

The upstream source tarball contains binaries so these are removed
before compiling proceeds.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-24 09:55:40 -04:00
Mark Asselstine
aecdc17e0d lxc: fix build failure, failing QA check
The build is failing due to a failing QA check:

  ERROR: lxc-2.0.8-r0 do_package_qa: QA Issue:
  /usr/lib/lxc/ptest/src/tests/lxc-test-may-control contained in
  package lxc-ptest requires /bin/bash, but no providers found in
  RDEPENDS_lxc-ptest? [file-rdeps]

Add bash to the the ptest RDEPENDS.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-24 09:55:38 -04:00
Bruce Ashfield
7b3b082eca kernel: drop linux-yocto-4.1 bbappend
The 4.1 kernel is no longer in oe-core, so we can drop our bbappend.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-21 08:36:46 -04:00
Jason Wessel
edfd6b431c go-systemd: Fix QA dependency problem
ERROR: go-systemd-4+gitb4a58d95188dd092ae20072bac14cece0e67c388-r0
do_package_qa: QA Issue:
/usr/local/go/src/github.com/coreos/go-systemd/test contained in
package go-systemd requires /bin/bash, but no providers found in
RDEPENDS_go-systemd? [file-rdeps]

Resolved with proper dependency to bash.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-22 22:39:33 -04:00
Mark Asselstine
65fef58b02 openvswitch: force PYTHON to python3
Openvswitch has been created to search for and use both py2 and py3,
with a preference for py2. There is no configure option to force the
use of py3 only, and many of the scripts only use the value of PYTHON
and not PYTHON3 (again there is a general preference for py2). In
order to force this issue we set PYTHON to 'python3'. This isn't ideal
but allows for the desired outcome without us having to carry changes
against upstream OVS.

During our py3 work with OVS this change was identified but for some
reason was not included as part of the already merged changes.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-22 11:25:28 -04:00
Chen Qi
f06b48c2c8 openvswitch: add libcap-ng PACKAGECONFIG
Add PACKAGECONFIG for libcap-ng, and default to enable it.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-17 11:51:59 -04:00
Christopher Clark
9e84be6360 xen: remove STAGING_DIR_HOST from the runtime search path for bios.bin
This configuration option sets a run-time search path rather
than the location of a build-time dependency.

Tested with Xen 4.9 on OpenXT.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-17 11:51:56 -04:00
Bruce Ashfield
56cb449b6a xen: remove 4.8 recipe
We have 4.9 in the tree, so we no longer need the 4.8 variant.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-14 12:06:23 -04:00
Adrian Dudau
faa16f7ede python-itsdangerous: Drop recipe
Same version of the recipe is maintained in meta-python, no need to
keep a duplicate here.

Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-14 12:03:12 -04:00
Adrian Dudau
b6f7f158cb python-simplejson: Drop recipe
Newer version of the recipe (v3.11.1) is already maintained in
meta-python and I couldn't find any hard dependencies on the current
version.

Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-14 12:03:11 -04:00
Christopher Clark
54e3183276 xen: add recipe for Xen 4.9.0
Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-14 12:03:03 -04:00
Christopher Clark
bd7cfb39bd xen: Package .pc packageconfig files into dev packages
Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-14 12:03:03 -04:00
Christopher Clark
4c32ef8ba1 xen: Package libxendevicemodel, introduced in Xen 4.9
Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-14 12:03:02 -04:00
Chen Qi
bca5037e5d openvswitch: fix dpdk PACKAGECONFIG
Add dpdk as a runtime dependency when 'dpdk' PACKAGECONFIG is enabled.

Also, introduce a variable DPDK_INSTALL_DIR, and default it to /opt/dpdk.
This is because users might install DPDK into different locations,
e.g. /usr. And it would easy for users to override this variable
to make openvswitch build with dpdk correctly.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-03 23:47:49 -04:00
Fupan Li
4eee02bd64 meta-virtualization: Drop ROOTFS_PKGMANAGE_BOOTSTRAP
OE-Core has now dropped this var in the commit of
697804229a17<run-postinsts: simplify the logic of
whether to install it to images>.

Signed-off-by: Fupan Li <fupan.li@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-03 23:47:21 -04:00
Robert Yang
0a64d42d45 cloud-image-guest/controller: remove inherit image-vm
The image-vm.bbclass had been removed by oe-core, and vmdk is replaced
by wic.vmdk.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-03 23:47:07 -04:00
Adrian Dudau
87b4527787 python-six: Drop recipe
Same recipe is maintained in oe-core, no need to keep a duplicate here.

Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-03 23:46:10 -04:00
Jan Kiszka
871962e231 kernel-features: Fix CONFIG_BLK_CGROUP enabling
Meanwhile, this became boolean, and trying to make it a module just
leaves it off.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-25 09:08:56 -04:00
Jan Kiszka
de50b56087 docker: Fix and update sysvinit script
Fix daemonization, align args with docker.service, fix line breaks in
log file - and fix INITSCRIPT_PARAMS (there is no variable
OS_DEFAULT_INITSCRIPT_PARAMS).

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-17 15:48:43 -04:00
Jan Kiszka
be934f72d2 lxc: Fix INITSCRIPT_PARAMS value
Analogously to docker: There is no variable
OS_DEFAULT_INITSCRIPT_PARAMS, just use "defaults".

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-17 15:48:43 -04:00
Bruce Ashfield
3b9dbb0075 containerd: uprev to latest 0.2.x
To match the docker (moby) and runc updates, we need the latest containerd
from the 0.2.x branch to work in cooperation with the other components.

Note: containerd master won't currently work with docker master, but is
very similar to 0.2.x. The build target varies slightly in master, but
otherwise with these changes to the recipe and build steps we can switch
easily when the time comes.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-17 14:02:50 -04:00
Bruce Ashfield
e4d0007121 docker: update version string to 17.06.0
The docker uprev missed the version string which matches the actual
binary being built. With this change, the package now reflects the
correct version.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-17 14:01:57 -04:00
Bruce Ashfield
b7e1fc9745 oci-runtime-tools: skip ld checks
The latest oci-runtime-tool builds are throwing the missing GNU_HASH
error during QA checks.

This is common with go applications, and isn't a problem, so for now,
we simply skip the check.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-13 22:37:35 -04:00
Jason Wessel
a31f735bda oci-runtime-tools, oci-runtime-spec: Uprev to runc 1.0-rc3 versions
The config.json has elements which have changed in the latest runc.
These changes are not backward compatible with older versions of runc.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-13 13:53:58 -04:00
Jason Wessel
cc3d8b9268 oci-systemd-hook: Uprev hook to latest
The selinux disable patch required changes as more setfilecon
operations were added.

The new upstream work is needed to allow the rootfs specification to
continue working because runc no longer passes the "root" key as a
part of the json configuration which is sent to a hook via stdin.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-13 13:53:58 -04:00
Jason Wessel
3c435ae8f0 docker: Uprev to latest based on runc 1.0-rc3
The build method for docker client changed where by the docker cli is
now required to be pulled in from a separate git tree to be built.

The integration patch to cross compile was also upreved since some
parts of it were accepted upstream while other parts have not been
accepted at this time.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-13 13:53:58 -04:00
Jason Wessel
11fac209f2 runc-docker: Add --console-socket=/dev/null
This allows for setting up a detached session where you do not want to
set the terminal to false in the config.json.  More or less this is a
runtime override.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-13 13:53:57 -04:00
Jason Wessel
d2dbd7d8d2 runc-docker: Uprev to 1.0-rc3+
Uprev to pick up latest changes in docker-runc.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-13 13:53:57 -04:00
Mark Asselstine
f0f0453984 openvswitch: backport py3 fixups
While attempting to get ovs to be built and run with py3 (completely
free of py2) host contamination was found (builds on hosts without
python-six installed would fail). It was also determined that pyc
files were still being generated with py2 and not py3. This resulted
in more work being done to achieve the desired results. This work was
sent upstream and subsequently merged. Unfortunately this didn't make
v2.7.1 and may not be available until the next major release, so here
we backport these commits and adjust the recipe to get a clean py3
only build.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-13 10:54:49 -04:00
Mark Asselstine
165ffabe89 openvswitch: uprev to v2.7.1
Released at the end of June 2017 this is a bugfix release with no
major functional changes. Surprisingly the patch for CVE-2017-9263 is
still not applied upstream so we continue to carry this change.

The remaining patches were audited and cleaned up as needed.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-13 10:54:49 -04:00
Bruce Ashfield
3ac773e4c7 docker: make fragment standalone
Importing the docker configuratino fragment from meta-overc, which
adds options and capabilities to allow container to start out of
the box.

Note: There are more options that could be added here, but many of
them are decision of the distro and depend on runtime configuration
choices. So to balance the size of the build and leave decisions
where they belong, we keep this as small as possible.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-10 12:18:57 -04:00
brian avery
77fd5be8b6 docker: add NETFILTER_XT_MATCH_ADDRTYPE=m
Docker needs ths _NETFILTER_XT_MATCH_ADDRTYPE module in order to start
up successfully. This patch adds it to the supported kernels.

Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-10 12:18:09 -04:00
Adrian Dudau
88277c8496 python-requests: Drop recipe
There's a newer recipe (v2.13) maintained in meta-python. meta-openstack
explicitly prefers that version over this one, so no point in keeping
this recipe since nobody else is using this version.

Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-10 11:47:37 -04:00
Yi Zhao
e30aaeec26 diod: add new recipe
diod is a multi-threaded, user space file server that speaks 9P2000.L
protocol.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-06-27 13:24:12 -04:00
He Zhe
95013501dc lxc: add gmp libidn gnutls nettle rdepends
Fix the following QA warnings:
QA Issue: lxc rdepends on gmp, but it isn't a build dependency,
missing gmp in DEPENDS or PACKAGECONFIG? [build-deps]
QA Issue: lxc rdepends on libidn, but it isn't a build dependency,
missing libidn in DEPENDS or PACKAGECONFIG? [build-deps]
QA Issue: lxc rdepends on gnutls, but it isn't a build dependency,
missing gnutls in DEPENDS or PACKAGECONFIG? [build-deps]
QA Issue: lxc rdepends on nettle, but it isn't a build dependency,
missing nettle in DEPENDS or PACKAGECONFIG? [build-deps]

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-06-27 13:24:03 -04:00
He Zhe
2631bf14e6 criu: add bash rdepends
Fix the following QA warning:
QA Issue: /usr/libexec/criu/scripts/systemd-autofs-restart.sh contained
in package criu requires /bin/bash, but no providers found in
RDEPENDS_criu? [file-rdeps]

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-06-27 13:23:56 -04:00
He Zhe
a1c49287a8 criu: add libbsd rdepends
Fix the following QA warning:
QA Issue: criu rdepends on libbsd, but it isn't a build dependency? [build-deps]

This had been fixed by 1fd94d8535,
but then was overwritten by b9b7ece0cd

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-06-27 13:23:37 -04:00
Bruce Ashfield
b44a92c0f3 devtools: remove protobuf*
The protobuf recipes are in meta-oe, and were only here to support
higher order virtualization tasks.

Dropping the recipes and we'll use the ones directly from meta-oe,
since the versions and compatibility should be fine.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-06-27 13:19:54 -04:00
Mark Asselstine
c1b428f3d2 python3-twisted: temporarily add recipe
This will eventually be available in meta-openembedded so will be able
to be reverted. This will allow us to use openvswitch with python3 in
the interim.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-06-22 10:48:26 -04:00
Anselmo L. S. Melo
430233eb6e docker: Remove libtrust from dependencies
According to https://github.com/docker/libtrust, this repo is now deprecated
and the library was integrated in the docker-distribution repository.

Signed-off-by: Anselmo L. S. Melo <anselmo.melo@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-06-21 14:25:17 -04:00
Mark Asselstine
e86ae39489 openvswitch: switch to depending on python3
As far as I can tell openvswitch has been updated to work with python3
as well as with python(2). Switch to depend on python3 and use python3
for associated scripts. For the most part openvswitch will bind at
runtime to either py2 or py3 regardless of these changes, with these
changes we just do a better job of setting up the dependencies to
facilitate py3 bindings. The openvswitch autotests results are mostly
identical before and after this switch (failures move from python3 to
python(2) test cases as expected, with some exceptions see below).

When running the autotests/ptest with python(2) vs python3 we see a
slightly higher failure rate (334 failures vs. 284 failures). I do not
believe this higher fail rate reflects actual errors in the runtime,
rather the tests are not adapted to python3. At any rate like the rest
of openvswitch it is fairly straightforward to hack the logic for
autotests to be run using py2 as long as it is available in the image,
so these changes don't prevent falling back to py2 for autotests. This
should facilitate any debugging we need to do based on us switching to
favor py3.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-06-21 14:25:14 -04:00
Mark Asselstine
b263370eeb openvswitch: add missing dependencies required for ptest
On a minimally provisioned rootfs the tests are currently getting
'stuck' after running for a few minutes because 'find' and 'which' are
not being found. Add these to the ptest package RDEPENDS to ensure
they are present in the rootfs.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-06-21 14:25:11 -04:00
Mark Asselstine
6987659825 lxc: temporary workaround for gcc 7 issue
gcc 7 has a bug:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=11672
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78969

In order to avoid the build failure that this causes we reduce the
range by one. Better to have a slight reduction in the range than
having nobody to be able to build and use lxc.

Once gcc is fixed this can be reverted.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-06-19 08:37:25 -04:00
Huang Qiyu
e73608d56e lxc: 2.0.0 -> 2.0.8
1)Upgrade lxc from 2.0.0 to 2.0.8.

2)Delete two patches, since it is integrated upstream.
  Delete Generate-lxc-restore-net-properly.patch,this script has already been rearchitected out of existence by cba98d127bf490b018a016b792ae05fd2d29c5ee

  Delete Use-AC_HEADER_MAJOR-to-detect-major-minor-makedev.patch,this script has already been rearchitected out of existence by af6824fce9c9536fbcabef8d5547f6c486f55fdf from git://github.com/lxc/lxc.git

3)Modify two patches, since the data has been changed.
  automake-ensure-VPATH-builds-correctly.patch
  runtest.patch

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-06-13 18:26:15 -04:00
Fan Xin
3c427eafce openvswitch: Fix CVE-2017-9263
Backport patch file to fix CVE-2017-9263

Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-06-13 18:26:15 -04:00
Bruce Ashfield
3e1d16db4a oci-image-tools: update to latest and fix symlink issues
Updating to the latest oci-image-tools for better support in unpack/creating
runtime bundles.

With this update, we get a single tool with subcommands, versus separate
commands previously.

We also add two proposed (but not merged) patches that can deal with existing
symlinks when unpacking layers. Without this, we fail to unpack many complex
containers due to duplicate files in layers.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-06-06 23:44:34 -04:00
Iurii Mykhalskyi
dd49614c70 xen: Fix mistype error in xen-watchdog systemd service
Due to error in naming this service will not be autoenabled in
systems with systemd init manager

Signed-off-by: Iurii Mykhalskyi <iurii.mykhalskyi@globallogic.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-04-30 23:20:15 -04:00
Mark Asselstine
b69f147839 libvirt: add DEPENDS for libdevmapper
Commit 8709d4504c35817ef1d7181b47ba96c3ca0c949e [lvm2: separate
libdevmapper to avoid circular dependency] in meta-oe meant that our
build would fail with

  checking for libdevmapper.h... no
  configure: error: You must install device-mapper-devel/libdevmapper >= 1.0.0 to compile libvirt

Add the required DEPENDS for libdevmapper to get the build working as
it did prior to this meta-oe change.

NOTE: our previous dependency on lvm2 was not only to get libdevmapper
functionality, so lvm2 remains a valid DEPENDS, so is left in place.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-04-27 16:37:59 -04:00
Mark Asselstine
d3c6004e92 criu: force python to install in ${libdir}
Historically Yocto installs python modules in ${libdir} and not the
no-arch variant. The criu install was following every other distros
use of the non-arch variant, /usr/lib, which was being picked up by
the QA check. Modify the criu Makefile to enable us to overwrite this
location by using setup.py's install-lib directive.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-04-24 22:51:29 -04:00
Mark Asselstine
76c38f219d criu: depend on util-linux-native
To provide hexdump which is used as part of the build process. Resolves

| criu/pie/../../scripts/gen-offsets.sh: line 37: hexdump: command not found
| criu/pie/Makefile:96: recipe for target 'criu/pie/parasite-blob.h' failed

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-04-24 22:51:29 -04:00