Date   

PACKAGECONFIG variables.

David Nystr?m
 

Hi All,

When trying to upgrade to libvirt-1.0, I'm getting some strange errors.
How could this pass with the old libvirt I dont know.

Is the XenAPI driver something you explicitly build and use ?

------------------------------------------------------------------
checking for xen_vm_start in -lxenserver... no
configure: error: You must install the XenServer Library to compile XenAPI driver with -lxenserver
Configure failed. The contents of all config.log files follows to aid debugging
/media/sdb5/eel/build/tmp/work/x86_64-poky-linux/libvirt-1.0.0-r1/libvirt-1.0.0/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by libvirt configure 1.0.0, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ /media/sdb5/eel/build/tmp/work/x86_64-poky-linux/libvirt-1.0.0-r1/libvirt-1.0.0/configure --build=x86_64-linux --host=x86_64-poky-linux --target=x86_64-poky-linux --prefix=/usr --exec_prefi
x=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib --includedir=/usr/incl
ude --oldincludedir=/usr/include --infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/media/sdb5/eel/build/tmp/sysroots
/qemux86-64 --with-python=yes --with-python-inc-dir=-I/media/sdb5/eel/build/tmp/sysroots/qemux86-64/usr/include/python2.7 --enable-nls --without-hyperv --with-remote --without-openvz --without-
phyp --without-augeas --with-xen --with-xenapi --with-libxl=/media/sdb5/eel/build/tmp/sysroots/qemux86-64/lib --with-xen-inotify --with-macvtap=no --without-esx --without-vbox --without-polkit --without-lxc --without-uml --with-test=yes --with-libvirtd --without-qemu --without-yajl --without-vmware


Br,
David


Re: PACKAGECONFIG variables.

Prica, Mihai <mihai.prica@...>
 

Hi,

The error is because configure is called with the --with-xenapi option. I think there is a bug in the recipe at the PACKAGECONFIG[xen] line. It should be --without-xenapi instead of the first --with-xenapi. I don't know exactly what xenapi does, Raymond can give you more details here.

Try to change this and see if it works.

Thanks,
Mihai

-----Original Message-----
From: David Nyström [mailto:david.c.nystrom@...]
Sent: Tuesday, December 04, 2012 5:36 PM
To: Raymond Danks
Cc: Prica, Mihai; meta-virtualization@...
Subject: PACKAGECONFIG variables.

Hi All,

When trying to upgrade to libvirt-1.0, I'm getting some strange errors.
How could this pass with the old libvirt I dont know.

Is the XenAPI driver something you explicitly build and use ?

------------------------------------------------------------------
checking for xen_vm_start in -lxenserver... no
configure: error: You must install the XenServer Library to compile XenAPI driver with -lxenserver Configure failed. The contents of all config.log files follows to aid debugging /media/sdb5/eel/build/tmp/work/x86_64-poky-linux/libvirt-1.0.0-r1/libvirt-1.0.0/config.log
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake.

It was created by libvirt configure 1.0.0, which was generated by GNU Autoconf 2.69. Invocation command line was

$
/media/sdb5/eel/build/tmp/work/x86_64-poky-linux/libvirt-1.0.0-r1/libvirt-1.0.0/configure
--build=x86_64-linux --host=x86_64-poky-linux --target=x86_64-poky-linux --prefix=/usr --exec_prefi x=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib --includedir=/usr/incl ude --oldincludedir=/usr/include --infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/media/sdb5/eel/build/tmp/sysroots
/qemux86-64 --with-python=yes
--with-python-inc-dir=-I/media/sdb5/eel/build/tmp/sysroots/qemux86-64/usr/include/python2.7
--enable-nls --without-hyperv --with-remote --without-openvz --without- phyp --without-augeas --with-xen --with-xenapi --with-libxl=/media/sdb5/eel/build/tmp/sysroots/qemux86-64/lib
--with-xen-inotify --with-macvtap=no --without-esx --without-vbox --without-polkit --without-lxc --without-uml --with-test=yes --with-libvirtd --without-qemu --without-yajl --without-vmware


Br,
David


Re: PACKAGECONFIG variables.

David Nyström <david.nystrom@...>
 

I have some issues with how PACKAGECONFIG works, do you guys mind if I
disable all --without functionality in PACKAGECONFIG, and let libvirt ./configure autodetect dependencies ?
This will result in a bigger libvirt binary, and
libnl, netcf, augeas, polkit dependencies being mandatory for all users of libvirt, unless explicitly disabled by the "xen" PACKAGECONFIG.

Does anyone have any binary size constraints ?

Br,
David

On 12/04/2012 04:49 PM, Prica, Mihai wrote:

Hi,

The error is because configure is called with the --with-xenapi option. I think there is a bug in the recipe at the PACKAGECONFIG[xen] line. It should be --without-xenapi instead of the first --with-xenapi. I don't know exactly what xenapi does, Raymond can give you more details here.

Try to change this and see if it works.

Thanks,
Mihai

-----Original Message-----
From: David Nyström [mailto:david.c.nystrom@...]
Sent: Tuesday, December 04, 2012 5:36 PM
To: Raymond Danks
Cc: Prica, Mihai; meta-virtualization@...
Subject: PACKAGECONFIG variables.

Hi All,

When trying to upgrade to libvirt-1.0, I'm getting some strange errors.
How could this pass with the old libvirt I dont know.

Is the XenAPI driver something you explicitly build and use ?

------------------------------------------------------------------
checking for xen_vm_start in -lxenserver... no
configure: error: You must install the XenServer Library to compile XenAPI driver with -lxenserver Configure failed. The contents of all config.log files follows to aid debugging /media/sdb5/eel/build/tmp/work/x86_64-poky-linux/libvirt-1.0.0-r1/libvirt-1.0.0/config.log
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake.

It was created by libvirt configure 1.0.0, which was generated by GNU Autoconf 2.69. Invocation command line was

$
/media/sdb5/eel/build/tmp/work/x86_64-poky-linux/libvirt-1.0.0-r1/libvirt-1.0.0/configure
--build=x86_64-linux --host=x86_64-poky-linux --target=x86_64-poky-linux --prefix=/usr --exec_prefi x=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib --includedir=/usr/incl ude --oldincludedir=/usr/include --infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/media/sdb5/eel/build/tmp/sysroots
/qemux86-64 --with-python=yes
--with-python-inc-dir=-I/media/sdb5/eel/build/tmp/sysroots/qemux86-64/usr/include/python2.7
--enable-nls --without-hyperv --with-remote --without-openvz --without- phyp --without-augeas --with-xen --with-xenapi --with-libxl=/media/sdb5/eel/build/tmp/sysroots/qemux86-64/lib
--with-xen-inotify --with-macvtap=no --without-esx --without-vbox --without-polkit --without-lxc --without-uml --with-test=yes --with-libvirtd --without-qemu --without-yajl --without-vmware


Br,
David
_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization


Re: PACKAGECONFIG variables.

Raymond Danks <ray.danks@...>
 

David,

XenAPI is used by XenServer and Xen Cloud Platform. There is currently no underlying metadata support for these packages, so this should be disabled.

I do, in fact have binary size constraints. I see where you are going with this, but would it be possible instead to add a "detect" or "all" to PACKAGECONFIG? I suppose an alternative would be to add "*-minimal" to PACKAGECONFIG which tweak the configure to create minimal build configurations.

Ray

On 12/04/2012 09:03 AM, David Nyström wrote:
I have some issues with how PACKAGECONFIG works, do you guys mind if I
disable all --without functionality in PACKAGECONFIG, and let libvirt ./configure autodetect dependencies ?
This will result in a bigger libvirt binary, and
libnl, netcf, augeas, polkit dependencies being mandatory for all users of libvirt, unless explicitly disabled by the "xen" PACKAGECONFIG.

Does anyone have any binary size constraints ?

Br,
David

On 12/04/2012 04:49 PM, Prica, Mihai wrote:

Hi,

The error is because configure is called with the --with-xenapi option. I think there is a bug in the recipe at the PACKAGECONFIG[xen] line. It should be --without-xenapi instead of the first --with-xenapi. I don't know exactly what xenapi does, Raymond can give you more details here.

Try to change this and see if it works.

Thanks,
Mihai

-----Original Message-----
From: David Nyström [mailto:david.c.nystrom@...]
Sent: Tuesday, December 04, 2012 5:36 PM
To: Raymond Danks
Cc: Prica, Mihai; meta-virtualization@...
Subject: PACKAGECONFIG variables.

Hi All,

When trying to upgrade to libvirt-1.0, I'm getting some strange errors.
How could this pass with the old libvirt I dont know.

Is the XenAPI driver something you explicitly build and use ?

------------------------------------------------------------------
checking for xen_vm_start in -lxenserver... no
configure: error: You must install the XenServer Library to compile XenAPI driver with -lxenserver Configure failed. The contents of all config.log files follows to aid debugging /media/sdb5/eel/build/tmp/work/x86_64-poky-linux/libvirt-1.0.0-r1/libvirt-1.0.0/config.log
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake.

It was created by libvirt configure 1.0.0, which was generated by GNU Autoconf 2.69. Invocation command line was

$
/media/sdb5/eel/build/tmp/work/x86_64-poky-linux/libvirt-1.0.0-r1/libvirt-1.0.0/configure
--build=x86_64-linux --host=x86_64-poky-linux --target=x86_64-poky-linux --prefix=/usr --exec_prefi x=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib --includedir=/usr/incl ude --oldincludedir=/usr/include --infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/media/sdb5/eel/build/tmp/sysroots
/qemux86-64 --with-python=yes
--with-python-inc-dir=-I/media/sdb5/eel/build/tmp/sysroots/qemux86-64/usr/include/python2.7
--enable-nls --without-hyperv --with-remote --without-openvz --without- phyp --without-augeas --with-xen --with-xenapi --with-libxl=/media/sdb5/eel/build/tmp/sysroots/qemux86-64/lib
--with-xen-inotify --with-macvtap=no --without-esx --without-vbox --without-polkit --without-lxc --without-uml --with-test=yes --with-libvirtd --without-qemu --without-yajl --without-vmware


Br,
David
_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization


Re: PACKAGECONFIG variables.

David Nyström <David.Nystrom@...>
 

Ray,

Yes, of course. Let's add a *-minimal package configs,
if none are set, we'll let it autodetect + add full dependencies otherwise.
Is it OK for you if I set it to auto detect by default? , this would imply
a local.conf addition to optimize for footprint.
I'm guessing package config selects cannot be set from an image file, I'll give that a try tomorrow.

Br,
David

Sent from my Android phone using TouchDown (www.nitrodesk.com)

-----Original Message-----
From: Raymond Danks [ray.danks@...]
Received: Tuesday, 04 Dec 2012, 18:38
To: David Nyström [David.Nystrom@...]
CC: Prica, Mihai [mihai.prica@...]; meta-virtualization@... [meta-virtualization@...]
Subject: Re: [meta-virtualization] PACKAGECONFIG variables.

David,

XenAPI is used by XenServer and Xen Cloud Platform.  There is currently
no underlying metadata support for these packages, so this should be
disabled.

I do, in fact have binary size constraints.  I see where you are going
with this, but would it be possible instead to add a "detect" or "all"
to PACKAGECONFIG?  I suppose an alternative would be to add "*-minimal"
to PACKAGECONFIG which tweak the configure to create minimal build
configurations.

Ray

On 12/04/2012 09:03 AM, David Nyström wrote:
> I have some issues with how PACKAGECONFIG works, do you guys mind if I
> disable all --without functionality in PACKAGECONFIG, and let libvirt
> ./configure autodetect dependencies ?
> This will result in a bigger libvirt binary, and
> libnl, netcf, augeas, polkit dependencies being mandatory for all
> users of libvirt, unless explicitly disabled by the "xen" PACKAGECONFIG.
>
> Does anyone have any binary size constraints ?
>
> Br,
> David
>
> On 12/04/2012 04:49 PM, Prica, Mihai wrote:
>>
>> Hi,
>>
>> The error is because configure is called with the --with-xenapi
>> option. I think there is a bug in the recipe at the
>> PACKAGECONFIG[xen] line. It should be --without-xenapi instead of the
>> first --with-xenapi. I don't know exactly what xenapi does, Raymond
>> can give you more details here.
>>
>> Try to change this and see if it works.
>>
>> Thanks,
>> Mihai
>>
>> -----Original Message-----
>> From: David Nyström [mailto:david.c.nystrom@...]
>> Sent: Tuesday, December 04, 2012 5:36 PM
>> To: Raymond Danks
>> Cc: Prica, Mihai; meta-virtualization@...
>> Subject: PACKAGECONFIG variables.
>>
>> Hi All,
>>
>> When trying to upgrade to libvirt-1.0, I'm getting some strange errors.
>> How could this pass with the old libvirt I dont know.
>>
>> Is the XenAPI driver something you explicitly build and use ?
>>
>> ------------------------------------------------------------------
>> checking for xen_vm_start in -lxenserver... no
>> configure: error: You must install the XenServer Library to compile
>> XenAPI driver with -lxenserver Configure failed. The contents of all
>> config.log files follows to aid debugging
>> /media/sdb5/eel/build/tmp/work/x86_64-poky-linux/libvirt-1.0.0-r1/libvirt-1.0.0/config.log
>> This file contains any messages produced by compilers while running
>> configure, to aid debugging if configure makes a mistake.
>>
>> It was created by libvirt configure 1.0.0, which was generated by GNU
>> Autoconf 2.69.  Invocation command line was
>>
>>     $
>> /media/sdb5/eel/build/tmp/work/x86_64-poky-linux/libvirt-1.0.0-r1/libvirt-1.0.0/configure
>>
>> --build=x86_64-linux --host=x86_64-poky-linux
>> --target=x86_64-poky-linux --prefix=/usr --exec_prefi x=/usr
>> --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec
>> --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com
>> --localstatedir=/var --libdir=/usr/lib --includedir=/usr/incl ude
>> --oldincludedir=/usr/include --infodir=/usr/share/info
>> --mandir=/usr/share/man --disable-silent-rules
>> --disable-dependency-tracking
>> --with-libtool-sysroot=/media/sdb5/eel/build/tmp/sysroots
>> /qemux86-64 --with-python=yes
>> --with-python-inc-dir=-I/media/sdb5/eel/build/tmp/sysroots/qemux86-64/usr/include/python2.7
>>
>> --enable-nls --without-hyperv --with-remote --without-openvz
>> --without- phyp --without-augeas --with-xen --with-xenapi
>> --with-libxl=/media/sdb5/eel/build/tmp/sysroots/qemux86-64/lib
>> --with-xen-inotify --with-macvtap=no --without-esx --without-vbox
>> --without-polkit --without-lxc --without-uml --with-test=yes
>> --with-libvirtd --without-qemu --without-yajl --without-vmware
>>
>>
>> Br,
>> David
>> _______________________________________________
>> meta-virtualization mailing list
>> meta-virtualization@...
>> https://lists.yoctoproject.org/listinfo/meta-virtualization
>>


Re: PACKAGECONFIG variables.

Saul Wold <sgw@...>
 

On 12/04/2012 01:43 PM, David Nyström wrote:
Ray,

Yes, of course. Let's add a *-minimal package configs,
if none are set, we'll let it autodetect + add full dependencies otherwise.
Won't using autodetect cause inconsistencies depending on how the image gets built, it will also lead to a lot larger dependency requirement.

I know it's better to have a known list of what's in and what's out.
Autoconf has caused inconsistencies in the past, when options are not specified.

Sau!

Is it OK for you if I set it to auto detect by default? , this would imply
a local.conf addition to optimize for footprint.
I'm guessing package config selects cannot be set from an image file,
I'll give that a try tomorrow.

Br,
David

Sent from my Android phone using TouchDown (www.nitrodesk.com)

-----Original Message-----
*From:* Raymond Danks [ray.danks@...]
*Received:* Tuesday, 04 Dec 2012, 18:38
*To:* David Nyström [David.Nystrom@...]
*CC:* Prica, Mihai [mihai.prica@...];
meta-virtualization@... [meta-virtualization@...]
*Subject:* Re: [meta-virtualization] PACKAGECONFIG variables.

David,

XenAPI is used by XenServer and Xen Cloud Platform. There is currently
no underlying metadata support for these packages, so this should be
disabled.

I do, in fact have binary size constraints. I see where you are going
with this, but would it be possible instead to add a "detect" or "all"
to PACKAGECONFIG? I suppose an alternative would be to add "*-minimal"
to PACKAGECONFIG which tweak the configure to create minimal build
configurations.

Ray

On 12/04/2012 09:03 AM, David Nyström wrote:
I have some issues with how PACKAGECONFIG works, do you guys mind if I
disable all --without functionality in PACKAGECONFIG, and let libvirt
./configure autodetect dependencies ?
This will result in a bigger libvirt binary, and
libnl, netcf, augeas, polkit dependencies being mandatory for all
users of libvirt, unless explicitly disabled by the "xen" PACKAGECONFIG.

Does anyone have any binary size constraints ?

Br,
David

On 12/04/2012 04:49 PM, Prica, Mihai wrote:

Hi,

The error is because configure is called with the --with-xenapi
option. I think there is a bug in the recipe at the
PACKAGECONFIG[xen] line. It should be --without-xenapi instead of the
first --with-xenapi. I don't know exactly what xenapi does, Raymond
can give you more details here.

Try to change this and see if it works.

Thanks,
Mihai

-----Original Message-----
From: David Nyström [mailto:david.c.nystrom@...]
Sent: Tuesday, December 04, 2012 5:36 PM
To: Raymond Danks
Cc: Prica, Mihai; meta-virtualization@...
Subject: PACKAGECONFIG variables.

Hi All,

When trying to upgrade to libvirt-1.0, I'm getting some strange errors.
How could this pass with the old libvirt I dont know.

Is the XenAPI driver something you explicitly build and use ?

------------------------------------------------------------------
checking for xen_vm_start in -lxenserver... no
configure: error: You must install the XenServer Library to compile
XenAPI driver with -lxenserver Configure failed. The contents of all
config.log files follows to aid debugging
/media/sdb5/eel/build/tmp/work/x86_64-poky-linux/libvirt-1.0.0-r1/libvirt-1.0.0/config.log
This file contains any messages produced by compilers while running
configure, to aid debugging if configure makes a mistake.

It was created by libvirt configure 1.0.0, which was generated by GNU
Autoconf 2.69. Invocation command line was

$
/media/sdb5/eel/build/tmp/work/x86_64-poky-linux/libvirt-1.0.0-r1/libvirt-1.0.0/configure

--build=x86_64-linux --host=x86_64-poky-linux
--target=x86_64-poky-linux --prefix=/usr --exec_prefi x=/usr
--bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec
--datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com
--localstatedir=/var --libdir=/usr/lib --includedir=/usr/incl ude
--oldincludedir=/usr/include --infodir=/usr/share/info
--mandir=/usr/share/man --disable-silent-rules
--disable-dependency-tracking
--with-libtool-sysroot=/media/sdb5/eel/build/tmp/sysroots
/qemux86-64 --with-python=yes
--with-python-inc-dir=-I/media/sdb5/eel/build/tmp/sysroots/qemux86-64/usr/include/python2.7

--enable-nls --without-hyperv --with-remote --without-openvz
--without- phyp --without-augeas --with-xen --with-xenapi
--with-libxl=/media/sdb5/eel/build/tmp/sysroots/qemux86-64/lib
--with-xen-inotify --with-macvtap=no --without-esx --without-vbox
--without-polkit --without-lxc --without-uml --with-test=yes
--with-libvirtd --without-qemu --without-yajl --without-vmware


Br,
David
_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization


_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization


Re: PACKAGECONFIG variables.

David Nyström <david.nystrom@...>
 

On 12/04/2012 11:20 PM, Saul Wold wrote:
On 12/04/2012 01:43 PM, David Nyström wrote:
Ray,

Yes, of course. Let's add a *-minimal package configs,
if none are set, we'll let it autodetect + add full dependencies
otherwise.
Won't using autodetect cause inconsistencies depending on how the image
gets built,
Yes, if by inconsistencies you mean that binary package will differ depending on sysroot content, i.e. DEPENDS.

it will also lead to a lot larger dependency requirement.
Not nessecarily, since DEPENDS might be dynamically added with PACKAGECONFIG variables. But I understand what you are aiming at here.

I know it's better to have a known list of what's in and what's out.
Autoconf has caused inconsistencies in the past, when options are not
specified.
I understand and agree, autodetect does wreak havoc on DEPEND/RDEPEND semantics, since some packages tries to autodetect RDEPENDS, which will have to be placed in DEPENDS to able to be properly autodetected.

I suspect regressions are also caught in buildtime when having it either on or off, rather than having autoconf errors detected in runtime. I'll adjust accordingly.

Best Regards,
David


Sau!

Is it OK for you if I set it to auto detect by default? , this would
imply
a local.conf addition to optimize for footprint.
I'm guessing package config selects cannot be set from an image file,
I'll give that a try tomorrow.

Br,
David

Sent from my Android phone using TouchDown (www.nitrodesk.com)

-----Original Message-----
*From:* Raymond Danks [ray.danks@...]
*Received:* Tuesday, 04 Dec 2012, 18:38
*To:* David Nyström [David.Nystrom@...]
*CC:* Prica, Mihai [mihai.prica@...];
meta-virtualization@...
[meta-virtualization@...]
*Subject:* Re: [meta-virtualization] PACKAGECONFIG variables.

David,

XenAPI is used by XenServer and Xen Cloud Platform. There is currently
no underlying metadata support for these packages, so this should be
disabled.

I do, in fact have binary size constraints. I see where you are going
with this, but would it be possible instead to add a "detect" or "all"
to PACKAGECONFIG? I suppose an alternative would be to add "*-minimal"
to PACKAGECONFIG which tweak the configure to create minimal build
configurations.

Ray

On 12/04/2012 09:03 AM, David Nyström wrote:
I have some issues with how PACKAGECONFIG works, do you guys mind if I
disable all --without functionality in PACKAGECONFIG, and let libvirt
./configure autodetect dependencies ?
This will result in a bigger libvirt binary, and
libnl, netcf, augeas, polkit dependencies being mandatory for all
users of libvirt, unless explicitly disabled by the "xen" PACKAGECONFIG.

Does anyone have any binary size constraints ?

Br,
David

On 12/04/2012 04:49 PM, Prica, Mihai wrote:

Hi,

The error is because configure is called with the --with-xenapi
option. I think there is a bug in the recipe at the
PACKAGECONFIG[xen] line. It should be --without-xenapi instead of the
first --with-xenapi. I don't know exactly what xenapi does, Raymond
can give you more details here.

Try to change this and see if it works.

Thanks,
Mihai

-----Original Message-----
From: David Nyström [mailto:david.c.nystrom@...]
Sent: Tuesday, December 04, 2012 5:36 PM
To: Raymond Danks
Cc: Prica, Mihai; meta-virtualization@...
Subject: PACKAGECONFIG variables.

Hi All,

When trying to upgrade to libvirt-1.0, I'm getting some strange errors.
How could this pass with the old libvirt I dont know.

Is the XenAPI driver something you explicitly build and use ?

------------------------------------------------------------------
checking for xen_vm_start in -lxenserver... no
configure: error: You must install the XenServer Library to compile
XenAPI driver with -lxenserver Configure failed. The contents of all
config.log files follows to aid debugging
/media/sdb5/eel/build/tmp/work/x86_64-poky-linux/libvirt-1.0.0-r1/libvirt-1.0.0/config.log

This file contains any messages produced by compilers while running
configure, to aid debugging if configure makes a mistake.

It was created by libvirt configure 1.0.0, which was generated by GNU
Autoconf 2.69. Invocation command line was

$
/media/sdb5/eel/build/tmp/work/x86_64-poky-linux/libvirt-1.0.0-r1/libvirt-1.0.0/configure


--build=x86_64-linux --host=x86_64-poky-linux
--target=x86_64-poky-linux --prefix=/usr --exec_prefi x=/usr
--bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec
--datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com
--localstatedir=/var --libdir=/usr/lib --includedir=/usr/incl ude
--oldincludedir=/usr/include --infodir=/usr/share/info
--mandir=/usr/share/man --disable-silent-rules
--disable-dependency-tracking
--with-libtool-sysroot=/media/sdb5/eel/build/tmp/sysroots
/qemux86-64 --with-python=yes
--with-python-inc-dir=-I/media/sdb5/eel/build/tmp/sysroots/qemux86-64/usr/include/python2.7


--enable-nls --without-hyperv --with-remote --without-openvz
--without- phyp --without-augeas --with-xen --with-xenapi
--with-libxl=/media/sdb5/eel/build/tmp/sysroots/qemux86-64/lib
--with-xen-inotify --with-macvtap=no --without-esx --without-vbox
--without-polkit --without-lxc --without-uml --with-test=yes
--with-libvirtd --without-qemu --without-yajl --without-vmware


Br,
David
_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization


_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization


meta-virtualization structure

Prica, Mihai <mihai.prica@...>
 

Hi,

 

I wanted to include my work with meta-kvm into the new layer(meta-virtualization) and I was thinking about the best method of doing this.  The problem is there are different kernel configs depending on the hypervisor and different values for the PACKAGECONFIG in libvirt.

 

One solution would be to move all the common pieces into a meta layer and group the hypervisor configurations into a specific directory (meta-kvm, meta-xen), all of them in meta-virtualization. Is there another way ?

Thanks,

Mihai


Re: meta-virtualization structure

Raymond Danks <ray.danks@...>
 

On 12/05/2012 05:02 AM, Prica, Mihai wrote:

Hi,

 

I wanted to include my work with meta-kvm into the new layer(meta-virtualization) and I was thinking about the best method of doing this.  The problem is there are different kernel configs depending on the hypervisor and different values for the PACKAGECONFIG in libvirt.

 

One solution would be to move all the common pieces into a meta layer and group the hypervisor configurations into a specific directory (meta-kvm, meta-xen), all of them in meta-virtualization. Is there another way ?


It seems to me the choice of hypervisor should be made in the distro configuration.  Can't this be handled with the addition of a HYPERVISOR definition there?

Thanks,

Mihai



_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization


Re: meta-virtualization structure

David Nyström <david.nystrom@...>
 

On 12/05/2012 07:57 PM, Raymond Danks wrote:
On 12/05/2012 05:02 AM, Prica, Mihai wrote:

Hi,

I wanted to include my work with meta-kvm into the new
layer(meta-virtualization) and I was thinking about the best method of
doing this. The problem is there are different kernel configs
depending on the hypervisor and different values for the PACKAGECONFIG
in libvirt.

One solution would be to move all the common pieces into a meta layer
and group the hypervisor configurations into a specific directory
(meta-kvm, meta-xen), all of them in meta-virtualization. Is there
another way ?
It seems to me the choice of hypervisor should be made in the distro
configuration. Can't this be handled with the addition of a HYPERVISOR
definition there?
For kernel Kconfig I think this will be a good idea for config options which cannot be set to =m, and are mutually exclusive.

Different values for PACKAGECONF in libvirt for xen/kvm is not neccesarily needed, unless your focus is to optimize binary package sizes. libvirt drivers for xen/kvm should not be mutually exclusive during build/packaging/runtime afaik.
Trying to use a hypervisor driver in runtime where the underlying tech. is not available will result in libvirt runtime errors.

Adding specific binary size optimizations flavours, such as xen-minimal et.c. of course also be done from DISTRO or local.conf.


Thanks,

Mihai



_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization



_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization


[PATCH 00/14] Addition of meta-cloud

David Nystr?m
 

Since there are some common parts, please review,
specifically the libvirt changes.

David Nyström (14):
Added protobuf-c criu dependency
Added protobuf criu dependency
Added CRIU recipe
Added lxc recipe
Added netcf recipe, libvirt dependency
Added openbsd-netcat recipe, libvirt dependency
Added openflow recipe
Added openvswitch recipe
Added .gitignore file
Changed David Nyströms email in README
Added template cloud-* images
Added some details in README, and made the description common
Upgraded to libvirt 1.0.0, and added a more detailed packageconfig
Added kernel configuration for LxC and in kernel OpenvSwitch

.gitignore | 6 +
README | 13 +-
recipes-containers/criu/criu_git.bb | 29 +++
.../criu/files/0001-Fixed-hardcoding.patch | 47 ++++
recipes-containers/criu/files/disable_tests.patch | 19 ++
recipes-containers/criu/protobuf-c_0.15.bb | 20 ++
recipes-containers/criu/protobuf_2.4.1.bb | 18 ++
recipes-containers/lxc/files/libmounts.patch | 48 ++++
recipes-containers/lxc/files/noldconfig.patch | 29 +++
recipes-containers/lxc/lxc_0.8.0.bb | 39 +++
recipes-extended/images/cloud-image-compute.bb | 14 +
recipes-extended/images/cloud-image-controller.bb | 34 +++
recipes-extended/images/cloud-image-guest.bb | 18 ++
recipes-extended/libvirt/libvirt_1.0.0.bb | 139 ++++++++++
recipes-kernel/linux/linux-yocto/lxc.cfg | 22 ++
recipes-kernel/linux/linux-yocto/lxc.scc | 4 +
recipes-kernel/linux/linux-yocto/vswitch.cfg | 2 +
recipes-kernel/linux/linux-yocto/vswitch.scc | 4 +
recipes-kernel/linux/linux-yocto_3.4.bbappend | 5 +-
recipes-networking/netcat/openbsd-netcat_1.6.bb | 29 +++
recipes-networking/netcf/netcf_git.bb | 25 ++
recipes-networking/openflow/openflow_1.0.bb | 24 ++
.../openvswitch/files/openvswitch-controller | 274 ++++++++++++++++++++
.../openvswitch/files/openvswitch-controller-setup | 29 +++
.../openvswitch/files/openvswitch-example | 102 ++++++++
.../openvswitch/files/openvswitch-switch | 102 ++++++++
.../openvswitch/files/openvswitch-switch-setup | 8 +
.../openvswitch/openvswitch_1.4.3.bb | 99 +++++++
28 files changed, 1194 insertions(+), 8 deletions(-)
create mode 100644 .gitignore
create mode 100644 recipes-containers/criu/criu_git.bb
create mode 100644 recipes-containers/criu/files/0001-Fixed-hardcoding.patch
create mode 100644 recipes-containers/criu/files/disable_tests.patch
create mode 100644 recipes-containers/criu/protobuf-c_0.15.bb
create mode 100644 recipes-containers/criu/protobuf_2.4.1.bb
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
create mode 100644 recipes-extended/images/cloud-image-compute.bb
create mode 100644 recipes-extended/images/cloud-image-controller.bb
create mode 100644 recipes-extended/images/cloud-image-guest.bb
create mode 100644 recipes-extended/libvirt/libvirt_1.0.0.bb
create mode 100644 recipes-kernel/linux/linux-yocto/lxc.cfg
create mode 100644 recipes-kernel/linux/linux-yocto/lxc.scc
create mode 100644 recipes-kernel/linux/linux-yocto/vswitch.cfg
create mode 100644 recipes-kernel/linux/linux-yocto/vswitch.scc
create mode 100644 recipes-networking/netcat/openbsd-netcat_1.6.bb
create mode 100644 recipes-networking/netcf/netcf_git.bb
create mode 100644 recipes-networking/openflow/openflow_1.0.bb
create mode 100755 recipes-networking/openvswitch/files/openvswitch-controller
create mode 100644 recipes-networking/openvswitch/files/openvswitch-controller-setup
create mode 100644 recipes-networking/openvswitch/files/openvswitch-example
create mode 100644 recipes-networking/openvswitch/files/openvswitch-switch
create mode 100644 recipes-networking/openvswitch/files/openvswitch-switch-setup
create mode 100644 recipes-networking/openvswitch/openvswitch_1.4.3.bb

--
1.7.9.5


[PATCH 01/14] Added protobuf-c criu dependency

David Nystr?m
 

---
recipes-containers/criu/files/disable_tests.patch | 19 +++++++++++++++++++
recipes-containers/criu/protobuf-c_0.15.bb | 20 ++++++++++++++++++++
2 files changed, 39 insertions(+)
create mode 100644 recipes-containers/criu/files/disable_tests.patch
create mode 100644 recipes-containers/criu/protobuf-c_0.15.bb

diff --git a/recipes-containers/criu/files/disable_tests.patch b/recipes-containers/criu/files/disable_tests.patch
new file mode 100644
index 0000000..dac8942
--- /dev/null
+++ b/recipes-containers/criu/files/disable_tests.patch
@@ -0,0 +1,19 @@
+diff -Naur protobuf-c-0.15.old/src/Makefile.am protobuf-c-0.15/src/Makefile.am
+--- protobuf-c-0.15.old/src/Makefile.am 2012-11-28 14:59:57.845251943 +0100
++++ protobuf-c-0.15/src/Makefile.am 2012-11-28 15:00:23.549252632 +0100
+@@ -1,5 +1,5 @@
+ if BUILD_PROTOC_C
+-SUBDIRS = . test
++
+ bin_PROGRAMS = protoc-c
+ protoc_c_SOURCES = \
+ google/protobuf/compiler/c/c_service.cc \
+@@ -23,7 +23,7 @@
+ lib_LTLIBRARIES = libprotobuf-c.la
+ protobufcincludedir = $(includedir)/google/protobuf-c
+
+-EXTRA_DIST = CMakeLists.txt test/CMakeLists.txt
++EXTRA_DIST = CMakeLists.txt
+
+ libprotobuf_c_la_SOURCES = \
+ google/protobuf-c/protobuf-c-dispatch.c \
diff --git a/recipes-containers/criu/protobuf-c_0.15.bb b/recipes-containers/criu/protobuf-c_0.15.bb
new file mode 100644
index 0000000..d9d4fd9
--- /dev/null
+++ b/recipes-containers/criu/protobuf-c_0.15.bb
@@ -0,0 +1,20 @@
+SUMMARY = "protobuf-c"
+DESCRIPTION = "This package provides a code generator and runtime libraries to use Protocol Buffers from pure C"
+HOMEPAGE = "http://code.google.com/p/protobuf-c/"
+SECTION = "console/tools"
+LICENSE = "Apache-2.0"
+
+LIC_FILES_CHKSUM = "file://src/google/protobuf-c/protobuf-c.c;endline=33;md5=333140fae7cf8a38dc5f980ddb63704b"
+
+PR = "r0"
+
+DEPENDS = "protobuf"
+
+SRC_URI[md5sum] = "73ff0c8df50d2eee75269ad8f8c07dc8"
+SRC_URI[sha256sum] = "8fcb538e13a5431c46168fc8f2e6ad2574e2db9b684c0c72b066e24f010a0036"
+SRC_URI = "http://protobuf-c.googlecode.com/files/protobuf-c-${PV}.tar.gz \
+ file://disable_tests.patch"
+
+inherit autotools
+
+BBCLASSEXTEND = "native nativesdk"
\ No newline at end of file
--
1.7.9.5


[PATCH 02/14] Added protobuf criu dependency

David Nystr?m
 

---
recipes-containers/criu/protobuf_2.4.1.bb | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 recipes-containers/criu/protobuf_2.4.1.bb

diff --git a/recipes-containers/criu/protobuf_2.4.1.bb b/recipes-containers/criu/protobuf_2.4.1.bb
new file mode 100644
index 0000000..d8f1b53
--- /dev/null
+++ b/recipes-containers/criu/protobuf_2.4.1.bb
@@ -0,0 +1,18 @@
+SUMMARY = "protobuf"
+DESCRIPTION = "Protocol Buffers are a way of encoding structured data in an efficient yet extensible format. Google uses Protocol Buffers for almost all of its internal RPC protocols and file formats."
+HOMEPAGE = "http://code.google.com/p/protobuf/"
+SECTION = "console/tools"
+LICENSE = "BSD-3-Clause"
+
+LIC_FILES_CHKSUM = "file://COPYING.txt;md5=af6809583bfde9a31595a58bb4a24514"
+
+PR = "r0"
+
+SRC_URI[md5sum] = "dc84e9912ea768baa1976cb7bbcea7b5"
+SRC_URI[sha256sum] = "eac6969b617f397247e805267da2b0db3ff9e5a9163b123503a192fbb5776567"
+SRC_URI = "http://protobuf.googlecode.com/files/protobuf-${PV}.tar.gz"
+
+EXTRA_OECONF += " --with-protoc=echo"
+inherit autotools
+
+BBCLASSEXTEND = "native nativesdk"
\ No newline at end of file
--
1.7.9.5


[PATCH 03/14] Added CRIU recipe

David Nystr?m
 

---
recipes-containers/criu/criu_git.bb | 29 ++++++++++++
.../criu/files/0001-Fixed-hardcoding.patch | 47 ++++++++++++++++++++
2 files changed, 76 insertions(+)
create mode 100644 recipes-containers/criu/criu_git.bb
create mode 100644 recipes-containers/criu/files/0001-Fixed-hardcoding.patch

diff --git a/recipes-containers/criu/criu_git.bb b/recipes-containers/criu/criu_git.bb
new file mode 100644
index 0000000..878827f
--- /dev/null
+++ b/recipes-containers/criu/criu_git.bb
@@ -0,0 +1,29 @@
+SUMMARY = "CRIU"
+DESCRIPTION = "Checkpoint/Restore In Userspace, or CRIU, is a software tool for Linux operating system. Using this tool, you can freeze a running application (or part of it) and checkpoint it to a hard drive as a collection of files. You can then use the files to restore and run the application from the point it was frozen at. The distinctive feature of the CRIU project is that it is mainly implemented in user space"
+HOMEPAGE = "http://criu.org"
+SECTION = "console/tools"
+LICENSE = "GPLv2"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=12920dfe6b35a0758155f0e62878b366"
+
+SRCREV = "d81c9a4618db2f618bdb8e207b7f0fec631c7142"
+PR = "r0"
+PV = "0.2+git${SRCPV}"
+
+SRC_URI = "git://git.criu.org/crtools.git;protocol=git \
+ file://0001-Fixed-hardcoding.patch"
+
+DEPENDS += "protobuf-c-native protobuf-c"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE += "ARCH=${TARGET_ARCH} WERROR=0"
+
+do_compile () {
+ oe_runmake
+}
+
+do_install () {
+ mkdir -p ${D}/${bindir}
+ install -m 755 ${S}/crtools ${D}/${bindir}/crtools
+}
\ No newline at end of file
diff --git a/recipes-containers/criu/files/0001-Fixed-hardcoding.patch b/recipes-containers/criu/files/0001-Fixed-hardcoding.patch
new file mode 100644
index 0000000..5ff0a78
--- /dev/null
+++ b/recipes-containers/criu/files/0001-Fixed-hardcoding.patch
@@ -0,0 +1,47 @@
+From 32c6c037a6de0a0972e16949ebb64ffebb5b7bcc Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?David=20Nystr=C3=B6m?= <david.nystrom@...>
+Date: Wed, 28 Nov 2012 15:07:27 +0100
+Subject: [PATCH] Fixed hardcoding
+
+---
+ Makefile.inc | 24 ++++++++++++------------
+ 1 file changed, 12 insertions(+), 12 deletions(-)
+
+diff --git a/Makefile.inc b/Makefile.inc
+index 722cbfc..3ae693e 100644
+--- a/Makefile.inc
++++ b/Makefile.inc
+@@ -11,18 +11,18 @@ else
+ endif
+ export E Q
+
+-FIND := find
+-CSCOPE := cscope
+-TAGS := ctags
+-RM := rm
+-LD := ld
+-HEXDUMP := hexdump
+-CC := gcc
+-ECHO := echo
+-NM := nm
+-AWK := awk
+-SH := sh
+-MAKE := make
++FIND ?= find
++CSCOPE ?= cscope
++TAGS ?= ctags
++RM ?= rm
++LD ?= ld
++HEXDUMP ?= hexdump
++CC ?= gcc
++ECHO ?= echo
++NM ?= nm
++AWK ?= awk
++SH ?= sh
++MAKE ?= make
+
+ # Additional ARCH settings for x86
+ ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
+--
+1.7.9.5
+
--
1.7.9.5


[PATCH 04/14] Added lxc recipe

David Nystr?m
 

---
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@...>
+Date: Wed, 12 Sep 2012 11:05:07 -0500
+Subject: [PATCH] create lib mounts only if the host directories exist
+
+Signed-off-by: Stuart Yoder <stuart.yoder@...>
+---
+ 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@...>
+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


[PATCH 05/14] Added netcf recipe, libvirt dependency

David Nystr?m
 

---
recipes-networking/netcf/netcf_git.bb | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
create mode 100644 recipes-networking/netcf/netcf_git.bb

diff --git a/recipes-networking/netcf/netcf_git.bb b/recipes-networking/netcf/netcf_git.bb
new file mode 100644
index 0000000..60fc446
--- /dev/null
+++ b/recipes-networking/netcf/netcf_git.bb
@@ -0,0 +1,25 @@
+SUMMARY = "netcf"
+DESCRIPTION = "netcf is a cross-platform network configuration library."
+HOMEPAGE = "https://fedorahosted.org/netcf/"
+SECTION = "console/tools"
+LICENSE = "LGPLv2.1"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=bbb461211a33b134d42ed5ee802b37ff"
+
+SRCREV = "2b0d9ca226c13d7150382367f62b256bdb2db5ef"
+PR = "r0"
+PV = "0.2.2+git${SRCPV}"
+
+SRC_URI = "git://git.fedorahosted.org/netcf.git;protocol=git"
+
+DEPENDS += "augeas libnl libxslt libxml2"
+
+S = "${WORKDIR}/git"
+
+inherit gettext autotools
+
+do_configure_prepend() {
+ cd ${S}
+ ./bootstrap
+}
+
--
1.7.9.5


[PATCH 06/14] Added openbsd-netcat recipe, libvirt dependency

David Nystr?m
 

---
recipes-networking/netcat/openbsd-netcat_1.6.bb | 29 +++++++++++++++++++++++
1 file changed, 29 insertions(+)
create mode 100644 recipes-networking/netcat/openbsd-netcat_1.6.bb

diff --git a/recipes-networking/netcat/openbsd-netcat_1.6.bb b/recipes-networking/netcat/openbsd-netcat_1.6.bb
new file mode 100644
index 0000000..1ae3f37
--- /dev/null
+++ b/recipes-networking/netcat/openbsd-netcat_1.6.bb
@@ -0,0 +1,29 @@
+DESCRIPTION = "OpenBSD Netcat"
+HOMEPAGE = "http://code.google.com/p/openbsd-netcat/"
+SECTION = "console/network"
+LICENSE = "BSD-3-Clause"
+PR = "r0"
+
+SRCREV = "5"
+
+SRC_URI = "svn://openbsd-netcat.googlecode.com/svn;module=trunk;protocol=http"
+S = "${WORKDIR}/trunk"
+
+inherit update-alternatives gettext
+
+do_configure[noexec] = "1"
+
+do_compile() {
+ cd ${S}
+ oe_runmake
+}
+
+do_install() {
+ install -d ${D}${bindir}
+ install -m 755 ${S}/nc ${D}${bindir}/nc.${BPN}
+}
+
+ALTERNATIVE_${PN} = "nc"
+ALTERNATIVE_PRIORITY = "101"
+
+BBCLASSEXTEND = "nativesdk"
--
1.7.9.5


[PATCH 07/14] Added openflow recipe

David Nystr?m
 

---
recipes-networking/openflow/openflow_1.0.bb | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
create mode 100644 recipes-networking/openflow/openflow_1.0.bb

diff --git a/recipes-networking/openflow/openflow_1.0.bb b/recipes-networking/openflow/openflow_1.0.bb
new file mode 100644
index 0000000..3663e50
--- /dev/null
+++ b/recipes-networking/openflow/openflow_1.0.bb
@@ -0,0 +1,24 @@
+SUMMARY = "OpelFlow"
+DESCRIPTION = "Provide a generic framework for handling devices in userspace."
+HOMEPAGE = "http://www.openflow.org"
+SECTION = "networking"
+LICENSE = "GPLv2"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=e870c934e2c3d6ccf085fd7cf0a1e2e2"
+
+SRCREV = "5ccca75a69f99791659bcfbcf35353ab1921320a"
+PR = "r0"
+PV = "1.0+git${SRCPV}"
+
+SRC_URI = "git://gitosis.stanford.edu/openflow.git;protocol=git"
+
+DEPENDS = "virtual/libc"
+
+EXTRA_OECONF += "KARCH=${TARGET_ARCH}"
+
+PACKAGECONFIG ??= "libssl"
+PACKAGECONFIG[libssl] = "--enable-ssl,--disable-ssl, openssl, libssl"
+
+S = "${WORKDIR}/git"
+
+inherit autotools
\ No newline at end of file
--
1.7.9.5


[PATCH 08/14] Added openvswitch recipe

David Nystr?m
 

---
.../openvswitch/files/openvswitch-controller | 274 ++++++++++++++++++++
.../openvswitch/files/openvswitch-controller-setup | 29 +++
.../openvswitch/files/openvswitch-example | 102 ++++++++
.../openvswitch/files/openvswitch-switch | 102 ++++++++
.../openvswitch/files/openvswitch-switch-setup | 8 +
.../openvswitch/openvswitch_1.4.3.bb | 99 +++++++
6 files changed, 614 insertions(+)
create mode 100755 recipes-networking/openvswitch/files/openvswitch-controller
create mode 100644 recipes-networking/openvswitch/files/openvswitch-controller-setup
create mode 100644 recipes-networking/openvswitch/files/openvswitch-example
create mode 100644 recipes-networking/openvswitch/files/openvswitch-switch
create mode 100644 recipes-networking/openvswitch/files/openvswitch-switch-setup
create mode 100644 recipes-networking/openvswitch/openvswitch_1.4.3.bb

diff --git a/recipes-networking/openvswitch/files/openvswitch-controller b/recipes-networking/openvswitch/files/openvswitch-controller
new file mode 100755
index 0000000..026974a
--- /dev/null
+++ b/recipes-networking/openvswitch/files/openvswitch-controller
@@ -0,0 +1,274 @@
+#!/bin/sh
+#
+# Copyright (c) 2011 Nicira Networks Inc.
+# Copyright (c) 2007, 2009 Javier Fernandez-Sanguino <jfs@...>
+#
+# This is free software; you may redistribute it and/or modify
+# it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2,
+# or (at your option) any later version.
+#
+# This is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License with
+# the Debian operating system, in /usr/share/common-licenses/GPL; if
+# not, write to the Free Software Foundation, Inc., 59 Temple Place,
+# Suite 330, Boston, MA 02111-1307 USA
+#
+### BEGIN INIT INFO
+# Provides: openvswitch-controller
+# Required-Start: $network $local_fs $remote_fs
+# Required-Stop: $remote_fs
+# Should-Start: $named
+# Should-Stop:
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: Open vSwitch controller
+### END INIT INFO
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+
+DAEMON=/usr/bin/ovs-controller # Introduce the server's location here
+NAME=ovs-controller # Introduce the short server's name here
+DESC=ovs-controller # Introduce a short description here
+LOGDIR=/var/log/openvswitch # Log directory to use
+
+PIDFILE=/var/run/openvswitch/$NAME.pid
+
+test -x $DAEMON || exit 0
+
+. /lib/lsb/init-functions
+
+# Default options, these can be overriden by the information
+# at /etc/default/openvswitch-controller
+DAEMON_OPTS="" # Additional options given to the server
+
+DODTIME=10 # Time to wait for the server to die, in seconds
+ # If this value is set too low you might not
+ # let some servers to die gracefully and
+ # 'restart' will not work
+
+LOGFILE=$LOGDIR/$NAME.log # Server logfile
+#DAEMONUSER= # User to run the daemons as. If this value
+ # is set start-stop-daemon will chuid the server
+
+# Include defaults if available
+default=/etc/default/openvswitch-controller
+if [ -f $default ] ; then
+ . $default
+fi
+
+# Check that the user exists (if we set a user)
+# Does the user exist?
+if [ -n "$DAEMONUSER" ] ; then
+ if getent passwd | grep -q "^$DAEMONUSER:"; then
+ # Obtain the uid and gid
+ DAEMONUID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $3}'`
+ DAEMONGID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $4}'`
+ else
+ log_failure_msg "The user $DAEMONUSER, required to run $NAME does not exist."
+ exit 1
+ fi
+fi
+
+
+set -e
+
+running_pid() {
+# Check if a given process pid's cmdline matches a given name
+ pid=$1
+ name=$2
+ [ -z "$pid" ] && return 1
+ [ ! -d /proc/$pid ] && return 1
+ cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
+ # Is this the expected server
+ [ "$cmd" != "$name" ] && return 1
+ return 0
+}
+
+running() {
+# Check if the process is running looking at /proc
+# (works for all users)
+
+ # No pidfile, probably no daemon present
+ [ ! -f "$PIDFILE" ] && return 1
+ pid=`cat $PIDFILE`
+ running_pid $pid $DAEMON || return 1
+ return 0
+}
+
+start_server() {
+ if [ -z "$LISTEN" ]; then
+ echo "$default: No connection methods configured, controller disabled" >&2
+ exit 0
+ fi
+
+ if [ ! -d /var/run/openvswitch ]; then
+ install -d -m 755 -o root -g root /var/run/openvswitch
+ fi
+
+ SSL_OPTS=
+ case $LISTEN in
+ *ssl*)
+ : ${PRIVKEY:=/etc/openvswitch-controller/privkey.pem}
+ : ${CERT:=/etc/openvswitch-controller/cert.pem}
+ : ${CACERT:=/etc/openvswitch-controller/cacert.pem}
+ if test ! -e "$PRIVKEY" || test ! -e "$CERT" ||
+ test ! -e "$CACERT"; then
+ if test ! -e "$PRIVKEY"; then
+ echo "$PRIVKEY: private key missing" >&2
+ fi
+ if test ! -e "$CERT"; then
+ echo "$CERT: certificate for private key missing" >&2
+ fi
+ if test ! -e "$CACERT"; then
+ echo "$CACERT: CA certificate missing" >&2
+ fi
+ exit 1
+ fi
+ SSL_OPTS="--private-key=$PRIVKEY --certificate=$CERT --ca-cert=$CACERT"
+ ;;
+ esac
+
+# Start the process using the wrapper
+ if [ -z "$DAEMONUSER" ] ; then
+ start-stop-daemon --start --pidfile $PIDFILE \
+ --exec $DAEMON -- --detach --pidfile=$PIDFILE \
+ $LISTEN $DAEMON_OPTS $SSL_OPTS
+ errcode=$?
+ else
+# if we are using a daemonuser then change the user id
+ start-stop-daemon --start --quiet --pidfile $PIDFILE \
+ --chuid $DAEMONUSER --exec $DAEMON -- \
+ --detach --pidfile=$PIDFILE $LISTEN $DAEMON_OPTS \
+ $SSL_OPTS
+ errcode=$?
+ fi
+ return $errcode
+}
+
+stop_server() {
+# Stop the process using the wrapper
+ if [ -z "$DAEMONUSER" ] ; then
+ start-stop-daemon --stop --quiet --pidfile $PIDFILE \
+ --exec $DAEMON
+ errcode=$?
+ else
+# if we are using a daemonuser then look for process that match
+ start-stop-daemon --stop --quiet --pidfile $PIDFILE \
+ --user $DAEMONUSER --exec $DAEMON
+ errcode=$?
+ fi
+
+ return $errcode
+}
+
+reload_server() {
+ [ ! -f "$PIDFILE" ] && return 1
+ pid=`cat $PIDFILE` # This is the daemon's pid
+ # Send a SIGHUP
+ kill -1 $pid
+ return $?
+}
+
+force_stop() {
+# Force the process to die killing it manually
+ [ ! -e "$PIDFILE" ] && return
+ if running ; then
+ kill -15 $pid
+ # Is it really dead?
+ sleep "$DODTIME"
+ if running ; then
+ kill -9 $pid
+ sleep "$DODTIME"
+ if running ; then
+ echo "Cannot kill $NAME (pid=$pid)!"
+ exit 1
+ fi
+ fi
+ fi
+ rm -f $PIDFILE
+}
+
+
+case "$1" in
+ start)
+ log_begin_msg "Starting $DESC " "$NAME"
+ # Check if it's running first
+ if running ; then
+ log_warning_msg "apparently already running"
+ log_end_msg 0
+ exit 0
+ fi
+ if start_server && running ; then
+ # It's ok, the server started and is running
+ log_end_msg 0
+ else
+ # Either we could not start it or it is not running
+ # after we did
+ # NOTE: Some servers might die some time after they start,
+ # this code does not try to detect this and might give
+ # a false positive (use 'status' for that)
+ log_end_msg 1
+ fi
+ ;;
+ stop)
+ log_begin_msg "Stopping $DESC" "$NAME"
+ if running ; then
+ # Only stop the server if we see it running
+ stop_server
+ log_end_msg $?
+ else
+ # If it's not running don't do anything
+ log_warning_msg "apparently not running"
+ log_end_msg 0
+ exit 0
+ fi
+ ;;
+ force-stop)
+ # First try to stop gracefully the program
+ $0 stop
+ if running; then
+ # If it's still running try to kill it more forcefully
+ log_begin_msg "Stopping (force) $DESC" "$NAME"
+ force_stop
+ log_end_msg $?
+ fi
+ ;;
+ restart|force-reload)
+ log_begin_msg "Restarting $DESC" "$NAME"
+ stop_server
+ # Wait some sensible amount, some server need this
+ [ -n "$DODTIME" ] && sleep $DODTIME
+ start_server
+ running
+ log_end_msg $?
+ ;;
+ status)
+
+ log_begin_msg "Checking status of $DESC" "$NAME"
+ if running ; then
+ log_begin_msg "running"
+ log_end_msg 0
+ else
+ log_warning_msg "apparently not running"
+ log_end_msg 1
+ exit 1
+ fi
+ ;;
+ # Use this if the daemon cannot reload
+ reload)
+ log_warning_msg "Reloading $NAME daemon: not implemented, as the daemon"
+ log_warning_msg "cannot re-read the config file (use restart)."
+ ;;
+ *)
+ N=/etc/init.d/openvswitch-controller
+ echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/recipes-networking/openvswitch/files/openvswitch-controller-setup b/recipes-networking/openvswitch/files/openvswitch-controller-setup
new file mode 100644
index 0000000..1d9f926
--- /dev/null
+++ b/recipes-networking/openvswitch/files/openvswitch-controller-setup
@@ -0,0 +1,29 @@
+# This is a POSIX shell fragment -*- sh -*-
+
+# LISTEN: What OpenFlow connection methods should the controller listen on?
+#
+# This is a space-delimited list of connection methods:
+#
+# * "pssl:[PORT]": Listen for SSL connections on the specified PORT
+# (default: 6633). The private key, certificate, and CA certificate
+# must be specified below.
+#
+# * "pctp:[PORT]": Listen for TCP connections on the specified PORT
+# (default: 6633). Not recommended for security reasons.
+#
+LISTEN="pssl:"
+
+# PRIVKEY: Name of file containing controller's private key.
+# Required if SSL enabled.
+PRIVKEY=/etc/openvswitch-controller/privkey.pem
+
+# CERT: Name of file containing certificate for private key.
+# Required if SSL enabled.
+CERT=/etc/openvswitch-controller/cert.pem
+
+# CACERT: Name of file containing switch CA certificate.
+# Required if SSL enabled.
+CACERT=/etc/openvswitch-controller/cacert.pem
+
+# Additional options to pass to controller, e.g. "--hub"
+DAEMON_OPTS=""
diff --git a/recipes-networking/openvswitch/files/openvswitch-example b/recipes-networking/openvswitch/files/openvswitch-example
new file mode 100644
index 0000000..6f08c3f
--- /dev/null
+++ b/recipes-networking/openvswitch/files/openvswitch-example
@@ -0,0 +1,102 @@
+#! /bin/sh
+#
+# Copyright (C) 2011 Nicira Networks, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at:
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+### BEGIN INIT INFO
+# Provides: openvswitch-switch
+# Required-Start: $network $named $remote_fs $syslog
+# Required-Stop: $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: Open vSwitch switch
+### END INIT INFO
+
+(test -x /usr/sbin/ovs-vswitchd && test -x /usr/sbin/ovsdb-server) || exit 0
+
+. /usr/share/openvswitch/scripts/ovs-lib
+test -e /etc/default/openvswitch-switch && . /etc/default/openvswitch-switch
+
+if test X"$BRCOMPAT" = Xyes && test ! -x /usr/sbin/ovs-brcompatd; then
+ BRCOMPAT=no
+ log_warning_msg "ovs-brcompatd missing, disabling bridge compatibility"
+fi
+
+ovs_ctl () {
+ set /usr/share/openvswitch/scripts/ovs-ctl "$@"
+ if test X"$BRCOMPAT" = Xyes; then
+ set "$@" --brcompat
+ fi
+ "$@"
+}
+
+load_kmod () {
+ ovs_ctl load-kmod || exit $?
+}
+
+start () {
+ if ovs_ctl load-kmod; then
+ :
+ else
+ echo "Module has probably not been built for this kernel."
+ if ! test -d /usr/share/doc/openvswitch-datapath-source; then
+ echo "Install the openvswitch-datapath-source package, then read"
+ else
+ echo "For instructions, read"
+ fi
+ echo "/usr/share/doc/openvswitch-datapath-source/README.Debian"
+ fi
+ set ovs_ctl ${1-start} --system-id=random
+ if test X"$FORCE_COREFILES" != X; then
+ set "$@" --force-corefiles="$FORCE_COREFILES"
+ fi
+ "$@" || exit $?
+
+ ovs_ctl --protocol=gre enable-protocol
+}
+
+stop () {
+ ovs_ctl stop
+}
+
+case $1 in
+ start)
+ start
+ ;;
+ stop | force-stop)
+ stop
+ ;;
+ reload | force-reload)
+ # The OVS daemons keep up-to-date.
+ ;;
+ restart)
+ stop
+ start
+ ;;
+ status)
+ ovs_ctl status
+ ;;
+ force-reload-kmod)
+ start force-reload-kmod
+ ;;
+ load-kmod)
+ load_kmod
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart|force-reload|status|force-stop|force-reload-kmod|load-kmod}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/recipes-networking/openvswitch/files/openvswitch-switch b/recipes-networking/openvswitch/files/openvswitch-switch
new file mode 100644
index 0000000..6f08c3f
--- /dev/null
+++ b/recipes-networking/openvswitch/files/openvswitch-switch
@@ -0,0 +1,102 @@
+#! /bin/sh
+#
+# Copyright (C) 2011 Nicira Networks, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at:
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+### BEGIN INIT INFO
+# Provides: openvswitch-switch
+# Required-Start: $network $named $remote_fs $syslog
+# Required-Stop: $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: Open vSwitch switch
+### END INIT INFO
+
+(test -x /usr/sbin/ovs-vswitchd && test -x /usr/sbin/ovsdb-server) || exit 0
+
+. /usr/share/openvswitch/scripts/ovs-lib
+test -e /etc/default/openvswitch-switch && . /etc/default/openvswitch-switch
+
+if test X"$BRCOMPAT" = Xyes && test ! -x /usr/sbin/ovs-brcompatd; then
+ BRCOMPAT=no
+ log_warning_msg "ovs-brcompatd missing, disabling bridge compatibility"
+fi
+
+ovs_ctl () {
+ set /usr/share/openvswitch/scripts/ovs-ctl "$@"
+ if test X"$BRCOMPAT" = Xyes; then
+ set "$@" --brcompat
+ fi
+ "$@"
+}
+
+load_kmod () {
+ ovs_ctl load-kmod || exit $?
+}
+
+start () {
+ if ovs_ctl load-kmod; then
+ :
+ else
+ echo "Module has probably not been built for this kernel."
+ if ! test -d /usr/share/doc/openvswitch-datapath-source; then
+ echo "Install the openvswitch-datapath-source package, then read"
+ else
+ echo "For instructions, read"
+ fi
+ echo "/usr/share/doc/openvswitch-datapath-source/README.Debian"
+ fi
+ set ovs_ctl ${1-start} --system-id=random
+ if test X"$FORCE_COREFILES" != X; then
+ set "$@" --force-corefiles="$FORCE_COREFILES"
+ fi
+ "$@" || exit $?
+
+ ovs_ctl --protocol=gre enable-protocol
+}
+
+stop () {
+ ovs_ctl stop
+}
+
+case $1 in
+ start)
+ start
+ ;;
+ stop | force-stop)
+ stop
+ ;;
+ reload | force-reload)
+ # The OVS daemons keep up-to-date.
+ ;;
+ restart)
+ stop
+ start
+ ;;
+ status)
+ ovs_ctl status
+ ;;
+ force-reload-kmod)
+ start force-reload-kmod
+ ;;
+ load-kmod)
+ load_kmod
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart|force-reload|status|force-stop|force-reload-kmod|load-kmod}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/recipes-networking/openvswitch/files/openvswitch-switch-setup b/recipes-networking/openvswitch/files/openvswitch-switch-setup
new file mode 100644
index 0000000..73387fb
--- /dev/null
+++ b/recipes-networking/openvswitch/files/openvswitch-switch-setup
@@ -0,0 +1,8 @@
+# This is a POSIX shell fragment -*- sh -*-
+
+# FORCE_COREFILES: If 'yes' then core files will be enabled.
+# FORCE_COREFILES=yes
+
+# BRCOMPAT: If 'yes' and the openvswitch-brcompat package is installed, then
+# Linux bridge compatibility will be enabled.
+# BRCOMPAT=yes
diff --git a/recipes-networking/openvswitch/openvswitch_1.4.3.bb b/recipes-networking/openvswitch/openvswitch_1.4.3.bb
new file mode 100644
index 0000000..88f0114
--- /dev/null
+++ b/recipes-networking/openvswitch/openvswitch_1.4.3.bb
@@ -0,0 +1,99 @@
+SUMMARY = "OpenvSwitch"
+DESCRIPTION = "Open vSwitch is a production quality, multilayer virtual switch licensed under the open source Apache 2.0 license. It is designed to enable massive network automation through programmatic extension, while still supporting standard management interfaces and protocols (e.g. NetFlow, sFlow, SPAN, RSPAN, CLI, LACP, 802.1ag)"
+HOMEPAGE = "http://openvswitch.org/"
+SECTION = "networking"
+LICENSE = "Apache-2"
+
+DEPENDS += "bridge-utils openssl python perl"
+
+RDEPENDS_${PN} += "util-linux-uuidgen util-linux-libuuid \
+ python perl perl-module-strict"
+RDEPENDS_${PN}-controller = "${PN} lsb ${PN}-pki"
+RDEPENDS_${PN}-switch = "${PN} openssl procps util-linux-uuidgen"
+RDEPENDS_${PN}-pki = "${PN}"
+RDEPENDS_${PN}-brcompat = "${PN} ${PN}-switch"
+RRECOMMENDS_${PN} += "kernel-module-openvswitch"
+
+PR = "r1"
+
+SRC_URI = "http://openvswitch.org/releases/openvswitch-${PV}.tar.gz \
+ file://openvswitch-switch \
+ file://openvswitch-switch-setup \
+ file://openvswitch-controller \
+ file://openvswitch-controller-setup \
+ "
+
+SRC_URI[md5sum] = "66df8e84f579e734aa4a43bc502baffd"
+SRC_URI[sha256sum] = "be1ae1ecff0ff095d24f552c148dd4d2931d187bbb35b3d9205416a0aca746a8"
+LIC_FILES_CHKSUM = "file://COPYING;md5=49eeb5acb1f5e510f12c44f176c42253"
+
+# Don't compile kernel modules by default since it heavily depends on
+# kernel version. Use the in-kernel module for now.
+# distro layers can enable with EXTRA_OECONF_pn_openvswitch += ""
+# EXTRA_OECONF = "--with-linux=${STAGING_KERNEL_DIR} KARCH=${TARGET_ARCH}"
+
+ALLOW_EMPTY_${PN}-pki = "1"
+PACKAGES =+ "${PN}-controller ${PN}-switch ${PN}-brcompat ${PN}-pki"
+
+FILES_${PN}-controller = "${sysconfdir}/init.d/openvswitch-controller \
+ ${sysconfdir}/default/openvswitch-controller \
+ ${sysconfdir}/openvswitch-controller \
+ ${bindir}/ovs-controller"
+
+FILES_${PN}-brcompat = "${sbindir}/ovs-brcompatd"
+
+FILES_${PN}-switch = "${sysconfdir}/init.d/openvswitch-switch \
+ ${sysconfdir}/default/openvswitch-switch \
+ "
+inherit autotools update-rc.d
+
+INITSCRIPT_PACKAGES = "${PN}-switch ${PN}-controller"
+INITSCRIPT_NAME_${PN}-switch = "openvswitch-switch"
+INITSCRIPT_PARAMS_${PN}-switch = "defaults 71"
+
+INITSCRIPT_NAME_${PN}-controller = "openvswitch-controller"
+INITSCRIPT_PARAMS_${PN}-controller = "defaults 72"
+
+do_install_append() {
+ install -d ${D}/${sysconfdir}/default/
+ install -m 660 ${WORKDIR}/openvswitch-switch-setup ${D}/${sysconfdir}/default/openvswitch-switch
+ install -d ${D}/${sysconfdir}/openvswitch-controller
+ install -m 660 ${WORKDIR}/openvswitch-controller-setup ${D}/${sysconfdir}/default/openvswitch-controller
+
+ install -d ${D}/${sysconfdir}/init.d/
+ install -m 755 ${WORKDIR}/openvswitch-controller ${D}/${sysconfdir}/init.d/openvswitch-controller
+ install -m 755 ${WORKDIR}/openvswitch-switch ${D}/${sysconfdir}/init.d/openvswitch-switch
+ true || rm -fr ${D}/${datadir}/${PN}/pki
+}
+
+pkg_postinst_${PN}-pki () {
+ # can't do this offline
+ if [ "x$D" != "x" ]; then
+ exit 1
+ fi
+ if test ! -d $D/${datadir}/${PN}/pki; then
+ ovs-pki init --dir=$D/${datadir}/${PN}/pki
+ fi
+}
+
+pkg_postinst_${PN}-controller () {
+ # can't do this offline
+ if [ "x$D" != "x" ]; then
+ exit 1
+ fi
+
+ cd $D/${sysconfdir}/openvswitch-controller
+ if ! test -e cacert.pem; then
+ ln -s $D/${datadir}/${PN}/pki/switchca/cacert.pem cacert.pem
+ fi
+ if ! test -e privkey.pem || ! test -e cert.pem; then
+ oldumask=$(umask)
+ umask 077
+ ovs-pki req+sign --dir=$D/${datadir}/${PN}/pki tmp controller >/dev/null
+ mv tmp-privkey.pem privkey.pem
+ mv tmp-cert.pem cert.pem
+ mv tmp-req.pem req.pem
+ chmod go+r cert.pem req.pem
+ umask $oldumask
+ fi
+}
--
1.7.9.5


[PATCH 09/14] Added .gitignore file

David Nystr?m
 

---
.gitignore | 6 ++++++
1 file changed, 6 insertions(+)
create mode 100644 .gitignore

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..65feb82
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+build*/
+pyshtables.py
+*.swp
+*.orig
+*.rej
+*~
--
1.7.9.5

1 - 20 of 7516