Skip to contentSkip to conversation

Linux Containers recipe.

PATCH In review Philip Balister 2 participants 5 messages May 2, 2012 – May 7, 2012

lore
Share & tools
lore
#0 lore raw

cover Linux Containers recipe.

Build tested with oe-core for the pandaboard. I want to get this comitted in a basic form before it gets moldy on my disk.

More patches welcome.

Philip Balister (1):
lxc : Add recipe for building Linux Containers tools.

 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
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 1/1 lxc : Add recipe for building Linux Containers tools.

Linux containers are a lightweight virtualization system.

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

---
 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
meta-oe/recipes-extended/lxc/lxc_git.bb new file +21 -0
new file mode 100644
index 0000000..8f22e77
@@ -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"
Signature · 1 line
1.7.3.4
#2 lore raw

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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 02-05-12 19:45, Philip Balister schreef:

Quoted 9 lines

Linux containers are a lightweight virtualization system.

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

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

Quoted 7 lines
(quoted diff) +0 -0

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

Quoted 1 line

+ +PV = "0.8.0-rc2"

That violates the versioning policy

Quoted 1 line

+ +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-----

#3 lore raw

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

Quoted 20 lines · Koen Kooi

Op 02-05-12 19:45, Philip Balister schreef:

Quoted 9 lines

Linux containers are a lightweight virtualization system.

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

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

Quoted 7 lines
(quoted diff) +0 -0

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

Quoted 9 lines
Quoted 1 line

+ +PV = "0.8.0-rc2"

That violates the versioning policy

Quoted 1 line

+ +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.

Quoted 1 line

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

Quoted 4 lines

regards,

Koen

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#4 lore raw

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

In reply to Koen Kooi
Quoted 20 lines · Koen Kooi

Op 02-05-12 19:45, Philip Balister schreef:

Quoted 9 lines

Linux containers are a lightweight virtualization system.

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

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

Quoted 7 lines
(quoted diff) +0 -0

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

Quoted 8 lines
Quoted 1 line

+ +PV = "0.8.0-rc2"

That violates the versioning policy

Quoted 1 line

+ +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

Quoted 6 lines

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

regards,

Koen

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel