From: "David Nyström" <david.c.nystrom@gmail.com>
To: Bruce Ashfield <bruce.ashfield@gmail.com>
Cc: meta-virtualization@yoctoproject.org
Subject: Re: [PATCHv3 04/14] Added lxc recipe
Date: Thu, 06 Dec 2012 15:20:41 +0100 [thread overview]
Message-ID: <50C0A9B9.3020902@gmail.com> (raw)
In-Reply-To: <CADkTA4O_Bj7+DjSgEKK=9TTc-=FNFkyJnVBz3CaoVNKgT8WN=Q@mail.gmail.com>
On 12/06/2012 03:15 PM, Bruce Ashfield wrote:
> On Thu, Dec 6, 2012 at 9:03 AM, <david.c.nystrom@gmail.com> wrote:
>
>> From: David Nyström <david.nystrom@enea.com>
>>
>> ---
>> recipes-containers/lxc/files/libmounts.patch | 48
>> +++++++++++++++++++++++++
>> recipes-containers/lxc/files/noldconfig.patch | 29 +++++++++++++++
>> recipes-containers/lxc/lxc_0.8.0.bb | 39 ++++++++++++++++++++
>> 3 files changed, 116 insertions(+)
>> create mode 100644 recipes-containers/lxc/files/libmounts.patch
>> create mode 100644 recipes-containers/lxc/files/noldconfig.patch
>> create mode 100644 recipes-containers/lxc/lxc_0.8.0.bb
>>
>> diff --git a/recipes-containers/lxc/files/libmounts.patch
>> b/recipes-containers/lxc/files/libmounts.patch
>> new file mode 100644
>> index 0000000..7e092f1
>> --- /dev/null
>> +++ b/recipes-containers/lxc/files/libmounts.patch
>> @@ -0,0 +1,48 @@
>> +From dfef62f0334c65397254215f809a8f25364ea6ef Mon Sep 17 00:00:00 2001
>> +From: Stuart Yoder <stuart.yoder@freescale.com>
>> +Date: Wed, 12 Sep 2012 11:05:07 -0500
>> +Subject: [PATCH] create lib mounts only if the host directories exist
>> +
>>
>
> Is the source of the lxc recipe the meta-fsl layers ? If so, it's always a
> good idea
> to provide a reference to the original recipe (or layer) in the commit
> message or
> even in the patch itself. It serves to give credit and help people trace
> the history
> of a particular recipe.
>
> Cheers,
>
> Bruce
Yes, the source is lxc_0.8.0-rc1.bb in meta-fsl-ppc. Unfortunately I
lack the git-fu needed to import _only_ one file with history from
another repo.
Any suggestions are welcome here.
I'll make a note in the commit message of the origin.
>
>
>> +Signed-off-by: Stuart Yoder <stuart.yoder@freescale.com>
>> +---
>> + templates/lxc-busybox.in | 24 +++++++++++-------------
>> + 1 file changed, 11 insertions(+), 13 deletions(-)
>> +
>> +diff --git a/templates/lxc-busybox.in b/templates/lxc-busybox.in
>> +index 720ceef..f6cb1ba 100644
>> +--- a/templates/lxc-busybox.in
>> ++++ b/templates/lxc-busybox.in
>> +@@ -235,19 +235,17 @@ lxc.pts = 1
>> + lxc.rootfs = $rootfs
>> + EOF
>> +
>> +-if [ -d "$rootfs/lib" ]; then
>> +-cat <<EOF >> $path/config
>> +-lxc.mount.entry=/lib $rootfs/lib none ro,bind 0 0
>> +-lxc.mount.entry=/usr/lib $rootfs/usr/lib none ro,bind 0 0
>> +-EOF
>> +-fi
>> +-
>> +-if [ -d "/lib64" ] && [ -d "$rootfs/lib64" ]; then
>> +-cat <<EOF >> $path/config
>> +-lxc.mount.entry=/lib64 $rootfs/lib64 none ro,bind 0 0
>> +-lxc.mount.entry=/usr/lib64 $rootfs/usr/lib64 none ro,bind 0 0
>> +-EOF
>> +-fi
>> ++ libdirs="\
>> ++ /lib \
>> ++ /usr/lib \
>> ++ /lib64 \
>> ++ /usr/lib64"
>> ++
>> ++ for dir in $libdirs; do
>> ++ if [ -d $dir ]; then
>> ++ echo "lxc.mount.entry=$dir $rootfs$dir none ro,bind 0 0" >>
>> $path/config
>> ++ fi
>> ++ done
>> + }
>> +
>> + usage()
>> +--
>> +1.7.9.7
>> +
>> diff --git a/recipes-containers/lxc/files/noldconfig.patch
>> b/recipes-containers/lxc/files/noldconfig.patch
>> new file mode 100644
>> index 0000000..5edff46
>> --- /dev/null
>> +++ b/recipes-containers/lxc/files/noldconfig.patch
>> @@ -0,0 +1,29 @@
>> +From a8aa8d131a7140d5625c24c9f4c28c605213552c Mon Sep 17 00:00:00 2001
>> +From: Andrey Mazo <ahippo@yandex.ru>
>> +Date: Fri, 18 May 2012 21:11:22 +0400
>> +Subject: [PATCH] Avoid ldconfig due to cross-compilation problems.
>> +
>> +Make required symlinks manually.
>> +Otherwise, it cases problems on cbuild endianness != ctarget endianness
>> +setups because /sbin/ldconfig expects elf header in the wrong endianness.
>> +---
>> + src/lxc/Makefile.am | 2 +-
>> + 1 files changed, 1 insertions(+), 1 deletions(-)
>> +
>> +diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am
>> +index 1c26952..3b84c1a 100644
>> +--- a/src/lxc/Makefile.am
>> ++++ b/src/lxc/Makefile.am
>> +@@ -125,8 +125,8 @@ lxc_kill_SOURCES = lxc_kill.c
>> +
>> + install-exec-local: install-soPROGRAMS
>> + mv $(DESTDIR)$(libdir)/liblxc.so
>> $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
>> +- /sbin/ldconfig -l $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
>> + cd $(DESTDIR)$(libdir); \
>> ++ ln -sf liblxc.so.$(VERSION) liblxc.so.$(firstword $(subst .,
>> ,$(VERSION))); \
>> + ln -sf liblxc.so.$(firstword $(subst ., ,$(VERSION))) liblxc.so
>> +
>> + uninstall-local:
>> +--
>> +1.7.3.4
>> +
>> diff --git a/recipes-containers/lxc/lxc_0.8.0.bb b/recipes-containers/lxc/
>> lxc_0.8.0.bb
>> new file mode 100644
>> index 0000000..c662cb1
>> --- /dev/null
>> +++ b/recipes-containers/lxc/lxc_0.8.0.bb
>> @@ -0,0 +1,39 @@
>> +DESCRIPTION = "lxc aims to use these new functionnalities to provide an
>> userspace container object"
>> +SECTION = "console/utils"
>> +LICENSE = "GPLv2"
>> +LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
>> +PRIORITY = "optional"
>> +PR = "r2"
>> +DEPENDS = "libxml2 libcap"
>> +RDEPENDS_${PN} = " \
>> + rsync \
>> + gzip \
>> + libcap-bin \
>> + bridge-utils \
>> + dnsmasq \
>> + perl-module-strict \
>> + perl-module-getopt-long \
>> + perl-module-vars \
>> + perl-module-warnings-register \
>> + perl-module-exporter \
>> + perl-module-constant \
>> + perl-module-overload \
>> + perl-module-exporter-heavy \
>> +"
>> +
>> +SRC_URI = "http://lxc.sourceforge.net/download/lxc/${PN}-${PV}.tar.gz \
>> + file://noldconfig.patch \
>> + "
>> +SRC_URI[md5sum] = "7304fa57146ce687f749b5df876bb20d"
>> +SRC_URI[sha256sum] =
>> "eac833730b94e423d4bef6834bc4a716437d2abd6ab8b24334c506aaaa08692c"
>> +
>> +S = "${WORKDIR}/${PN}-${PV}"
>> +
>> +PACKAGECONFIG ??= ""
>> +PACKAGECONFIG[doc] = "--enable-doc,--disable-doc"
>> +PACKAGECONFIG[rpath] = "--enable-rpath,--disable-rpath"
>> +PACKAGECONFIG[apparmour] =
>> "--enable-apparmor,--disable-apparmor,apparmor,apparmor"
>> +
>> +inherit autotools
>> +
>> +FILES_${PN}-dbg += "${libexecdir}/lxc/.debug"
>> --
>> 1.7.9.5
>>
>> _______________________________________________
>> meta-virtualization mailing list
>> meta-virtualization@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/meta-virtualization
>>
>
>
>
next prev parent reply other threads:[~2012-12-06 14:20 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-06 14:03 [PATCHv3 00/14] Addition of meta-cloud david.c.nystrom
2012-12-06 14:03 ` [PATCHv3 01/14] Added protobuf-c criu dependency david.c.nystrom
2012-12-06 14:03 ` [PATCHv3 02/14] Added protobuf " david.c.nystrom
2012-12-06 14:03 ` [PATCHv3 03/14] Added CRIU recipe david.c.nystrom
2012-12-06 14:03 ` [PATCHv3 04/14] Added lxc recipe david.c.nystrom
2012-12-06 14:15 ` Bruce Ashfield
2012-12-06 14:20 ` David Nyström [this message]
2012-12-06 14:03 ` [PATCHv3 05/14] Added netcf recipe, libvirt dependency david.c.nystrom
2012-12-06 14:03 ` [PATCHv3 06/14] Added openbsd-netcat " david.c.nystrom
2012-12-06 14:20 ` Bruce Ashfield
2012-12-06 14:23 ` David Nyström
2012-12-06 14:40 ` Bruce Ashfield
2012-12-06 14:03 ` [PATCHv3 07/14] Added openflow recipe david.c.nystrom
2012-12-06 14:03 ` [PATCHv3 08/14] Added openvswitch recipe david.c.nystrom
2012-12-06 14:03 ` [PATCHv3 09/14] Added .gitignore file david.c.nystrom
2012-12-06 14:03 ` [PATCHv3 10/14] Changed David Nyströms email in README david.c.nystrom
2012-12-06 14:03 ` [PATCHv3 11/14] Added template cloud-* images david.c.nystrom
2012-12-06 14:03 ` [PATCHv3 12/14] Added some details in README, and made the description common david.c.nystrom
2012-12-06 14:03 ` [PATCHv3 13/14] Upgraded to libvirt 1.0.0, and added a more detailed packageconfig david.c.nystrom
2012-12-06 14:26 ` Bruce Ashfield
2012-12-06 14:53 ` David Nyström
2012-12-06 15:14 ` Saul Wold
2012-12-06 16:11 ` David Nyström
2012-12-06 15:16 ` Richard Purdie
2012-12-06 14:03 ` [PATCHv3 14/14] Added kernel configuration for LxC and in kernel OpenvSwitch david.c.nystrom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50C0A9B9.3020902@gmail.com \
--to=david.c.nystrom@gmail.com \
--cc=bruce.ashfield@gmail.com \
--cc=meta-virtualization@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.