Patchwork [meta-oe,1/1] lxc : Add recipe for building Linux Containers tools.

login
register
mail settings
Submitter Philip Balister
Date May 2, 2012, 5:45 p.m.
Message ID <1335980745-29862-2-git-send-email-philip@balister.org>
Download mbox | patch
Permalink /patch/26837/
State New, archived
Headers show

Comments

Philip Balister - May 2, 2012, 5:45 p.m.
Linux containers are a lightweight virtualization system.

Compile tested on F15 and lightly run tested on a pandaboard.

Signed-off-by: Philip Balister <philip@balister.org>
---
 meta-oe/recipes-extended/lxc/lxc_git.bb |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-extended/lxc/lxc_git.bb
Koen Kooi - May 2, 2012, 6:54 p.m.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 02-05-12 19:45, Philip Balister schreef:
> Linux containers are a lightweight virtualization system.
> 
> Compile tested on F15 and lightly run tested on a pandaboard.
> 
> Signed-off-by: Philip Balister <philip@balister.org> --- 
> meta-oe/recipes-extended/lxc/lxc_git.bb |   21 +++++++++++++++++++++ 1
> files changed, 21 insertions(+), 0 deletions(-) create mode 100644
> meta-oe/recipes-extended/lxc/lxc_git.bb
> 
> diff --git a/meta-oe/recipes-extended/lxc/lxc_git.bb
> b/meta-oe/recipes-extended/lxc/lxc_git.bb new file mode 100644 index
> 0000000..8f22e77 --- /dev/null +++
> b/meta-oe/recipes-extended/lxc/lxc_git.bb @@ -0,0 +1,21 @@ +SUMMARY =
> "Linux Containers tools" +DESCRIPTION = "Linux containers are a light
> weight isolation system for Linux." +HOMEPAGE =
> "http://lxc.sourceforge.net" +LICENSE = "LGPLv2.1"

Move LIC_FILES_CHKSUM to here

> + +PV = "0.8.0-rc2"

That violates the versioning policy

> + +RDEPENDS_${PN} = "perl perl-modules"

That needs to go below do_install() and specify the actual modules it needs,
not the blanket meta-package.

Speaking of lxc, have you tried systemd-nspawn to launch containers yet?

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: GPGTools - http://gpgtools.org

iQIcBAEBAgAGBQJPoYLZAAoJEHZqAkdh1vT6aSkP/icOR0X1LViS570mPPq2AVuN
f2eFS33G0ozGu6ZMJGgoQ788Hbzi4cBb53jTek1UDjJbRu34pwpEMJJFuKQB53m+
S66ayFiiEBMeTm8YttY/XscJBR07FP/T1ZDhAJJEdd8P4UOqQG7hee46SyeH7NIX
dFKwahfIbfVHjnV5Ub46UzuDYEPMSiJFtsFWE6AeNg7y2rPcCjAKpaTRI8UjDCFk
G9VkptMHoShSHRechYELIgMPpUrVw8JgGX0KBmAsK0GedKtgBFmr3pa1g3y6uORn
oVlUJOzUo5vxOkcNaL6wg06q3IomUNemQX70pF8Oy89DV7FqhPM95/pOL3B/89DR
+qEuJreGW/fQJUiZVX252YhY+dzVb+JZJObtiDMOxfJMyA9AG1YoATFtOGOTYJT/
3gCwEVs0N5LIP/KF9Ox9205+qtEn5uJzmxy7ZQp5SuNx5skxJL0OyPufm/Tpr6/T
6cDeEVsKKTEYXNiqIxOvG9LlnVWy/v+DgqHCCxEVs9MlCizC0dghE4kslcsAYd9S
fK5PzuFLb9IcLTDIwRIUuSsaj7Z9L8Y7L24daFlfIGblDn8jAlxTXn8OuheRvFSh
q8csWl6KuTFoQ1TvEsF3wg/B6UdFyCb1Vtj+0t4ekcSzLNlUrhaXJG0IJ6kDC/Pm
wfS4dMFyAcBfDXqjSCeN
=Cv0C
-----END PGP SIGNATURE-----
Philip Balister - May 3, 2012, 10:59 a.m.
On 05/02/2012 02:54 PM, Koen Kooi wrote:
> Op 02-05-12 19:45, Philip Balister schreef:
>> Linux containers are a lightweight virtualization system.
> 
>> Compile tested on F15 and lightly run tested on a pandaboard.
> 
>> Signed-off-by: Philip Balister <philip@balister.org> --- 
>> meta-oe/recipes-extended/lxc/lxc_git.bb |   21 +++++++++++++++++++++ 1
>> files changed, 21 insertions(+), 0 deletions(-) create mode 100644
>> meta-oe/recipes-extended/lxc/lxc_git.bb
> 
>> diff --git a/meta-oe/recipes-extended/lxc/lxc_git.bb
>> b/meta-oe/recipes-extended/lxc/lxc_git.bb new file mode 100644 index
>> 0000000..8f22e77 --- /dev/null +++
>> b/meta-oe/recipes-extended/lxc/lxc_git.bb @@ -0,0 +1,21 @@ +SUMMARY =
>> "Linux Containers tools" +DESCRIPTION = "Linux containers are a light
>> weight isolation system for Linux." +HOMEPAGE =
>> "http://lxc.sourceforge.net" +LICENSE = "LGPLv2.1"
> 
> Move LIC_FILES_CHKSUM to here
> 
>> + +PV = "0.8.0-rc2"
> 
> That violates the versioning policy
> 
>> + +RDEPENDS_${PN} = "perl perl-modules"
> 
> That needs to go below do_install() and specify the actual modules it needs,
> not the blanket meta-package.
> 

I agree, but I ran out of time messing with it. It looks like the
RDEPENDS are not set for perl modules, so you need to list them all.
There is one perl script in the lxc utilities that imports one perl
module. This module imports another, rinse lather repeat. I gave up and
sucked in the whole mess so I could get work done.

I'll gladly make a note this is not optimal in the commit message. I
doubt lsc will become super popular on embedded systems, and when it
does we can clean up the perl modules.


> Speaking of lxc, have you tried systemd-nspawn to launch containers yet?

Not yet. Still trying to get my head around the whole concept. One step
at a time.

Philip


> 
> regards,
> 
> Koen
Philip Balister - May 7, 2012, 5:40 p.m.
On 05/02/2012 02:54 PM, Koen Kooi wrote:
> Op 02-05-12 19:45, Philip Balister schreef:
>> Linux containers are a lightweight virtualization system.
> 
>> Compile tested on F15 and lightly run tested on a pandaboard.
> 
>> Signed-off-by: Philip Balister <philip@balister.org> --- 
>> meta-oe/recipes-extended/lxc/lxc_git.bb |   21 +++++++++++++++++++++ 1
>> files changed, 21 insertions(+), 0 deletions(-) create mode 100644
>> meta-oe/recipes-extended/lxc/lxc_git.bb
> 
>> diff --git a/meta-oe/recipes-extended/lxc/lxc_git.bb
>> b/meta-oe/recipes-extended/lxc/lxc_git.bb new file mode 100644 index
>> 0000000..8f22e77 --- /dev/null +++
>> b/meta-oe/recipes-extended/lxc/lxc_git.bb @@ -0,0 +1,21 @@ +SUMMARY =
>> "Linux Containers tools" +DESCRIPTION = "Linux containers are a light
>> weight isolation system for Linux." +HOMEPAGE =
>> "http://lxc.sourceforge.net" +LICENSE = "LGPLv2.1"
> 
> Move LIC_FILES_CHKSUM to here
> 
>> + +PV = "0.8.0-rc2"
> 
> That violates the versioning policy
> 
>> + +RDEPENDS_${PN} = "perl perl-modules"
> 
> That needs to go below do_install() and specify the actual modules it needs,
> not the blanket meta-package.

It looks like the perl RDEPENDS will go away. I'll submit a revised
patch when I have checked that. Meanwhile I'll carry it on git hub while
I sort out the details.

Philip

> 
> Speaking of lxc, have you tried systemd-nspawn to launch containers yet?
> 
> regards,
> 
> Koen

Patch

diff --git a/meta-oe/recipes-extended/lxc/lxc_git.bb b/meta-oe/recipes-extended/lxc/lxc_git.bb
new file mode 100644
index 0000000..8f22e77
--- /dev/null
+++ b/meta-oe/recipes-extended/lxc/lxc_git.bb
@@ -0,0 +1,21 @@ 
+SUMMARY = "Linux Containers tools"
+DESCRIPTION = "Linux containers are a light weight isolation system for Linux."
+HOMEPAGE = "http://lxc.sourceforge.net"
+LICENSE = "LGPLv2.1"
+
+PV = "0.8.0-rc2"
+
+RDEPENDS_${PN} = "perl perl-modules"
+
+SRC_URI = "git://lxc.git.sourceforge.net/gitroot/lxc/lxc"
+SRCREV = "ed55bf5203aca88809d979b289d6b2280a18e79c"
+
+inherit autotools
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OECONF = "--disable-doc --disable-rpath"
+
+FILES_${PN}-dbg += "${libexecdir}/lxc/.debug"