summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dmitry_eremin@mentor.com>2015-04-09 23:01:48 +0300
committerBruce Ashfield <bruce.ashfield@windriver.com>2015-04-11 00:20:49 -0400
commit23e15f52a09ae506b2bab1bb2dbdc690116e521b (patch)
treee3a5f41262e8c8c7e8132b94341e23d8d9b7891f
parent3ba78da0d3637ae4f7699105ed00e8505a537d44 (diff)
downloadmeta-virtualization-23e15f52a09ae506b2bab1bb2dbdc690116e521b.tar.gz
lxc: fix building when B != S
If lxc is built not in the source dir, upstart files will fail to be installed, because of Makefile error. Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r--recipes-containers/lxc/files/lxc-fix-B-S.patch17
-rw-r--r--recipes-containers/lxc/lxc_1.0.7.bb1
2 files changed, 18 insertions, 0 deletions
diff --git a/recipes-containers/lxc/files/lxc-fix-B-S.patch b/recipes-containers/lxc/files/lxc-fix-B-S.patch
new file mode 100644
index 00000000..3822655e
--- /dev/null
+++ b/recipes-containers/lxc/files/lxc-fix-B-S.patch
@@ -0,0 +1,17 @@
1Index: lxc-1.0.7/config/init/upstart/Makefile.am
2===================================================================
3--- lxc-1.0.7.orig/config/init/upstart/Makefile.am
4+++ lxc-1.0.7/config/init/upstart/Makefile.am
5@@ -3,9 +3,9 @@ EXTRA_DIST = lxc.conf lxc-instance.conf
6 if INIT_SCRIPT_UPSTART
7 install-upstart: lxc.conf lxc-instance.conf lxc-net.conf
8 $(MKDIR_P) $(DESTDIR)$(sysconfdir)/init/
9- $(INSTALL_DATA) lxc.conf $(DESTDIR)$(sysconfdir)/init/
10- $(INSTALL_DATA) lxc-instance.conf $(DESTDIR)$(sysconfdir)/init/
11- $(INSTALL_DATA) lxc-net.conf $(DESTDIR)$(sysconfdir)/init/
12+ $(INSTALL_DATA) $(srcdir)/lxc.conf $(DESTDIR)$(sysconfdir)/init/
13+ $(INSTALL_DATA) $(srcdir)/lxc-instance.conf $(DESTDIR)$(sysconfdir)/init/
14+ $(INSTALL_DATA) $(srcdir)/lxc-net.conf $(DESTDIR)$(sysconfdir)/init/
15
16 uninstall-upstart:
17 rm -f $(DESTDIR)$(sysconfdir)/init/lxc.conf
diff --git a/recipes-containers/lxc/lxc_1.0.7.bb b/recipes-containers/lxc/lxc_1.0.7.bb
index 55da522f..0da1e37f 100644
--- a/recipes-containers/lxc/lxc_1.0.7.bb
+++ b/recipes-containers/lxc/lxc_1.0.7.bb
@@ -31,6 +31,7 @@ SRC_URI = "http://linuxcontainers.org/downloads/${BPN}-${PV}.tar.gz \
31 file://document-lxc.rebootsignal.patch \ 31 file://document-lxc.rebootsignal.patch \
32 file://lxc-busybox-use-lxc.rebootsignal-SIGTERM.patch \ 32 file://lxc-busybox-use-lxc.rebootsignal-SIGTERM.patch \
33 file://ppc-add-seccomp-support-for-lxc.patch \ 33 file://ppc-add-seccomp-support-for-lxc.patch \
34 file://lxc-fix-B-S.patch \
34 " 35 "
35 36
36SRC_URI[md5sum] = "b48f468a9bef0e4e140dd723f0a65ad0" 37SRC_URI[md5sum] = "b48f468a9bef0e4e140dd723f0a65ad0"