Skip to contentSkip to conversation

Update LXC recipe to include config examples in main package

PATCH New Bogdan Purcareata 1 participant 1 message Apr 11, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Update LXC recipe to include config examples in main package

The patch configures the LXC recipe to include configuration examples or containers in the default package - lxc, not in the documentation one - lxc-doc.

By default, bitbake will split a specific package into multiple sections, based on meaning - binaries, libraries, documentation, configs, etc. The sections will then be assembled into individual packages, such as e.g lxc, lxc-doc, lxc-dbg and so on. The packages are mutually exclusive with respect to the sections they contain.

LXC installation provides several example configuration files for various usage scenarios. The twist is that LXC build scripts place these config examples in a relative path that is identified by bitbake as belonging to documentation. This patch places these configuration files in the main package, where they normally belong.

---
 recipes-containers/lxc/lxc_0.9.0.bb | 3 +++
 1 file changed, 3 insertions(+)
recipes-containers/lxc/lxc_0.9.0.bb +3 -0
index a5bfa3e..14f8a07 100644
@@ -37,4 +37,7 @@ PACKAGECONFIG[apparmour] = "--enable-apparmor,--disable-apparmor,apparmor,apparm
 
 inherit autotools
 
+FILES_${PN}-doc = "${mandir} ${infodir}"
+# For LXC the docdir only contains example configuration files and should be included in the lxc package
+FILES_${PN} += "${docdir}"
 FILES_${PN}-dbg += "${libexecdir}/lxc/.debug"
Signature · 1 line
1.7.11.7