summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Nyström <david.nystrom@enea.com>2012-12-06 14:02:18 +0100
committerDavid Nyström <david.nystrom@enea.com>2012-12-07 16:06:51 +0100
commit7a62620ea09f01c1f2a730cbb1264202276f2b87 (patch)
tree76bf81f7563c6fedfd6a44835375e029a25b2884
parentc83fd72a864acdaf4f9790dbfd14c153ac0a1d4f (diff)
downloadmeta-virtualization-7a62620ea09f01c1f2a730cbb1264202276f2b87.tar.gz
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>
-rw-r--r--recipes-containers/lxc/files/noldconfig.patch29
-rw-r--r--recipes-containers/lxc/lxc_0.8.0.bb39
2 files changed, 68 insertions, 0 deletions
diff --git a/recipes-containers/lxc/files/noldconfig.patch b/recipes-containers/lxc/files/noldconfig.patch
new file mode 100644
index 00000000..5edff468
--- /dev/null
+++ b/recipes-containers/lxc/files/noldconfig.patch
@@ -0,0 +1,29 @@
1From a8aa8d131a7140d5625c24c9f4c28c605213552c Mon Sep 17 00:00:00 2001
2From: Andrey Mazo <ahippo@yandex.ru>
3Date: Fri, 18 May 2012 21:11:22 +0400
4Subject: [PATCH] Avoid ldconfig due to cross-compilation problems.
5
6Make required symlinks manually.
7Otherwise, it cases problems on cbuild endianness != ctarget endianness
8setups because /sbin/ldconfig expects elf header in the wrong endianness.
9---
10 src/lxc/Makefile.am | 2 +-
11 1 files changed, 1 insertions(+), 1 deletions(-)
12
13diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am
14index 1c26952..3b84c1a 100644
15--- a/src/lxc/Makefile.am
16+++ b/src/lxc/Makefile.am
17@@ -125,8 +125,8 @@ lxc_kill_SOURCES = lxc_kill.c
18
19 install-exec-local: install-soPROGRAMS
20 mv $(DESTDIR)$(libdir)/liblxc.so $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
21- /sbin/ldconfig -l $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
22 cd $(DESTDIR)$(libdir); \
23+ ln -sf liblxc.so.$(VERSION) liblxc.so.$(firstword $(subst ., ,$(VERSION))); \
24 ln -sf liblxc.so.$(firstword $(subst ., ,$(VERSION))) liblxc.so
25
26 uninstall-local:
27--
281.7.3.4
29
diff --git a/recipes-containers/lxc/lxc_0.8.0.bb b/recipes-containers/lxc/lxc_0.8.0.bb
new file mode 100644
index 00000000..c662cb19
--- /dev/null
+++ b/recipes-containers/lxc/lxc_0.8.0.bb
@@ -0,0 +1,39 @@
1DESCRIPTION = "lxc aims to use these new functionnalities to provide an userspace container object"
2SECTION = "console/utils"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
5PRIORITY = "optional"
6PR = "r2"
7DEPENDS = "libxml2 libcap"
8RDEPENDS_${PN} = " \
9 rsync \
10 gzip \
11 libcap-bin \
12 bridge-utils \
13 dnsmasq \
14 perl-module-strict \
15 perl-module-getopt-long \
16 perl-module-vars \
17 perl-module-warnings-register \
18 perl-module-exporter \
19 perl-module-constant \
20 perl-module-overload \
21 perl-module-exporter-heavy \
22"
23
24SRC_URI = "http://lxc.sourceforge.net/download/lxc/${PN}-${PV}.tar.gz \
25 file://noldconfig.patch \
26 "
27SRC_URI[md5sum] = "7304fa57146ce687f749b5df876bb20d"
28SRC_URI[sha256sum] = "eac833730b94e423d4bef6834bc4a716437d2abd6ab8b24334c506aaaa08692c"
29
30S = "${WORKDIR}/${PN}-${PV}"
31
32PACKAGECONFIG ??= ""
33PACKAGECONFIG[doc] = "--enable-doc,--disable-doc"
34PACKAGECONFIG[rpath] = "--enable-rpath,--disable-rpath"
35PACKAGECONFIG[apparmour] = "--enable-apparmor,--disable-apparmor,apparmor,apparmor"
36
37inherit autotools
38
39FILES_${PN}-dbg += "${libexecdir}/lxc/.debug"