[meta-virtualization] [PATCH 2/2] libvirt: Changed python bindings install location

Prica, Mihai mihai.prica at intel.com
Fri Apr 19 02:36:13 PDT 2013


> -----Original Message-----
> From: Bruce Ashfield [mailto:bruce.ashfield at gmail.com]
> Sent: Thursday, April 18, 2013 6:47 PM
> To: Prica, Mihai
> Cc: meta-virtualization at yoctoproject.org
> Subject: Re: [meta-virtualization] [PATCH 2/2] libvirt: Changed python bindings
> install location
> 
> On Thu, Apr 18, 2013 at 11:10 AM, Mihai Prica <mihai.prica at intel.com> wrote:
> > The libvirt-python files were installed to dist-packages and this is
> > not part of sys.path in yocto so they were not detected. Changed this
> > to site-packages.
> 
> By detected, you mean python couldn't import and use them at runtime on the
> target ?

Yes. I got an error when trying to load the module. From what I saw, In yocto all 
python packages are installed In site-packages. 

Mihai

> 
> Bruce
> 
> >
> > Signed-off-by: Mihai Prica <mihai.prica at intel.com>
> > ---
> >  recipes-extended/libvirt/libvirt-python.inc        |    4 ++--
> >  .../libvirt/libvirt/python_incdir.patch            |   15 +++++++++------
> >  2 files changed, 11 insertions(+), 8 deletions(-)
> >
> > diff --git a/recipes-extended/libvirt/libvirt-python.inc
> > b/recipes-extended/libvirt/libvirt-python.inc
> > index 49d15fb..297e90c 100644
> > --- a/recipes-extended/libvirt/libvirt-python.inc
> > +++ b/recipes-extended/libvirt/libvirt-python.inc
> > @@ -10,5 +10,5 @@ RDEPENDS_${PN}-python += "python"
> >  PACKAGECONFIG_${PN}-python[xen] = ",,,xen-python"
> >
> >  PACKAGES += "${PN}-python-dbg ${PN}-python"
> > -FILES_${PN}-python-dbg += "${libdir}/${PYTHON_DIR}/dist-packages/.debug/"
> > -FILES_${PN}-python += "${libdir}/${PYTHON_DIR}/dist-packages"
> > +FILES_${PN}-python-dbg += "${libdir}/${PYTHON_DIR}/site-
> packages/.debug/"
> > +FILES_${PN}-python += "${libdir}/${PYTHON_DIR}/site-packages"
> > diff --git a/recipes-extended/libvirt/libvirt/python_incdir.patch
> > b/recipes-extended/libvirt/libvirt/python_incdir.patch
> > index 6c77b09..5b78c13 100644
> > --- a/recipes-extended/libvirt/libvirt/python_incdir.patch
> > +++ b/recipes-extended/libvirt/libvirt/python_incdir.patch
> > @@ -1,8 +1,8 @@
> > -Index: libvirt-0.10.2/configure.ac
> > +Index: libvirt-1.0.3/configure.ac
> >
> ==============================================================
> =====
> > ---- libvirt-0.10.2.orig/configure.ac   2012-10-29 11:59:27.091615491 +0200
> > -+++ libvirt-0.10.2/configure.ac        2012-10-29 12:09:50.067603647 +0200
> > -@@ -2397,6 +2397,11 @@
> > +--- libvirt-1.0.3.orig/configure.ac
> > ++++ libvirt-1.0.3/configure.ac
> > +@@ -1878,6 +1878,11 @@ fi
> >
> >   PYTHON_VERSION=
> >   PYTHON_INCLUDES=
> > @@ -14,9 +14,12 @@ Index: libvirt-0.10.2/configure.ac
> >   if test "$with_python" != "no" ; then
> >       if test -x "$with_python/bin/python"
> >       then
> > -@@ -2422,29 +2427,30 @@
> > -         AM_PATH_PYTHON(,, [:])
> > +@@ -1901,31 +1906,32 @@ if test "$with_python" != "no" ; then
> >
> > +     if test "$with_python" = "yes" ; then
> > +         AM_PATH_PYTHON(,, [:])
> > +-
> > ++        pyexecdir=$prefix/lib/python$PYTHON_VERSION/site-packages
> >           if test "$PYTHON" != : ; then
> >  -            PYTHON_CONFIG="$PYTHON-config"
> >  -
> > --
> > 1.7.9.5
> >
> > _______________________________________________
> > meta-virtualization mailing list
> > meta-virtualization at yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/meta-virtualization
> 
> 
> 
> --
> "Thou shalt not follow the NULL pointer, for chaos and madness await thee at its
> end"



More information about the meta-virtualization mailing list