diff options
author | Tom Rini <tom_rini@mentor.com> | 2011-07-18 09:02:18 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-21 10:59:18 +0100 |
commit | 6a52bad2f44f0e919baa89a02f88855c925da6d5 (patch) | |
tree | 5e5c0d130673e3847ecf7427ddee9e88ab616d21 | |
parent | 27ba6fbda84041b297a798b6d35de38272e74ea6 (diff) | |
download | poky-6a52bad2f44f0e919baa89a02f88855c925da6d5.tar.gz |
cpan.bbclass: Perform more mangling for perl path
On hosts where we may already be past the #! limit this is required
and this is safe on the target as well. This is be7fe31 in oe.dev.
Related to this we now bump all PRs for recipes that inherit cpan.
Note that in oe.dev we mangle for perl but here we use the new
nativeperl script.
(From OE-Core rev: 682a213dc732074985bf86f508305fc6eafe18d9)
Signed-off-by: Tom Rini <tom_rini@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 files changed, 12 insertions, 9 deletions
diff --git a/meta/classes/cpan.bbclass b/meta/classes/cpan.bbclass index cbf428d3a2..cb1c2f40c7 100644 --- a/meta/classes/cpan.bbclass +++ b/meta/classes/cpan.bbclass | |||
@@ -35,6 +35,9 @@ cpan_do_compile () { | |||
35 | 35 | ||
36 | cpan_do_install () { | 36 | cpan_do_install () { |
37 | oe_runmake DESTDIR="${D}" install_vendor | 37 | oe_runmake DESTDIR="${D}" install_vendor |
38 | for PERLSCRIPT in `grep -rIEl '#!${bindir}/perl-native.*/perl' ${D}`; do | ||
39 | sed -i -e 's|^#!${bindir}/perl-native.*/perl|#!/usr/bin/env nativeperl|' $PERLSCRIPT | ||
40 | done | ||
38 | } | 41 | } |
39 | 42 | ||
40 | EXPORT_FUNCTIONS do_configure do_compile do_install | 43 | EXPORT_FUNCTIONS do_configure do_compile do_install |
diff --git a/meta/recipes-devtools/perl/liburi-perl_1.58.bb b/meta/recipes-devtools/perl/liburi-perl_1.58.bb index 76a1231388..ebb4911d4f 100644 --- a/meta/recipes-devtools/perl/liburi-perl_1.58.bb +++ b/meta/recipes-devtools/perl/liburi-perl_1.58.bb | |||
@@ -4,7 +4,7 @@ and manipulate the various components that make up these strings." | |||
4 | 4 | ||
5 | SECTION = "libs" | 5 | SECTION = "libs" |
6 | LICENSE = "Artistic | GPLv1+" | 6 | LICENSE = "Artistic | GPLv1+" |
7 | PR = "r0" | 7 | PR = "r1" |
8 | 8 | ||
9 | LIC_FILES_CHKSUM = "file://README;beginline=26;endline=30;md5=6c33ae5c87fd1c4897714e122dd9c23d" | 9 | LIC_FILES_CHKSUM = "file://README;beginline=26;endline=30;md5=6c33ae5c87fd1c4897714e122dd9c23d" |
10 | 10 | ||
diff --git a/meta/recipes-devtools/perl/libxml-parser-perl_2.40.bb b/meta/recipes-devtools/perl/libxml-parser-perl_2.40.bb index 3f1a0ad500..1d1593b171 100644 --- a/meta/recipes-devtools/perl/libxml-parser-perl_2.40.bb +++ b/meta/recipes-devtools/perl/libxml-parser-perl_2.40.bb | |||
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://README;beginline=2;endline=6;md5=c8767d7516229f07b26e | |||
5 | 5 | ||
6 | DEPENDS += "expat expat-native" | 6 | DEPENDS += "expat expat-native" |
7 | 7 | ||
8 | PR = "r3" | 8 | PR = "r4" |
9 | 9 | ||
10 | SRC_URI = "http://www.cpan.org/modules/by-module/XML/XML-Parser-${PV}.tar.gz" | 10 | SRC_URI = "http://www.cpan.org/modules/by-module/XML/XML-Parser-${PV}.tar.gz" |
11 | SRC_URI[md5sum] = "c66e9adba003d0667cc40115ccd837a5" | 11 | SRC_URI[md5sum] = "c66e9adba003d0667cc40115ccd837a5" |
diff --git a/meta/recipes-devtools/perl/libxml-perl_0.08.bb b/meta/recipes-devtools/perl/libxml-perl_0.08.bb index 9c74cdb6b3..fb637a8487 100644 --- a/meta/recipes-devtools/perl/libxml-perl_0.08.bb +++ b/meta/recipes-devtools/perl/libxml-perl_0.08.bb | |||
@@ -5,7 +5,7 @@ XML::Grove and others." | |||
5 | SUMMARY = "Collection of Perl modules for working with XML." | 5 | SUMMARY = "Collection of Perl modules for working with XML." |
6 | SECTION = "libs" | 6 | SECTION = "libs" |
7 | LICENSE = "Artistic | GPLv1+" | 7 | LICENSE = "Artistic | GPLv1+" |
8 | PR = "r0" | 8 | PR = "r1" |
9 | 9 | ||
10 | LIC_FILES_CHKSUM = "file://README;beginline=33;endline=35;md5=1705549eef7577a3d6ba71123a1f0ce8" | 10 | LIC_FILES_CHKSUM = "file://README;beginline=33;endline=35;md5=1705549eef7577a3d6ba71123a1f0ce8" |
11 | 11 | ||
diff --git a/meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb b/meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb index 89b65b29da..3a50d7f1d2 100644 --- a/meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb +++ b/meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb | |||
@@ -2,7 +2,7 @@ SECTION = "libs" | |||
2 | LICENSE = "Artistic" | 2 | LICENSE = "Artistic" |
3 | LIC_FILES_CHKSUM = "file://README;beginline=70;md5=94aa5d46682b411a53a5494cfb22640e" | 3 | LIC_FILES_CHKSUM = "file://README;beginline=70;md5=94aa5d46682b411a53a5494cfb22640e" |
4 | DEPENDS += "libxml-parser-perl" | 4 | DEPENDS += "libxml-parser-perl" |
5 | PR = "r2" | 5 | PR = "r3" |
6 | 6 | ||
7 | SRC_URI = "http://www.cpan.org/modules/by-module/XML/XML-Simple-${PV}.tar.gz" | 7 | SRC_URI = "http://www.cpan.org/modules/by-module/XML/XML-Simple-${PV}.tar.gz" |
8 | 8 | ||
diff --git a/meta/recipes-devtools/sgmlspl/sgmlspl-native_1.03ii.bb b/meta/recipes-devtools/sgmlspl/sgmlspl-native_1.03ii.bb index 4e01f17b3e..28e0e9f391 100644 --- a/meta/recipes-devtools/sgmlspl/sgmlspl-native_1.03ii.bb +++ b/meta/recipes-devtools/sgmlspl/sgmlspl-native_1.03ii.bb | |||
@@ -4,7 +4,7 @@ HOMEPAGE = "http://search.cpan.org/src/DMEGG/SGMLSpm-1.03ii/DOC/HTML/SGMLSpm/sgm | |||
4 | SECTION = "libs" | 4 | SECTION = "libs" |
5 | LICENSE = "GPLv2+" | 5 | LICENSE = "GPLv2+" |
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760" |
7 | PR = "r1" | 7 | PR = "r2" |
8 | 8 | ||
9 | SRC_URI = "http://www.cpan.org/authors/id/D/DM/DMEGG/SGMLSpm-${PV}.tar.gz \ | 9 | SRC_URI = "http://www.cpan.org/authors/id/D/DM/DMEGG/SGMLSpm-${PV}.tar.gz \ |
10 | file://combined.patch" | 10 | file://combined.patch" |
diff --git a/meta/recipes-extended/perl/libconvert-asn1-perl_0.22.bb b/meta/recipes-extended/perl/libconvert-asn1-perl_0.22.bb index fc77b75090..48e107c8fa 100644 --- a/meta/recipes-extended/perl/libconvert-asn1-perl_0.22.bb +++ b/meta/recipes-extended/perl/libconvert-asn1-perl_0.22.bb | |||
@@ -2,7 +2,7 @@ DESCRIPTION = "Convert::ASN1 - ASN.1 Encode/Decode library" | |||
2 | SECTION = "libs" | 2 | SECTION = "libs" |
3 | LICENSE = "Artistic|GPLv1+" | 3 | LICENSE = "Artistic|GPLv1+" |
4 | LIC_FILES_CHKSUM = "file://README;beginline=10;endline=12;md5=a64b291b13ffddeef33b14f047ee8b26" | 4 | LIC_FILES_CHKSUM = "file://README;beginline=10;endline=12;md5=a64b291b13ffddeef33b14f047ee8b26" |
5 | PR = "r1" | 5 | PR = "r2" |
6 | 6 | ||
7 | SRC_URI = "http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/Convert-ASN1-${PV}.tar.gz" | 7 | SRC_URI = "http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/Convert-ASN1-${PV}.tar.gz" |
8 | 8 | ||
diff --git a/meta/recipes-extended/perl/libtimedate-perl_1.20.bb b/meta/recipes-extended/perl/libtimedate-perl_1.20.bb index 7298f37fd1..c925980d37 100644 --- a/meta/recipes-extended/perl/libtimedate-perl_1.20.bb +++ b/meta/recipes-extended/perl/libtimedate-perl_1.20.bb | |||
@@ -3,7 +3,7 @@ SECTION = "libs" | |||
3 | # You can redistribute it and/or modify it under the same terms as Perl itself. | 3 | # You can redistribute it and/or modify it under the same terms as Perl itself. |
4 | LICENSE = "Artistic|GPLv1+" | 4 | LICENSE = "Artistic|GPLv1+" |
5 | LIC_FILES_CHKSUM = "file://README;beginline=21;md5=576b7cb41e5e821501a01ed66f0f9d9e" | 5 | LIC_FILES_CHKSUM = "file://README;beginline=21;md5=576b7cb41e5e821501a01ed66f0f9d9e" |
6 | PR = "r2" | 6 | PR = "r3" |
7 | 7 | ||
8 | 8 | ||
9 | SRC_URI = "http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/TimeDate-${PV}.tar.gz" | 9 | SRC_URI = "http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/TimeDate-${PV}.tar.gz" |
diff --git a/meta/recipes-extended/perl/libxml-namespacesupport-perl_1.11.bb b/meta/recipes-extended/perl/libxml-namespacesupport-perl_1.11.bb index d96430e616..f306ff1996 100644 --- a/meta/recipes-extended/perl/libxml-namespacesupport-perl_1.11.bb +++ b/meta/recipes-extended/perl/libxml-namespacesupport-perl_1.11.bb | |||
@@ -5,7 +5,7 @@ DESCRIPTION = "XML::NamespaceSupport offers a simple way to process namespace-ba | |||
5 | 5 | ||
6 | SECTION = "libs" | 6 | SECTION = "libs" |
7 | LICENSE = "Artistic|GPLv1+" | 7 | LICENSE = "Artistic|GPLv1+" |
8 | PR = "r0" | 8 | PR = "r1" |
9 | 9 | ||
10 | LIC_FILES_CHKSUM = "file://META.yml;beginline=22;endline=22;md5=3b2b564dae8b9af9e8896e85c07dcbe5" | 10 | LIC_FILES_CHKSUM = "file://META.yml;beginline=22;endline=22;md5=3b2b564dae8b9af9e8896e85c07dcbe5" |
11 | 11 | ||
diff --git a/meta/recipes-extended/perl/libxml-sax-perl_0.96.bb b/meta/recipes-extended/perl/libxml-sax-perl_0.96.bb index 13956cb16e..97d2025a37 100644 --- a/meta/recipes-extended/perl/libxml-sax-perl_0.96.bb +++ b/meta/recipes-extended/perl/libxml-sax-perl_0.96.bb | |||
@@ -11,7 +11,7 @@ SECTION = "libs" | |||
11 | LICENSE = "Artistic|GPLv1+" | 11 | LICENSE = "Artistic|GPLv1+" |
12 | DEPENDS += "libxml-namespacesupport-perl-native" | 12 | DEPENDS += "libxml-namespacesupport-perl-native" |
13 | RDEPENDS_${PN} += "libxml-namespacesupport-perl perl-module-file-temp" | 13 | RDEPENDS_${PN} += "libxml-namespacesupport-perl perl-module-file-temp" |
14 | PR = "r0" | 14 | PR = "r1" |
15 | 15 | ||
16 | LIC_FILES_CHKSUM = "file://LICENSE;md5=65c4cd8f39c24c7135ed70dacbcb09e3" | 16 | LIC_FILES_CHKSUM = "file://LICENSE;md5=65c4cd8f39c24c7135ed70dacbcb09e3" |
17 | 17 | ||