perl-uri: Add perl-uri
PATCH 5/8 perl-uri: Add perl-uri
Subject: [PATCH 5/8] perl-uri: Add perl-uri
Add perl-uri in order to enable graphic LSB test(OLVER-Core test).
--- meta/recipes-devtools/perl/perl-uri_1.56.bb | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) create mode 100644 meta/recipes-devtools/perl/perl-uri_1.56.bb
(quoted diff) +0 -0
b/meta/recipes-devtools/perl/perl-uri_1.56.bb
new file mode 100644
index 0000000..7dd5668
meta/recipes-devtools/perl/perl-uri_1.56.bb new file +9 -0
@@ -0,0 +1,25 @@ +DESCRIPTION = "This package contains the URI.pm module with friends. \ +The module implements the URI class. URI objects can be used to access +and manipulate the various components that make up these strings." + +SECTION = "libs" +LICENSE = "Artistic" +PR = "r0" + +LIC_FILES_CHKSUM =
"file://README;beginline=26;endline=30;md5=6c33ae5c87fd1c4897714e122dd9c23d" +
+DEPENDS += "perl"
+
+SRC_URI = "http://www.cpan.org/authors/id/G/GA/GAAS/URI-${PV}.tar.gz" +
+S = "${WORKDIR}/URI-${PV}"
+
+EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH= ${STAGING_INCDIR}"
+
+inherit cpan
+
+do_compile() {
+ export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name
'libc-*.so')"
+ cpan_do_compile
+}
+
Signature · 5 lines
1.7.0.4 -- Lu Jingdong [email protected] China, Wind River
2010/12/8 Lu Jingdong <[email protected]>:
Quoted 10 lines
Subject: [PATCH 5/8] perl-uri: Add perl-uri
Add perl-uri in order to enable graphic LSB test(OLVER-Core test).
Signed-off-by Jingdong Lu <[email protected]>---
meta/recipes-devtools/perl/perl-uri_1.56.bb | 25
+++++++++++++++++++++++++1 files changed, 25 insertions(+), 0 deletions(-)create mode 100644 meta/recipes-devtools/perl/perl-uri_1.56.bb
Is there a particular naming scheme for this.
OE has liburi-perl_1.55.bb
and poky has e.g. meta/recipes-devtools/perl/libxml-parser-perl_2.36.bb
I would have expected this to be called liburi-perl_1.56.bb
Quoted 11 lines
meta/recipes-devtools/perl/perl-uri_1.56.bb new file +2
-0@@ -0,0 +1,25 @@ +DESCRIPTION = "This package contains the URI.pm module with friends. \ +The module implements the URI class. URI objects can be used to access\
meta/recipes-devtools/perl/perl-uri_1.56.bb line 6
Quoted 4 lines
meta/recipes-devtools/perl/perl-uri_1.56.bb new file +4
-0+and manipulate the various components that make up these strings." + +SECTION = "libs" +LICENSE = "Artistic"
This does not seem correct:
http://www.cpan.org/authors/id/G/GA/GAAS/URI-1.56.readme says:
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
THis is also what the README file says
and http://dev.perl.org/licenses/ says:
Perl5 is Copyright (C) 1993-2005, by Larry Wall and others.
It is free software; you can redistribute it and/or modify it under the terms of either:
a) the GNU General Public License as published by the Free Software Foundation; either external linkversion 1, or (at your option) any later versionexternal link, or
b) the "Artistic License".
So I'd say it should be:
LICENSE = "Artistic|GPLv1+"
meta/recipes-devtools/perl/perl-uri_1.56.bb
Quoted 6 lines
meta/recipes-devtools/perl/perl-uri_1.56.bb new file +3
-0+PR = "r0" + +LIC_FILES_CHKSUM ="file://README;beginline=26;endline=30;md5=6c33ae5c87fd1c4897714e122dd9c23d"
meta/recipes-devtools/perl/perl-uri_1.56.bb new file +2
-0+ +DEPENDS += "perl"
This DEPENDS is already dragged in by the
inherit cpan
below. It it in meta/classes/cpan.class and says:
DEPENDS += "${@["perl", "perl-native"][(bb.data.inherits_class('native', d))]}" RDEPENDS += "${@["perl", ""][(bb.data.inherits_class('native', d))]}"
Quoted 14 lines
meta/recipes-devtools/perl/perl-uri_1.56.bb new file +6
-0+ +SRC_URI = "http://www.cpan.org/authors/id/G/GA/GAAS/URI-${PV}.tar.gz"Y + +S = "${WORKDIR}/URI-${PV}" + +EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"
meta/recipes-devtools/perl/perl-uri_1.56.bb new file +5
-0+ +inherit cpan + +do_compile() { + export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name'libc-*.so')"
+cpan_do_compile
meta/recipes-devtools/perl/perl-uri_1.56.bb
Quoted 2 lines
meta/recipes-devtools/perl/perl-uri_1.56.bb new file +2
-0+} +
As this is a pure perl recipe it is hw independent, so it should have
PACKAGE_ARCH = "all"
also maybe one might want to add
BBCLASSEXTEND="native"
Otherwise (at least that is my understanding) recipes that depend on this one do not build (but maybe the new style staging made the native recipe unneeded).
Anyway (and slightly off-topic here):
we also have meta/recipes-devtools/perl/libxml-simple-perl-native_2.18.bb meta/recipes-devtools/perl/libxml-parser-perl-native_2.36.bb and I guess that might well be for that reason. (and not sure why these do not use BBCLASSEXTEND, the OE version does!)
Best regards, Frans
Quoted 12 lines
--
1.7.0.4
--
Lu Jingdong
[email protected]
China, Wind River_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky