Patchwork [meta-perl] libwww-perl_5.834: added

login
register
mail settings
Submitter Emil Petersen
Date Sept. 3, 2013, 3:33 p.m.
Message ID <1378222415-13643-1-git-send-email-erp@movis.dk>
Download mbox | patch
Permalink /patch/57299/
State Rejected, archived
Headers show

Comments

Emil Petersen - Sept. 3, 2013, 3:33 p.m.
libwww which provides most of LWP::* added

Signed-off-by: Emil Petersen <erp@movis.dk>
---
 .../recipes-perl/libwww-perl/libwww-perl_5.834.bb  | 68 ++++++++++++++++++++++
 1 file changed, 68 insertions(+)
 create mode 100644 meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb
Olof Johansson - Sept. 3, 2013, 3:44 p.m.
On 13-09-03 17:33 +0200, Emil Petersen wrote:
> +RDEPENDS_${PN} += "libdigest-md5-perl \
> +                   libencode-perl \
> +                   libio-select-perl \
> +                   libio-socket-perl \
> +                   libmime-base64-perl \
> +                   libnet-ftp-perl \
> +                   "

I notice that some of these modules are core modules
(specifically the ones left in the quote), and I guess it would
be better to depend on the perl-modules package instead (the
package containing all core modules)? Otherwise this may require
a great deal of maintenance when upgrading to newer releases.
Emil Petersen - Sept. 3, 2013, 3:48 p.m.
Oh? Well I wouldn't have added them if I thought they were core modules.

MIME::Base64 has it's own CPAN entry: 
https://metacpan.org/release/MIME-Base64

And does not appear, immediately, to be part of the core distribution?

Or am I missing something?

On 03/09/13 17:44, Olof Johansson wrote:
> On 13-09-03 17:33 +0200, Emil Petersen wrote:
>> +RDEPENDS_${PN} += "libdigest-md5-perl \
>> +                   libencode-perl \
>> +                   libio-select-perl \
>> +                   libio-socket-perl \
>> +                   libmime-base64-perl \
>> +                   libnet-ftp-perl \
>> +                   "
> I notice that some of these modules are core modules
> (specifically the ones left in the quote), and I guess it would
> be better to depend on the perl-modules package instead (the
> package containing all core modules)? Otherwise this may require
> a great deal of maintenance when upgrading to newer releases.
>
Olof Johansson - Sept. 3, 2013, 3:54 p.m.
On 13-09-03 17:48 +0200, Emil R. Petersen wrote:
> Oh? Well I wouldn't have added them if I thought they were core modules.
> 
> MIME::Base64 has it's own CPAN entry: 
> https://metacpan.org/release/MIME-Base64

Many of the core modules have a dual life, both in core and on
CPAN.

> And does not appear, immediately, to be part of the core distribution?

There's a command called "corelist" that is really useful to
determine if a module is core or not. Not only does it say if its
core or not, but also what perl version introduced it as a core
module.

$ corelist MIME::Base64

MIME::Base64 was first released with perl v5.7.3


Regards,
Emil Petersen - Sept. 3, 2013, 3:56 p.m.
Hmm alright, I will do this from now. And my other patch was send in 
before your reply reached me.

On 03/09/13 17:54, Olof Johansson wrote:
> On 13-09-03 17:48 +0200, Emil R. Petersen wrote:
>> Oh? Well I wouldn't have added them if I thought they were core modules.
>>
>> MIME::Base64 has it's own CPAN entry:
>> https://metacpan.org/release/MIME-Base64
> Many of the core modules have a dual life, both in core and on
> CPAN.
>
>> And does not appear, immediately, to be part of the core distribution?
> There's a command called "corelist" that is really useful to
> determine if a module is core or not. Not only does it say if its
> core or not, but also what perl version introduced it as a core
> module.
>
> $ corelist MIME::Base64
>
> MIME::Base64 was first released with perl v5.7.3
>
>
> Regards,
Hongxu Jia - Oct. 16, 2013, 5:46 a.m.
On 09/03/2013 11:33 PM, Emil Petersen wrote:
> libwww which provides most of LWP::* added
>
> Signed-off-by: Emil Petersen <erp@movis.dk>
> ---
>   .../recipes-perl/libwww-perl/libwww-perl_5.834.bb  | 68 ++++++++++++++++++++++
>   1 file changed, 68 insertions(+)
>   create mode 100644 meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb
>
> diff --git a/meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb b/meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb
> new file mode 100644
> index 0000000..f1a77d5
> --- /dev/null
> +++ b/meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb
> @@ -0,0 +1,68 @@
> +SUMMARY = "libwww-perl provides a simple and consistent API to the World Wide Web"
> +AUTHOR = "Gisle Aas <gisle@activestate.com>"
> +HOMEPAGE = "https://metacpan.org/release/libwww-perl"
> +SECTION = "libs"
> +LICENSE = "Artistic-1.0 | GPL-1.0+"
> +LIC_FILES_CHKSUM = "file://README;md5=b7d978c7767cb9fb392f80103af8ca0a"
> +
> +RDEPENDS_${PN} += "libdigest-md5-perl \
> +                   libencode-perl \
> +                   libencode-locale-perl \
> +                   libfile-listing-perl \
> +                   libhtml-entities-perl \
> +                   libhtml-headparser-perl \
> +                   libhttp-date-perl \
> +                   libhttp-cookies-perl \
> +                   libhttp-daemon-perl \
> +                   libhttp-negotiate-perl \
> +                   libhttp-request-perl \
> +                   libhttp-request-common-perl \
> +                   libhttp-response-perl \
> +                   libhttp-status-perl \

Which recipe provides the 'libhttp-*' ?

> +                   libio-select-perl \

s/libio-select-perl/perl-module-io-select/

> +                   libio-socket-perl \

s/libio-socket-perl/perl-module-io-socket/

> +                   liblwp-mediatypes-perl \

Which recipe provides the liblwp-mediatypes-perl?

> +                   libmime-base64-perl \

s/libmime-base64-perl/perl-module-mime-base64/

> +                   libnet-ftp-perl \

s/libnet-ftp-perl/perl-module-net-ftp/

> +                   libnet-http-perl \

Which recipe provides the libnet-http-perl?

> +                   liburi-perl \

Which recipe provides the liburi-perl?

> +                   liburi-escape-perl \

Which recipe provides the liburi-escape-perl?

> +                   libwww-robotrules-perl \

Which recipe provides the libwww-robotrules-perl?

//Hongxu

> +                   "
> +
> +RPROVIDES_${PN} += "liblwp-perl \
> +                    liblwp-authen-ntlm-perl \
> +                    liblwp-conncache-perl \
> +                    liblwp-debug-perl \
> +                    liblwp-membermixin-perl \
> +                    liblwp-protocol-perl \
> +                    liblwp-robotua-perl \
> +                    liblwp-simple-perl \
> +                    liblwp-useragent-perl \
> +                    liblwp-authen-basic-perl \
> +                    liblwp-authen-digest-perl \
> +                    liblwp-protocol-cpan-perl \
> +                    liblwp-protocol-data-perl \
> +                    liblwp-protocol-file-perl \
> +                    liblwp-protocol-ftp-perl \
> +                    liblwp-protocol-ghttp-perl \
> +                    liblwp-protocol-gopher-perl \
> +                    liblwp-protocol-http-perl \
> +                    liblwp-protocol-http-socket-perl \
> +                    liblwp-protocol-http-socketmethods-perl \
> +                    liblwp-protocol-loopback-perl \
> +                    liblwp-protocol-mailto-perl \
> +                    liblwp-protocol-myftp-perl \
> +                    liblwp-protocol-nntp-perl \
> +                    liblwp-protocol-nogo-perl \
> +                    "
> +
> +SRC_URI = "http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/libwww-perl-${PV}.tar.gz;name=libwww-perl-${PV}"
> +SRC_URI[libwww-perl-5.834.md5sum] = "f2ed8a461f76556c9caed9087f47c86c"
> +SRC_URI[libwww-perl-5.834.sha256sum] = "1a50eb91d1deeca3be10982e129e786809ad6f0f8049b156e91e889e5a7288ff"
> +
> +S = "${WORKDIR}/libwww-perl-${PV}"
> +
> +inherit cpan
> +
> +BBCLASSEXTEND = "native"

Patch

diff --git a/meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb b/meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb
new file mode 100644
index 0000000..f1a77d5
--- /dev/null
+++ b/meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb
@@ -0,0 +1,68 @@ 
+SUMMARY = "libwww-perl provides a simple and consistent API to the World Wide Web"
+AUTHOR = "Gisle Aas <gisle@activestate.com>"
+HOMEPAGE = "https://metacpan.org/release/libwww-perl"
+SECTION = "libs"
+LICENSE = "Artistic-1.0 | GPL-1.0+"
+LIC_FILES_CHKSUM = "file://README;md5=b7d978c7767cb9fb392f80103af8ca0a"
+
+RDEPENDS_${PN} += "libdigest-md5-perl \
+                   libencode-perl \
+                   libencode-locale-perl \
+                   libfile-listing-perl \
+                   libhtml-entities-perl \
+                   libhtml-headparser-perl \
+                   libhttp-date-perl \
+                   libhttp-cookies-perl \
+                   libhttp-daemon-perl \
+                   libhttp-negotiate-perl \
+                   libhttp-request-perl \
+                   libhttp-request-common-perl \
+                   libhttp-response-perl \
+                   libhttp-status-perl \
+                   libio-select-perl \
+                   libio-socket-perl \
+                   liblwp-mediatypes-perl \
+                   libmime-base64-perl \
+                   libnet-ftp-perl \
+                   libnet-http-perl \
+                   liburi-perl \
+                   liburi-escape-perl \
+                   libwww-robotrules-perl \
+                   "
+
+RPROVIDES_${PN} += "liblwp-perl \
+                    liblwp-authen-ntlm-perl \
+                    liblwp-conncache-perl \
+                    liblwp-debug-perl \
+                    liblwp-membermixin-perl \
+                    liblwp-protocol-perl \
+                    liblwp-robotua-perl \
+                    liblwp-simple-perl \
+                    liblwp-useragent-perl \
+                    liblwp-authen-basic-perl \
+                    liblwp-authen-digest-perl \
+                    liblwp-protocol-cpan-perl \
+                    liblwp-protocol-data-perl \
+                    liblwp-protocol-file-perl \
+                    liblwp-protocol-ftp-perl \                    
+                    liblwp-protocol-ghttp-perl \                    
+                    liblwp-protocol-gopher-perl \
+                    liblwp-protocol-http-perl \                    
+                    liblwp-protocol-http-socket-perl \                    
+                    liblwp-protocol-http-socketmethods-perl \                    
+                    liblwp-protocol-loopback-perl \
+                    liblwp-protocol-mailto-perl \
+                    liblwp-protocol-myftp-perl \
+                    liblwp-protocol-nntp-perl \
+                    liblwp-protocol-nogo-perl \
+                    "
+
+SRC_URI = "http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/libwww-perl-${PV}.tar.gz;name=libwww-perl-${PV}"
+SRC_URI[libwww-perl-5.834.md5sum] = "f2ed8a461f76556c9caed9087f47c86c"
+SRC_URI[libwww-perl-5.834.sha256sum] = "1a50eb91d1deeca3be10982e129e786809ad6f0f8049b156e91e889e5a7288ff"
+
+S = "${WORKDIR}/libwww-perl-${PV}"
+
+inherit cpan
+
+BBCLASSEXTEND = "native"