Commit Graph

1195 Commits

Author SHA1 Message Date
Bruce Ashfield
4eee3730ff lxc: uprev to 1.0.7
lxc 1.0.7 is available, and integrates two patches that we were carrying
against 1.0.6 .. so we do the update, and drop the two busybox patches.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-01-20 14:16:19 -05:00
Wenzong Fan
c0423005b3 lxc: add PACKAGECONFIG for selinux
Add PACKAGECONFIG for 'selinux', otherwise there would be warnings like
below:

WARN: lxc: lxc rdepends on libselinux, but it isn't a build dependency?

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-12-03 10:19:56 -05:00
Bogdan Purcareata
c6b10c569d lxc: add unprivileged Busybox containers support
Integrate 2 upstream patches that enable creating unprivileged Busybox
containers.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-11-03 08:04:39 -05:00
Bogdan Purcareata
b0745517d1 lxc: fixup VPATH builds
Rework patch 5b57bf462b [lxc: fixup VPATH builds]
since the new version of LXC refactored one of the files and it no longer
applies. Provide a fix for what's left.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-10-02 22:57:10 -04:00
Bogdan Purcareata
246fc0bfaf lxc: Update version to 1.0.6
Also remove patch file that no longer applies.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-10-02 22:57:10 -04:00
Josep Puigdemont
7a7254d6d0 lxc: build API docs only when required
Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-10-01 00:58:39 -04:00
Alexey Firago
0bf1cabe6b criu: add recipe for v1.2 release
Building and basic functionality verified on Wandboard-dual
with linux-wandboard_3.10.17.

Signed-off-by: Alexey Firago <alexey_firago@mentor.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-09-19 11:14:47 -04:00
Chong Lu
f5d690a773 lxc: fix RDEPENDS on bash
Split a ${PN}-template pkg to put ${datadir}/lxc/templates/, and debash in
${datadir}/lxc/hooks/* since the checkbashisms shows there are no bashism, so
use /bin/sh.

checkbashisms is from devscripts package:
http://packages.ubuntu.com/trusty/devscripts

Bash scripts:
lxc/usr/share/lxc/hooks/mountcgroups:#!/bin/bash
lxc/usr/share/lxc/hooks/ubuntu-cloud-prep:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-debian:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-openmandriva:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-archlinux:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-centos:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-plamo:1:#!/bin/bash -eu
lxc/usr/share/lxc/templates/lxc-ubuntu-cloud:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-opensuse:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-gentoo:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-altlinux:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-sshd:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-ubuntu:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-cirros:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-busybox:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-fedora:1:#!/bin/bash

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-09-04 15:39:36 -04:00
Bruce Ashfield
b944551742 protobuf: fix build/source split for libdir fix
Ensure that we modify the libdir in the build directory, not the
source directory, to respect the splitting of source and build.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-08-27 15:07:22 -04:00
Zibo Zhao
5d8233a699 protobuf: fix ptest compile errors
While buiding protobuf ptest on Centos 6.4, the build
failed with errors:

...libprotobuf.so: undefined reference to `memcpy@GLIBC_2.14'

This is due to protobuf.pc still contains /usr/lib64
as libdir which are not good for cross compiling.
Replace it with proper sysroot path.

Signed-off-by: Zibo Zhao <Zibo.Zhao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-08-27 12:31:09 -04:00
Bruce Ashfield
a2fab33ace protobuf: respect autotools build/source split
Tweak the ptest build rule to look for artifacts in the build directory
instead of source, since build and source are split on the latest oe-core.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-08-22 15:40:23 -04:00
Keith Holman
d6ae4fc295 protobuf: add native package to solve self-dependency
The installation of Google Protocol Buffers python header files
requires the ability to run the "protoc" compiler on the host to
generate the Python header files.  This fix adds a native package
that builds Google Protocol Buffers for the host machine to provide
the compiler that is used to cross-compile the package for the target
machine.

Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-08-22 14:42:55 -04:00
Keith Holman
3cdfb6aac1 protobuf: add examples when test feature enabled
Google Protocol Buffers includes some basic example applications to
show its functionality.  This fix installs these examples to the
target system when the "test" feature is enabled in the configuration.

Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-08-22 14:42:55 -04:00
Keith Holman
124d4185c4 protobuf: replace spaces with tabs in recipe
The recipe uses 4 spaces instead of tabs when indenting.  The recipe
style guidelines indicate that tabs should be used instead.  This
simple fix replaces the spaces with tabs where appropriate in the
recipe file.

Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-08-22 14:42:55 -04:00
Keith Holman
7b424fa19e protobuf: add python support
The compiler generated by Google Protocol Buffers currently includes
support for Python bindings.  However, currently the python files
required to use the generated files are not included on the system.
This fix installs the python header files using python setup-tools
after the compiler is built.

Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-08-22 14:42:55 -04:00
Keith Holman
8bbaf80f47 protobuf: update google protocol buffers to 2.5.0
Upgrade Google Protocol Buffers to version 2.5.0.  The previous
version 2.4.1 is getting quite old (released April 2011).  The newer
version provides bug fixes and more functionality.  This version adds
some speed optimization and the ability to allow multiple enum
symbols to have the same value.

Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-08-22 14:42:55 -04:00
Maxin B. John
7605c820e4 lxc: Uprev to 1.0.5
Update lxc to latest available version: 1.0.5
Remove already upstreamed patches.

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-07-29 10:05:12 -04:00
Mark Asselstine
5b57bf462b lxc: fixup VPATH builds
Poky commit 69b6eaca3d9b635e8a61a0fdbd814b558e91901d [autotools:
Enable separate builddir by default] enforced separate build
directories, which is supported by automake. Unfortunately lxc had a
few make directives which didn't take into account VPATH builds so
fixing them up here to allow the lxc build to complete successfully.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-05-08 12:37:25 -04:00
Mihaela Sendrea
abf0288953 lxc: Update version to 1.0.1
Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-04-15 19:44:34 -04:00
Mihaela Sendrea
10edbcd8ca lxc: Add ptest support
Install lxc test suite and run it as ptest.

Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-04-15 19:44:34 -04:00
Bogdan Purcareata
f3498799a8 lxc: bug fixes from upstream
Adding a couple of upstream fixes for lxc:
- follow symlinks when determining if Busybox is statically linked
- don't fail for lxc.network.type = none
- don't fail if no default macvlan mode is specified

More details are available in the individual patches.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-04-01 20:51:49 -04:00
Josep Puigdemont
9c6a7d3739 Update Linux Containers to lxc-1.0.0
Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-28 10:43:21 -05:00
Bruce Ashfield
20accf6d7c lxc: add missing patch
As reported by Chris Larson, the recipe went in, but not the patch.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-18 14:42:02 -05:00
Josep Puigdemont
7499d6ce01 lxc: always strdup lxc.rootfs.mount
The reason is that the generic code which handles reading lxc.rootfs.mount
always frees the old value if not NULL. So without this setting
lxc.rootfs.mount = /mnt causes segfault.

This is a backport for lxc-0.9.0 (dora) of the same fix found in
upstream's master, see commits 54c30e29 and 53f3f048.

Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-11 14:29:04 -05:00
Bruce Ashfield
8515475890 lxc/autoconf:: allow subdir objects
autoconf-1.14 will fail to configure lxc with the following warning (and
hence error):

  | automake: warnings are treated as errors
  | src/lxc/Makefile.am:79: warning: source file '../include/openpty.c' is in a subdirectory,
  | src/lxc/Makefile.am:79: but option 'subdir-objects' is disabled

So we tell autoconf that subdir objects are fine .. and the issue is solved.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-01-31 15:44:19 -05:00
Mark Asselstine
65dd8be44e lxc: add missing inherit
lxc's configure script makes use of pkg-config so we need to inherit
pkgconfig or else we may see an error like

./configure: line 5315: syntax error near unexpected token `PYTHONDEV,'
./configure: line 5315: `      PKG_CHECK_MODULES(PYTHONDEV, python3 >= \
                     3.2,,AC_MSG_ERROR([You must install python3-dev]))'

during configure.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-12-18 16:15:48 -05:00
Christopher Larson
dd7091ee30 lxc: kill use of susv2 'head' args
Without enabling INCLUDE_SUSv2 in busybox, we need to use head's -n argument,
rather than -#.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-12-10 11:29:22 -05:00
Mark Asselstine
61f1cd9c44 lxc: correct use of PN vs. BPN to fix multilib builds
BPN should be used in place of PN otherwise the fetcher will attempt
to download a file with the multilib prefix,and fail, and S will not
be what is expected, causing patching and other failures.

Signed-off-by: Mark Asselstine <asselsm@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-11-24 00:05:56 -05:00
Bogdan Purcareata
ad150f5655 LXC: setup_netdev: re-read ifindex in LXC_NET_PHYS case
Patch to fix interface netns transition when
assigning a physical interface to a container.
Pushed to the upstream LXC repo, to be included
in future versions of LXC.

Further details in included patch description.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-11-15 00:00:27 -05:00
Jonatan Pålsson
7908efdb9c lxc: fixed URL for tarball
Signed-off-by: Jonatan Pålsson <jonatan.palsson@pelagicore.com>
2013-10-21 14:15:03 +01:00
Mark Asselstine
8b2a6e65c6 lxc: create lxc cache directory
Many LXC templates expect the cache directory to exist and use it without
necessarily checking if it exists. Normally the Makefile would create this
directory but since /var/cache is volatile we must use the volatile system to
create this directory at boot, or when the package is installed.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-07-13 23:06:12 -04:00
Joe Slater
98093ac9ab lxc: use four fields for PACAKGECONFIG[] info
To be safe, we specifiy all four possible fields
even if some trailing ones are null.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-05-24 21:01:32 -07:00
Joe Slater
156b6a6db1 lxc: specify distro
Do not query the host to find out our distro.  We specify the bitbake
variable ${DISTRO} in order to get the desired runtime default config file.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-05-24 21:01:24 -07:00
Bogdan Purcareata
1cbe97b642 lxc-clone: don't let LXC_PATH end in failure
This patch has been included in the upstream repo as the first
patch after LXC 0.9.0 release. Including it in meta-virtualization
for proper functioning of the lxc-clone command.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-05-17 09:47:19 -07:00
Bogdan Purcareata
583002d427 lxc-busybox: check when bind-mounting host libdirs
The patch checks bind mounting lib directories when starting a
busybox container on a 64bit platform. Some entries in the host
filesystem are not present but the busybox template expects them
to be there, and thus container start fails.

Please see further details in added patch description.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-05-15 08:46:09 -07:00
Bogdan Purcareata
c6af28f6e7 containers - lxc-template: enable chroot + chpasswd functionality for Busybox hosts
This patch enables installation of Buysbox containers on Busybox hosts.
Please see patch message for detailed information.

The patch has been submitted and accepted upstream by LXC maintainers.
The functionality hasn't made it to LXC 0.9.0, but will (most probably)
be included upstream in future releases of LXC.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-04-12 10:17:03 -07:00
Bogdan Purcareata
4d85e67ec2 lxc: remove noldconfig.patch, since it is no longer used
Patch is no longer needed since the removal of LXC 0.8.0 recipe.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-04-12 10:16:53 -07:00
Bruce Ashfield
c385ed6382 lxc: remove 0.8.0 recipe
LXC 0.9.0 has been added, we no longer need the 0.8.0 recipe, since
all functionality has been migrated

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-04-11 13:07:33 -07:00
Bogdan Purcareata
73809e88a2 lxc: Update LXC recipe to include config examples in main package
The patch configures the LXC recipe to include configuration examples
or containers in the default package - lxc, not in the documentation
one - lxc-doc.

By default, bitbake will split a specific package into multiple sections,
based on meaning - binaries, libraries, documentation, configs, etc. The
sections will then be assembled into individual packages, such as e.g lxc,
lxc-doc, lxc-dbg and so on. The packages are mutually exclusive with
respect to the sections they contain.

LXC installation provides several example configuration files for various
usage scenarios. The twist is that LXC build scripts place these config
examples in a relative path that is identified by bitbake as belonging to
documentation. This patch places these configuration files in the main
package, where they normally belong.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-04-11 13:07:27 -07:00
Bogdan Purcareata
6f1446097d lxc: Add disable udhcp patch to LXC recipe
The provided patch makes a modification to the LXC busybox template (the
template that creates a minimal container with Busybox).

This type of container will start the udhcpc service - the DHCP client - on
init. For an embedded Linux image, we might assume that the majority of
containers will have manual / static networking configuration on start.
Considering this, starting the udhcpc service by default is useless, since
the service will then has to be killed. The containers that use DHCP for
networking can start udhcpc after container boot, or alter the busybox
template locally to do so by default.

The patch deactivates the default start of the DHCP client on a Busybox
container init.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-04-11 13:07:22 -07:00
Bogdan Purcareata
4c111373fc lxc: Add LXC 0.9.0 recipe
Introducing the LXC 0.9.0 recipe.

Maintainer log for intermediate versions since LXC 0.8.0. This only contains
the major differences between versions. You may find the complete log on the
SourceForge LXC devel mailing list [1].

0.9.0.alpha1:
- Introduction of the new liblxc API
- Python bindings
- New tools:
   - lxc-device
   - lxc-start-ephemeral
   - python version of lxc-ls
- lxc.autodev support
- oracle template
- reworked lxc-attach
- /etc/lxc/lxc.conf configuration
- Switch to new docbook
- A lot of other improvements, new features and bugfixes

0.9.0.alpha2: bug fix for issue with 0.9.0.alpha1 - no significant changes

0.9.0.alpha3:
- Android support
- New lua binding
- User namespace support
- Oracle template
- Manpage updates
- POSIX shell support for most scripts
- Improved systemd support
- Various API improvements
- Logging improvements

0.9.0.rc1:
- Addition of -P option to all executables (to specify lxcpath)
- Rework of the cgroup handling code
- Rework of lxc-attach for userns
- Updates to the alpine, archlinux, opensuse, oracle and ubuntu
templates. Removal of the lenny template.
- Introduction of a new lxc.stopsignal option
- Introduction of a new lxc.kmsg option
- Various userns improvements
- New --host option in lxc-ps
- Introduction of a few examples lxc hooks
- Support for nested containers in lxc-ls
- Introduction of get_version in the C API.
- And a variety of bugfixes

0.9.0:
Feature changes include:
 - Support for ephemeral containers in lxc-clone
 - --clear-env/--keep-env support in lxc-attach
 - -n option to lxc-start-ephemeral
Everything else is bugfixes on top of rc1.
Tests done by maintainers:
 - Test build on my machine (up to date Ubuntu 13.04)
 - Test build on Launchpad (Ubuntu 12.04, 12.10 and 13.04)
 - Test build on an armhf board running Ubuntu 13.04
 - Test build for Android cross-compiling on my laptop
 - Ran our test suite on the x86 binaries
 - Ran a quick test (start/stop/info/wait) on Android
 - Tested the API and tools on ARM
 - Rebuilt all my local templates (~20 containers) on a variety of
   architectures (i386, amd64, armel and armhf)

[1] https://lists.sourceforge.net/lists/listinfo/lxc-develIntroducing the LXC 0.9.0 recipe.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-04-11 13:07:17 -07:00
David Nyström
7a62620ea0 Added LxC recipe from meta-fsl-ppc, curtesy of Matthew McClintock, Stuart Yoder
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 16:06:51 +01:00
David Nyström
02e4046656 Added CRIU recipe
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 15:32:30 +01:00
David Nyström
fec87b0598 Added protobuf criu dependency
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 15:32:30 +01:00
David Nyström
0d31f84484 Added protobuf-c criu dependency
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 15:32:30 +01:00