Patchwork [2/3,meta-perl] libxml-filter-buffertext-perl: add recipe

login
register
mail settings
Submitter rongqing.li@windriver.com
Date July 11, 2014, 6:08 a.m.
Message ID <1405058909-12162-1-git-send-email-rongqing.li@windriver.com>
Download mbox | patch
Permalink /patch/75339/
State Superseded, archived
Headers show

Comments

rongqing.li@windriver.com - July 11, 2014, 6:08 a.m.
From: Roy Li <rongqing.li@windriver.com>

Signed-off-by: Roy Li <rongqing.li@windriver.com>
---
 .../libxml/libxml-filter-buffertext-perl_1.01.bb   |   27 ++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 meta-perl/recipes-perl/libxml/libxml-filter-buffertext-perl_1.01.bb
Hongxu Jia - July 14, 2014, 1:50 a.m.
Acked-by: Hongxu Jia <hongxu.jia@windriver.com>

//Hongxu

On 07/11/2014 02:08 PM, rongqing.li@windriver.com wrote:
> From: Roy Li <rongqing.li@windriver.com>
>
> Signed-off-by: Roy Li <rongqing.li@windriver.com>
> ---
>   .../libxml/libxml-filter-buffertext-perl_1.01.bb   |   27 ++++++++++++++++++++
>   1 file changed, 27 insertions(+)
>   create mode 100644 meta-perl/recipes-perl/libxml/libxml-filter-buffertext-perl_1.01.bb
>
> diff --git a/meta-perl/recipes-perl/libxml/libxml-filter-buffertext-perl_1.01.bb b/meta-perl/recipes-perl/libxml/libxml-filter-buffertext-perl_1.01.bb
> new file mode 100644
> index 0000000..0fbeeb5
> --- /dev/null
> +++ b/meta-perl/recipes-perl/libxml/libxml-filter-buffertext-perl_1.01.bb
> @@ -0,0 +1,27 @@
> +SUMMARY = "XML::Filter::BufferText - Filter to put all characters() in one event"
> +DESCRIPTION = "\
> +The XML::Filter::BufferText module is a very simple filter.  One common \
> +cause of grief (and programmer error) is that XML parsers aren't required \
> +to provide character events in one chunk.  They can, but are not forced \
> +to, and most don't.  This filter does the trivial but oft-repeated task \
> +of putting all characters into a single event. \
> +"
> +SECTION = "libs"
> +LICENSE = "Artistic-1.0 | GPLv1+"
> +HOMEPAGE = "http://search.cpan.org/dist/XML-Filter-BufferText/"
> +DEPENDS += "libxml-sax-perl-native"
> +RDEPENDS_${PN} += "libxml-sax-perl"
> +
> +SRC_URI = "http://search.cpan.org/CPAN/authors/id/R/RB/RBERJON/XML-Filter-BufferText-${PV}.tar.gz"
> +SRC_URI[md5sum] = "2992c0387632583b966ab9c965b25512"
> +SRC_URI[sha256sum] = "8fd2126d3beec554df852919f4739e689202cbba6a17506e9b66ea165841a75c"
> +
> +LIC_FILES_CHKSUM = "file://BufferText.pm;beginline=88;endline=90;md5=497aa6d79cc84c3d769a2a0016bee928"
> +
> +S = "${WORKDIR}/XML-Filter-BufferText-${PV}"
> +
> +inherit cpan
> +
> +BBCLASSEXTEND = "native"
> +
> +PACKAGE_ARCH = "all"
Martin Jansa - July 16, 2014, 2:03 p.m.
On Fri, Jul 11, 2014 at 02:08:29PM +0800, rongqing.li@windriver.com wrote:
> From: Roy Li <rongqing.li@windriver.com>
> 
> Signed-off-by: Roy Li <rongqing.li@windriver.com>
> ---
>  .../libxml/libxml-filter-buffertext-perl_1.01.bb   |   27 ++++++++++++++++++++
>  1 file changed, 27 insertions(+)
>  create mode 100644 meta-perl/recipes-perl/libxml/libxml-filter-buffertext-perl_1.01.bb
> 
> diff --git a/meta-perl/recipes-perl/libxml/libxml-filter-buffertext-perl_1.01.bb b/meta-perl/recipes-perl/libxml/libxml-filter-buffertext-perl_1.01.bb
> new file mode 100644
> index 0000000..0fbeeb5
> --- /dev/null
> +++ b/meta-perl/recipes-perl/libxml/libxml-filter-buffertext-perl_1.01.bb
> @@ -0,0 +1,27 @@
> +SUMMARY = "XML::Filter::BufferText - Filter to put all characters() in one event"
> +DESCRIPTION = "\
> +The XML::Filter::BufferText module is a very simple filter.  One common \
> +cause of grief (and programmer error) is that XML parsers aren't required \
> +to provide character events in one chunk.  They can, but are not forced \
> +to, and most don't.  This filter does the trivial but oft-repeated task \
> +of putting all characters into a single event. \
> +"
> +SECTION = "libs"
> +LICENSE = "Artistic-1.0 | GPLv1+"
> +HOMEPAGE = "http://search.cpan.org/dist/XML-Filter-BufferText/"
> +DEPENDS += "libxml-sax-perl-native"
> +RDEPENDS_${PN} += "libxml-sax-perl"
> +
> +SRC_URI = "http://search.cpan.org/CPAN/authors/id/R/RB/RBERJON/XML-Filter-BufferText-${PV}.tar.gz"
> +SRC_URI[md5sum] = "2992c0387632583b966ab9c965b25512"
> +SRC_URI[sha256sum] = "8fd2126d3beec554df852919f4739e689202cbba6a17506e9b66ea165841a75c"
> +
> +LIC_FILES_CHKSUM = "file://BufferText.pm;beginline=88;endline=90;md5=497aa6d79cc84c3d769a2a0016bee928"
> +
> +S = "${WORKDIR}/XML-Filter-BufferText-${PV}"
> +
> +inherit cpan
> +
> +BBCLASSEXTEND = "native"
> +
> +PACKAGE_ARCH = "all"

This doesn't seem right, see
http://lists.openembedded.org/pipermail/openembedded-core/2014-July/094409.html
rongqing.li@windriver.com - July 17, 2014, 12:29 p.m.
On 07/16/2014 10:03 PM, Martin Jansa wrote:
> On Fri, Jul 11, 2014 at 02:08:29PM +0800, rongqing.li@windriver.com wrote:
>> From: Roy Li <rongqing.li@windriver.com>
>>
>> Signed-off-by: Roy Li <rongqing.li@windriver.com>
>> ---
>>   .../libxml/libxml-filter-buffertext-perl_1.01.bb   |   27 ++++++++++++++++++++
>>   1 file changed, 27 insertions(+)
>>   create mode 100644 meta-perl/recipes-perl/libxml/libxml-filter-buffertext-perl_1.01.bb
>>
>> diff --git a/meta-perl/recipes-perl/libxml/libxml-filter-buffertext-perl_1.01.bb b/meta-perl/recipes-perl/libxml/libxml-filter-buffertext-perl_1.01.bb
>> new file mode 100644
>> index 0000000..0fbeeb5
>> --- /dev/null
>> +++ b/meta-perl/recipes-perl/libxml/libxml-filter-buffertext-perl_1.01.bb
>> @@ -0,0 +1,27 @@
>> +SUMMARY = "XML::Filter::BufferText - Filter to put all characters() in one event"
>> +DESCRIPTION = "\
>> +The XML::Filter::BufferText module is a very simple filter.  One common \
>> +cause of grief (and programmer error) is that XML parsers aren't required \
>> +to provide character events in one chunk.  They can, but are not forced \
>> +to, and most don't.  This filter does the trivial but oft-repeated task \
>> +of putting all characters into a single event. \
>> +"
>> +SECTION = "libs"
>> +LICENSE = "Artistic-1.0 | GPLv1+"
>> +HOMEPAGE = "http://search.cpan.org/dist/XML-Filter-BufferText/"
>> +DEPENDS += "libxml-sax-perl-native"
>> +RDEPENDS_${PN} += "libxml-sax-perl"
>> +
>> +SRC_URI = "http://search.cpan.org/CPAN/authors/id/R/RB/RBERJON/XML-Filter-BufferText-${PV}.tar.gz"
>> +SRC_URI[md5sum] = "2992c0387632583b966ab9c965b25512"
>> +SRC_URI[sha256sum] = "8fd2126d3beec554df852919f4739e689202cbba6a17506e9b66ea165841a75c"
>> +
>> +LIC_FILES_CHKSUM = "file://BufferText.pm;beginline=88;endline=90;md5=497aa6d79cc84c3d769a2a0016bee928"
>> +
>> +S = "${WORKDIR}/XML-Filter-BufferText-${PV}"
>> +
>> +inherit cpan
>> +
>> +BBCLASSEXTEND = "native"
>> +
>> +PACKAGE_ARCH = "all"
>
> This doesn't seem right, see
> http://lists.openembedded.org/pipermail/openembedded-core/2014-July/094409.html
>


It should inherit allarch, not define PACKAGE_ARCH to all.

but I test, it seems unable to fix this issue, the abi is included into
./all-poky-linux/libxml-sax-writer-perl
./all-poky-linux-gnueabi/libxml-sax-writer-perl



-Roy

>
>

Patch

diff --git a/meta-perl/recipes-perl/libxml/libxml-filter-buffertext-perl_1.01.bb b/meta-perl/recipes-perl/libxml/libxml-filter-buffertext-perl_1.01.bb
new file mode 100644
index 0000000..0fbeeb5
--- /dev/null
+++ b/meta-perl/recipes-perl/libxml/libxml-filter-buffertext-perl_1.01.bb
@@ -0,0 +1,27 @@ 
+SUMMARY = "XML::Filter::BufferText - Filter to put all characters() in one event"
+DESCRIPTION = "\
+The XML::Filter::BufferText module is a very simple filter.  One common \
+cause of grief (and programmer error) is that XML parsers aren't required \
+to provide character events in one chunk.  They can, but are not forced \
+to, and most don't.  This filter does the trivial but oft-repeated task \
+of putting all characters into a single event. \
+"
+SECTION = "libs"
+LICENSE = "Artistic-1.0 | GPLv1+"
+HOMEPAGE = "http://search.cpan.org/dist/XML-Filter-BufferText/"
+DEPENDS += "libxml-sax-perl-native"
+RDEPENDS_${PN} += "libxml-sax-perl"
+
+SRC_URI = "http://search.cpan.org/CPAN/authors/id/R/RB/RBERJON/XML-Filter-BufferText-${PV}.tar.gz"
+SRC_URI[md5sum] = "2992c0387632583b966ab9c965b25512"
+SRC_URI[sha256sum] = "8fd2126d3beec554df852919f4739e689202cbba6a17506e9b66ea165841a75c"
+
+LIC_FILES_CHKSUM = "file://BufferText.pm;beginline=88;endline=90;md5=497aa6d79cc84c3d769a2a0016bee928"
+
+S = "${WORKDIR}/XML-Filter-BufferText-${PV}"
+
+inherit cpan
+
+BBCLASSEXTEND = "native"
+
+PACKAGE_ARCH = "all"