Skip to contentSkip to conversation

lxc recipe changes

PATCH New Joe Slater 1 participant 3 messages May 24, 2013

lore
Share & tools
lore

Joe Slater

author
#0 lore raw

cover lxc recipe changes

Guessing a default.conf based on distro is problemmatic, but we certainly do not want the guess based on the host, which is what will happen if we do not specify it.

Joe Slater (2):
lxc: specify distro
lxc: use four fields for PACAKGECONFIG[] info

 recipes-containers/lxc/lxc_0.9.0.bb |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
Signature · 1 line
1.7.3.4
author
#1 lore raw

PATCH 1/2 lxc: specify distro

CQID: 418191

Do not query the host to find out our distro. We
specify the bitbake variable ${DISTRO} in order
to get the desired runtime default config file.

---
 recipes-containers/lxc/lxc_0.9.0.bb |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
recipes-containers/lxc/lxc_0.9.0.bb +5 -1
index 63ce2d6..1db6d40 100644
@@ -3,7 +3,7 @@ SECTION = "console/utils"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
 PRIORITY = "optional"
-PR = "r1"
+PR = "r2"
 DEPENDS = "libxml2 libcap"
 RDEPENDS_${PN} = " \
 		rsync \
@@ -30,6 +30,10 @@ SRC_URI[sha256sum] = "1e1767eae6cc5fbf892c0e193d25da420ba19f2db203716c38f7cdea3b
 
 S = "${WORKDIR}/${PN}-${PV}"
 
+# Let's not configure for the host distro.
+#
+EXTRA_OECONF += "--with-distro=${DISTRO}"
+
 PACKAGECONFIG ??= ""
 PACKAGECONFIG[doc] = "--enable-doc,--disable-doc"
 PACKAGECONFIG[rpath] = "--enable-rpath,--disable-rpath"
Signature · 1 line
1.7.3.4
author
#2 lore raw

PATCH 2/2 lxc: use four fields for PACAKGECONFIG[] info

In reply to Joe Slater

To be safe, we specifiy all four possible fields
even if some trailing ones are null.

---
 recipes-containers/lxc/lxc_0.9.0.bb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
recipes-containers/lxc/lxc_0.9.0.bb +2 -2
index 1db6d40..1e36dd9 100644
@@ -35,8 +35,8 @@ S = "${WORKDIR}/${PN}-${PV}"
 EXTRA_OECONF += "--with-distro=${DISTRO}"
 
 PACKAGECONFIG ??= ""
-PACKAGECONFIG[doc] = "--enable-doc,--disable-doc"
-PACKAGECONFIG[rpath] = "--enable-rpath,--disable-rpath"
+PACKAGECONFIG[doc] = "--enable-doc,--disable-doc,,"
+PACKAGECONFIG[rpath] = "--enable-rpath,--disable-rpath,,"
 PACKAGECONFIG[apparmour] = "--enable-apparmor,--disable-apparmor,apparmor,apparmor"
 
 inherit autotools
Signature · 1 line
1.7.3.4