diff options
-rw-r--r-- | recipes-tools/lxc/lxc_0.8.0-rc1.bb | 34 | ||||
-rw-r--r-- | recipes-tools/lxc/noldconfig.patch | 29 |
2 files changed, 63 insertions, 0 deletions
diff --git a/recipes-tools/lxc/lxc_0.8.0-rc1.bb b/recipes-tools/lxc/lxc_0.8.0-rc1.bb new file mode 100644 index 0000000..d5e145f --- /dev/null +++ b/recipes-tools/lxc/lxc_0.8.0-rc1.bb @@ -0,0 +1,34 @@ +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" +DEPENDS = "libxml2 libcap" +RDEPENDS_${PN} = " \ + rsync \ + gzip \ + libcap-bin \ + 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] ="06ceecf4dbe1be988fc903ad8dd34d29" +SRC_URI[sha256sum] = "32bf83902c07387646c55de440d6d12cf61bd54c97417109c2d1ac47d17cb911" + +S = "${WORKDIR}/${PN}-${PV}" + +EXTRA_OECONF = "--disable-doc --disable-rpath" + +inherit autotools + +FILES_${PN}-dbg += "${libexecdir}/lxc/.debug" diff --git a/recipes-tools/lxc/noldconfig.patch b/recipes-tools/lxc/noldconfig.patch new file mode 100644 index 0000000..5edff46 --- /dev/null +++ b/recipes-tools/lxc/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 + |