diff options
| -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 00000000..5edff468 --- /dev/null +++ b/recipes-containers/lxc/files/noldconfig.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | From a8aa8d131a7140d5625c24c9f4c28c605213552c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Andrey Mazo <ahippo@yandex.ru> | ||
| 3 | Date: Fri, 18 May 2012 21:11:22 +0400 | ||
| 4 | Subject: [PATCH] Avoid ldconfig due to cross-compilation problems. | ||
| 5 | |||
| 6 | Make required symlinks manually. | ||
| 7 | Otherwise, it cases problems on cbuild endianness != ctarget endianness | ||
| 8 | setups 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 | |||
| 13 | diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am | ||
| 14 | index 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 | -- | ||
| 28 | 1.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 @@ | |||
| 1 | DESCRIPTION = "lxc aims to use these new functionnalities to provide an userspace container object" | ||
| 2 | SECTION = "console/utils" | ||
| 3 | LICENSE = "GPLv2" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24" | ||
| 5 | PRIORITY = "optional" | ||
| 6 | PR = "r2" | ||
| 7 | DEPENDS = "libxml2 libcap" | ||
| 8 | RDEPENDS_${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 | |||
| 24 | SRC_URI = "http://lxc.sourceforge.net/download/lxc/${PN}-${PV}.tar.gz \ | ||
| 25 | file://noldconfig.patch \ | ||
| 26 | " | ||
| 27 | SRC_URI[md5sum] = "7304fa57146ce687f749b5df876bb20d" | ||
| 28 | SRC_URI[sha256sum] = "eac833730b94e423d4bef6834bc4a716437d2abd6ab8b24334c506aaaa08692c" | ||
| 29 | |||
| 30 | S = "${WORKDIR}/${PN}-${PV}" | ||
| 31 | |||
| 32 | PACKAGECONFIG ??= "" | ||
| 33 | PACKAGECONFIG[doc] = "--enable-doc,--disable-doc" | ||
| 34 | PACKAGECONFIG[rpath] = "--enable-rpath,--disable-rpath" | ||
| 35 | PACKAGECONFIG[apparmour] = "--enable-apparmor,--disable-apparmor,apparmor,apparmor" | ||
| 36 | |||
| 37 | inherit autotools | ||
| 38 | |||
| 39 | FILES_${PN}-dbg += "${libexecdir}/lxc/.debug" | ||
