Patchwork [meta-oe,v2,1/1] python-lxml: Add version 2.2.8 (initial recipe)

login
register
mail settings
Submitter Noor Ahsan
Date Sept. 5, 2011, 3:12 p.m.
Message ID <c0474b5644b7bdf87555b5aaba317d4288e0c6fc.1315235172.git.noor_ahsan@mentor.com>
Download mbox | patch
Permalink /patch/11001/
State Superseded, archived
Headers show

Comments

Noor Ahsan - Sept. 5, 2011, 3:12 p.m.
From: Noor Ahsan <noor_ahsan@mentor.com>

* Imported from oe.dev commit id bc6a94559157e6fcc190a22a259c0f757b8664ae.
* Tested with MACHINE = 'qemuppc'

Signed-off-by: Noor Ahsan <noor_ahsan@mentor.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
---
 .../recipes-devtools/python/python-lxml_2.2.8.bb   |   32 ++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-devtools/python/python-lxml_2.2.8.bb
Michael Lippautz - Sept. 5, 2011, 6:52 p.m.
I probably missed the initial submission of this patch (sorry for this), but...

2011/9/5 Noor, Ahsan <noor_ahsan@mentor.com>:
> From: Noor Ahsan <noor_ahsan@mentor.com>
>
> * Imported from oe.dev commit id bc6a94559157e6fcc190a22a259c0f757b8664ae.
> * Tested with MACHINE = 'qemuppc'
>
> Signed-off-by: Noor Ahsan <noor_ahsan@mentor.com>
> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
> ---
>  .../recipes-devtools/python/python-lxml_2.2.8.bb   |   32 ++++++++++++++++++++
>  1 files changed, 32 insertions(+), 0 deletions(-)
>  create mode 100644 meta-oe/recipes-devtools/python/python-lxml_2.2.8.bb
>
> diff --git a/meta-oe/recipes-devtools/python/python-lxml_2.2.8.bb b/meta-oe/recipes-devtools/python/python-lxml_2.2.8.bb
> new file mode 100644
> index 0000000..b1aac3f
> --- /dev/null
> +++ b/meta-oe/recipes-devtools/python/python-lxml_2.2.8.bb
> @@ -0,0 +1,32 @@
> +DESCRIPTION = "Powerful and Pythonic XML processing library combining \
> +libxml2/libxslt with the ElementTree API."
> +HOMEPAGE = "http://codespeak.net/lxml"
> +LICENSE = "BSD"
> +LIC_FILES_CHKSUM = "file://LICENSES.txt;md5=7de92baeb3b7bfaebe72404155fdb346"
> +SRCNAME = "lxml"
> +
> +DEPENDS = "libxml2 libxslt"
> +RDEPENDS_${PN} += "libxml2 libxslt python-compression"
> +
> +SRC_URI = "http://pypi.python.org/packages/source/l/${SRCNAME}/${SRCNAME}-${PV}.tar.gz;name=lxml"
> +SRC_URI[lxml.md5sum] = "d6c612d63a84d79440912a1b29d3b981"
> +SRC_URI[lxml.sha256sum] = "89b73925b5e3295dcf4675cb948007a20eb029fe35c9a162ae19ec11f1abafe5"
> +
> +S = "${WORKDIR}/${SRCNAME}-${PV}"
> +
> +inherit setuptools
> +
> +DISTUTILS_BUILD_ARGS += " \
> +                     --with-xslt-config='${STAGING_BINDIR_NATIVE}/pkg-config libxslt' \
> +                     --with-xml2-config='${STAGING_BINDIR_NATIVE}/xml2-config' \
> +"

Shouldn't this be STAGING_BINDIR_CROSS? BINDIR_NATIVE usually refers
to native libs and linking against them using setuptools may fail
(kind of) silently.

> +
> +DISTUTILS_INSTALL_ARGS += " \
> +                     --with-xslt-config='${STAGING_BINDIR_NATIVE}/pkg-config libxslt' \
> +                     --with-xml2-config='${STAGING_BINDIR_NATIVE}/xml2-config' \
> +"

Same here.

> +
> +BBCLASSEXTEND = "native nativesdk"

I don't know about native then. Basically one would have to
switch/create a 2nd recipe?

> +RDEPENDS_${PN}_virtclass-native = "libxml2-native libxslt-native"
> +
> +
> --
> 1.7.0.4
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>

Regards,
  Michael
Noor Ahsan - Sept. 6, 2011, 12:18 p.m.
Hi Michael,

> -----Original Message-----
> From: openembedded-devel-bounces@lists.openembedded.org
> [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of
> Michael Lippautz
> Sent: Monday, September 05, 2011 11:53 PM
> To: openembedded-devel@lists.openembedded.org
> Subject: Re: [oe] [meta-oe][PATCH v2 1/1] python-lxml: Add version
> 2.2.8 (initial recipe)
> 
> I probably missed the initial submission of this patch (sorry for
> this), but...
> 
> 2011/9/5 Noor, Ahsan <noor_ahsan@mentor.com>:
> > From: Noor Ahsan <noor_ahsan@mentor.com>
> >
> > * Imported from oe.dev commit id
> bc6a94559157e6fcc190a22a259c0f757b8664ae.
> > * Tested with MACHINE = 'qemuppc'
> >
> > Signed-off-by: Noor Ahsan <noor_ahsan@mentor.com>
> > Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
> > ---
> >  .../recipes-devtools/python/python-lxml_2.2.8.bb   |   32
> ++++++++++++++++++++
> >  1 files changed, 32 insertions(+), 0 deletions(-)
> >  create mode 100644 meta-oe/recipes-devtools/python/python-
> lxml_2.2.8.bb
> >
> > diff --git a/meta-oe/recipes-devtools/python/python-lxml_2.2.8.bb
> b/meta-oe/recipes-devtools/python/python-lxml_2.2.8.bb
> > new file mode 100644
> > index 0000000..b1aac3f
> > --- /dev/null
> > +++ b/meta-oe/recipes-devtools/python/python-lxml_2.2.8.bb
> > @@ -0,0 +1,32 @@
> > +DESCRIPTION = "Powerful and Pythonic XML processing library
> combining \
> > +libxml2/libxslt with the ElementTree API."
> > +HOMEPAGE = "http://codespeak.net/lxml"
> > +LICENSE = "BSD"
> > +LIC_FILES_CHKSUM =
> "file://LICENSES.txt;md5=7de92baeb3b7bfaebe72404155fdb346"
> > +SRCNAME = "lxml"
> > +
> > +DEPENDS = "libxml2 libxslt"
> > +RDEPENDS_${PN} += "libxml2 libxslt python-compression"
> > +
> > +SRC_URI =
> "http://pypi.python.org/packages/source/l/${SRCNAME}/${SRCNAME}-
> ${PV}.tar.gz;name=lxml"
> > +SRC_URI[lxml.md5sum] = "d6c612d63a84d79440912a1b29d3b981"
> > +SRC_URI[lxml.sha256sum] =
> "89b73925b5e3295dcf4675cb948007a20eb029fe35c9a162ae19ec11f1abafe5"
> > +
> > +S = "${WORKDIR}/${SRCNAME}-${PV}"
> > +
> > +inherit setuptools
> > +
> > +DISTUTILS_BUILD_ARGS += " \
> > +                     --with-xslt-
> config='${STAGING_BINDIR_NATIVE}/pkg-config libxslt' \
> > +                     --with-xml2-
> config='${STAGING_BINDIR_NATIVE}/xml2-config' \
> > +"
> 
> Shouldn't this be STAGING_BINDIR_CROSS? BINDIR_NATIVE usually refers
> to native libs and linking against them using setuptools may fail
> (kind of) silently.
> 
> > +
> > +DISTUTILS_INSTALL_ARGS += " \
> > +                     --with-xslt-
> config='${STAGING_BINDIR_NATIVE}/pkg-config libxslt' \
> > +                     --with-xml2-
> config='${STAGING_BINDIR_NATIVE}/xml2-config' \
> > +"
> 
> Same here.


I have incorporated this change in new patch.

> 
> > +
> > +BBCLASSEXTEND = "native nativesdk"
> 
> I don't know about native then. Basically one would have to
> switch/create a 2nd recipe?

Yes this is basically to use same recipe for native package building.

> 
> > +RDEPENDS_${PN}_virtclass-native = "libxml2-native libxslt-native"
> > +
> > +
> > --
> > 1.7.0.4
> >
> >
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-
> devel
> >
> 
> Regards,
>   Michael
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Patch

diff --git a/meta-oe/recipes-devtools/python/python-lxml_2.2.8.bb b/meta-oe/recipes-devtools/python/python-lxml_2.2.8.bb
new file mode 100644
index 0000000..b1aac3f
--- /dev/null
+++ b/meta-oe/recipes-devtools/python/python-lxml_2.2.8.bb
@@ -0,0 +1,32 @@ 
+DESCRIPTION = "Powerful and Pythonic XML processing library combining \
+libxml2/libxslt with the ElementTree API."
+HOMEPAGE = "http://codespeak.net/lxml"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENSES.txt;md5=7de92baeb3b7bfaebe72404155fdb346"
+SRCNAME = "lxml"
+
+DEPENDS = "libxml2 libxslt"
+RDEPENDS_${PN} += "libxml2 libxslt python-compression"
+
+SRC_URI = "http://pypi.python.org/packages/source/l/${SRCNAME}/${SRCNAME}-${PV}.tar.gz;name=lxml"
+SRC_URI[lxml.md5sum] = "d6c612d63a84d79440912a1b29d3b981"
+SRC_URI[lxml.sha256sum] = "89b73925b5e3295dcf4675cb948007a20eb029fe35c9a162ae19ec11f1abafe5"
+
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit setuptools
+
+DISTUTILS_BUILD_ARGS += " \
+                     --with-xslt-config='${STAGING_BINDIR_NATIVE}/pkg-config libxslt' \
+                     --with-xml2-config='${STAGING_BINDIR_NATIVE}/xml2-config' \
+"
+
+DISTUTILS_INSTALL_ARGS += " \
+                     --with-xslt-config='${STAGING_BINDIR_NATIVE}/pkg-config libxslt' \
+                     --with-xml2-config='${STAGING_BINDIR_NATIVE}/xml2-config' \
+"
+
+BBCLASSEXTEND = "native nativesdk"
+RDEPENDS_${PN}_virtclass-native = "libxml2-native libxslt-native"
+
+