diff options
author | David Nyström <david.nystrom@enea.com> | 2012-12-06 14:02:18 +0100 |
---|---|---|
committer | David Nyström <david.nystrom@enea.com> | 2012-12-07 16:06:51 +0100 |
commit | 7a62620ea09f01c1f2a730cbb1264202276f2b87 (patch) | |
tree | 76bf81f7563c6fedfd6a44835375e029a25b2884 /recipes-containers/lxc | |
parent | c83fd72a864acdaf4f9790dbfd14c153ac0a1d4f (diff) |
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>
Diffstat (limited to 'recipes-containers/lxc')
-rw-r--r-- | recipes-containers/lxc/files/noldconfig.patch | 29 | ||||
-rw-r--r-- | recipes-containers/lxc/lxc_0.8.0.bb | 39 |
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 0000000..5edff46 --- /dev/null +++ b/recipes-containers/lxc/files/noldconfig.patch @@ -0,0 +1,29 @@ +From a8aa8d131a7140d5625c24c9f4c28c605213552c Mon Sep 17 00:00:00 2001 +From: Andrey Mazo <ahippo@yandex.ru> +Date: Fri, 18 May 2012 21:11:22 +0400 +Subject: [PATCH] Avoid ldconfig due to cross-compilation problems. + +Make required symlinks manually. +Otherwise, it cases problems on cbuild endianness != ctarget endianness +setups because /sbin/ldconfig expects elf header in the wrong endianness. +--- + src/lxc/Makefile.am | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am +index 1c26952..3b84c1a 100644 +--- a/src/lxc/Makefile.am ++++ b/src/lxc/Makefile.am +@@ -125,8 +125,8 @@ lxc_kill_SOURCES = lxc_kill.c + + install-exec-local: install-soPROGRAMS + mv $(DESTDIR)$(libdir)/liblxc.so $(DESTDIR)$(libdir)/liblxc.so.$(VERSION) +- /sbin/ldconfig -l $(DESTDIR)$(libdir)/liblxc.so.$(VERSION) + cd $(DESTDIR)$(libdir); \ ++ ln -sf liblxc.so.$(VERSION) liblxc.so.$(firstword $(subst ., ,$(VERSION))); \ + ln -sf liblxc.so.$(firstword $(subst ., ,$(VERSION))) liblxc.so + + uninstall-local: +-- +1.7.3.4 + 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 0000000..c662cb1 --- /dev/null +++ b/recipes-containers/lxc/lxc_0.8.0.bb @@ -0,0 +1,39 @@ +DESCRIPTION = "lxc aims to use these new functionnalities to provide an userspace container object" +SECTION = "console/utils" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24" +PRIORITY = "optional" +PR = "r2" +DEPENDS = "libxml2 libcap" +RDEPENDS_${PN} = " \ + rsync \ + gzip \ + libcap-bin \ + bridge-utils \ + dnsmasq \ + perl-module-strict \ + perl-module-getopt-long \ + perl-module-vars \ + perl-module-warnings-register \ + perl-module-exporter \ + perl-module-constant \ + perl-module-overload \ + perl-module-exporter-heavy \ +" + +SRC_URI = "http://lxc.sourceforge.net/download/lxc/${PN}-${PV}.tar.gz \ + file://noldconfig.patch \ + " +SRC_URI[md5sum] = "7304fa57146ce687f749b5df876bb20d" +SRC_URI[sha256sum] = "eac833730b94e423d4bef6834bc4a716437d2abd6ab8b24334c506aaaa08692c" + +S = "${WORKDIR}/${PN}-${PV}" + +PACKAGECONFIG ??= "" +PACKAGECONFIG[doc] = "--enable-doc,--disable-doc" +PACKAGECONFIG[rpath] = "--enable-rpath,--disable-rpath" +PACKAGECONFIG[apparmour] = "--enable-apparmor,--disable-apparmor,apparmor,apparmor" + +inherit autotools + +FILES_${PN}-dbg += "${libexecdir}/lxc/.debug" |