diff options
| author | Tim Orling <timothy.t.orling@linux.intel.com> | 2019-06-17 15:11:43 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-06-19 12:46:43 +0100 |
| commit | 7b077cedc715e2f627efce3e1a8a6afd665f8869 (patch) | |
| tree | 49a1f21c6286f78e7dbf25f16a8488d83a56e300 | |
| parent | c2cdb5f7b28d93e92be641e50003ae757a0bae39 (diff) | |
| download | poky-7b077cedc715e2f627efce3e1a8a6afd665f8869.tar.gz | |
libmodule-build-perl: upgrade 0.4224 -> 0.4229; enable ptest
* Add runtime and ptest dependencies
* Add own run-ptest, since we need to run blib
License-Update: License lines moved up in README
Upstream release notes:
0.4229 - Tue Apr 16 00:49:45 CEST 2019
- Released 0.42_28 without changes
0.42_28 - Thu Apr 19 16:34:32 CEST 2018
- Replace "MOTIVATIONS" section with "COMPARISON" [Dan Brook]
- Update configure, build, test prereqs [Karen Etheridge]
0.4227 - Wed Dec 13 11:17:51 CET 2017
- Released 0.42_26 without changes
0.42_26 - Wed Dec 13 10:52:39 CET 2017
- Improve pureperl-only support (#119914) [Shoichi Kaji]
- Improve the documentation of Module::Build::Compat and dynamic_config [Dan Brook]
(From OE-Core rev: f9ffeab5caa4eafc57692a90f58ff2ef34153884)
Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 files changed, 119 insertions, 34 deletions
diff --git a/meta/recipes-devtools/perl/libmodule-build-perl/run-ptest b/meta/recipes-devtools/perl/libmodule-build-perl/run-ptest new file mode 100644 index 0000000000..0d63d1513b --- /dev/null +++ b/meta/recipes-devtools/perl/libmodule-build-perl/run-ptest | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | for case in `find t -type f -name '*.t'`; do | ||
| 4 | perl -I inc -I blib -Mblib $case >$case.output 2>&1 | ||
| 5 | ret=$? | ||
| 6 | cat $case.output | ||
| 7 | if [ $ret -ne 0 ]; then | ||
| 8 | echo "FAIL: ${case%.t}" | ||
| 9 | elif grep -i 'SKIP' $case.output; then | ||
| 10 | echo "SKIP: ${case%.t}" | ||
| 11 | else | ||
| 12 | echo "PASS: ${case%.t}" | ||
| 13 | fi | ||
| 14 | |||
| 15 | rm -f $case.output | ||
| 16 | done | ||
diff --git a/meta/recipes-devtools/perl/libmodule-build-perl_0.4224.bb b/meta/recipes-devtools/perl/libmodule-build-perl_0.4224.bb deleted file mode 100644 index d523a7a0c7..0000000000 --- a/meta/recipes-devtools/perl/libmodule-build-perl_0.4224.bb +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 1 | SUMMARY = "Module::Build - Build and install Perl modules" | ||
| 2 | DESCRIPTION = "Many Perl distributions use a Build.PL file instead of a \ | ||
| 3 | Makefile.PL file to drive distribution configuration, build, test and \ | ||
| 4 | installation. Traditionally, Build.PL uses Module::Build as the underlying \ | ||
| 5 | build system. This module provides a simple, lightweight, drop-in replacement. \ | ||
| 6 | Whereas Module::Build has over 6,700 lines of code; this module has less than \ | ||
| 7 | 120, yet supports the features needed by most distributions." | ||
| 8 | |||
| 9 | SECTION = "libs" | ||
| 10 | |||
| 11 | HOMEPAGE = "https://metacpan.org/release/Module-Build" | ||
| 12 | |||
| 13 | LICENSE = "Artistic-1.0 | GPL-1.0+" | ||
| 14 | LIC_FILES_CHKSUM = "file://README;beginline=960;endline=965;md5=624c06db56a2af4d70cf9edc29fcae1b" | ||
| 15 | |||
| 16 | SRC_URI = "${CPAN_MIRROR}/authors/id/L/LE/LEONT/Module-Build-${PV}.tar.gz" | ||
| 17 | SRC_URI[md5sum] = "b74c2f6e84b60aad3a3defd30b6f0f4d" | ||
| 18 | SRC_URI[sha256sum] = "a6ca15d78244a7b50fdbf27f85c85f4035aa799ce7dd018a0d98b358ef7bc782" | ||
| 19 | |||
| 20 | S = "${WORKDIR}/Module-Build-${PV}" | ||
| 21 | |||
| 22 | inherit cpan_build | ||
| 23 | |||
| 24 | # From: | ||
| 25 | # https://github.com/rehsack/meta-cpan/blob/master/recipes-devel/module-build-perl/module-build-perl_0.4216.bb | ||
| 26 | # | ||
| 27 | do_patch_module_build () { | ||
| 28 | cd ${S} | ||
| 29 | sed -i -e 's,my $interpreter = $self->{properties}{perl};,my $interpreter = "${bindir}/perl";,g' lib/Module/Build/Base.pm | ||
| 30 | } | ||
| 31 | |||
| 32 | do_patch[postfuncs] += "do_patch_module_build" | ||
| 33 | |||
| 34 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-devtools/perl/libmodule-build-perl_0.4229.bb b/meta/recipes-devtools/perl/libmodule-build-perl_0.4229.bb new file mode 100644 index 0000000000..f759f862fb --- /dev/null +++ b/meta/recipes-devtools/perl/libmodule-build-perl_0.4229.bb | |||
| @@ -0,0 +1,103 @@ | |||
| 1 | SUMMARY = "Module::Build - Build and install Perl modules" | ||
| 2 | DESCRIPTION = "Many Perl distributions use a Build.PL file instead of a \ | ||
| 3 | Makefile.PL file to drive distribution configuration, build, test and \ | ||
| 4 | installation. Traditionally, Build.PL uses Module::Build as the underlying \ | ||
| 5 | build system. This module provides a simple, lightweight, drop-in replacement. \ | ||
| 6 | Whereas Module::Build has over 6,700 lines of code; this module has less than \ | ||
| 7 | 120, yet supports the features needed by most distributions." | ||
| 8 | |||
| 9 | SECTION = "libs" | ||
| 10 | |||
| 11 | HOMEPAGE = "https://metacpan.org/release/Module-Build" | ||
| 12 | |||
| 13 | LICENSE = "Artistic-1.0 | GPL-1.0+" | ||
| 14 | LIC_FILES_CHKSUM = "file://README;beginline=949;endline=954;md5=624c06db56a2af4d70cf9edc29fcae1b" | ||
| 15 | |||
| 16 | SRC_URI = "${CPAN_MIRROR}/authors/id/L/LE/LEONT/Module-Build-${PV}.tar.gz \ | ||
| 17 | file://run-ptest \ | ||
| 18 | " | ||
| 19 | SRC_URI[md5sum] = "1447d9e02e63f7a1643986789a8f1ba9" | ||
| 20 | SRC_URI[sha256sum] = "1fe491a6cda914b01bc8e592faa2b5404e9f35915ca15322f8f2a8d8f9008c18" | ||
| 21 | |||
| 22 | S = "${WORKDIR}/Module-Build-${PV}" | ||
| 23 | |||
| 24 | inherit cpan_build ptest-perl | ||
| 25 | |||
| 26 | # From: | ||
| 27 | # https://github.com/rehsack/meta-cpan/blob/master/recipes-devel/module-build-perl/module-build-perl_0.4216.bb | ||
| 28 | # | ||
| 29 | do_patch_module_build () { | ||
| 30 | cd ${S} | ||
| 31 | sed -i -e 's,my $interpreter = $self->{properties}{perl};,my $interpreter = "${bindir}/perl";,g' lib/Module/Build/Base.pm | ||
| 32 | } | ||
| 33 | |||
| 34 | do_patch[postfuncs] += "do_patch_module_build" | ||
| 35 | |||
| 36 | do_install_ptest() { | ||
| 37 | cp -r ${B}/inc ${D}${PTEST_PATH} | ||
| 38 | cp -r ${B}/blib ${D}${PTEST_PATH} | ||
| 39 | chown -R root:root ${D}${PTEST_PATH} | ||
| 40 | } | ||
| 41 | |||
| 42 | RDEPENDS_${PN} += " \ | ||
| 43 | perl-module-carp \ | ||
| 44 | perl-module-cpan \ | ||
| 45 | perl-module-config \ | ||
| 46 | perl-module-cwd \ | ||
| 47 | perl-module-data-dumper \ | ||
| 48 | perl-module-encode \ | ||
| 49 | perl-module-extutils-cbuilder \ | ||
| 50 | perl-module-extutils-command \ | ||
| 51 | perl-module-extutils-install \ | ||
| 52 | perl-module-extutils-installed \ | ||
| 53 | perl-module-extutils-mkbootstrap \ | ||
| 54 | perl-module-extutils-packlist \ | ||
| 55 | perl-module-extutils-parsexs \ | ||
| 56 | perl-module-file-basename \ | ||
| 57 | perl-module-file-compare \ | ||
| 58 | perl-module-file-copy \ | ||
| 59 | perl-module-file-find \ | ||
| 60 | perl-module-file-glob \ | ||
| 61 | perl-module-file-path \ | ||
| 62 | perl-module-file-spec \ | ||
| 63 | perl-module-file-spec-functions \ | ||
| 64 | perl-module-getopt-long \ | ||
| 65 | perl-module-metadata \ | ||
| 66 | perl-module-perl-ostype \ | ||
| 67 | perl-module-pod-man \ | ||
| 68 | perl-module-tap-harness \ | ||
| 69 | perl-module-text-abbrev \ | ||
| 70 | perl-module-text-parsewords \ | ||
| 71 | perl-module-utf8 \ | ||
| 72 | " | ||
| 73 | |||
| 74 | RDEPENDS_${PN}-ptest += " \ | ||
| 75 | gcc \ | ||
| 76 | make \ | ||
| 77 | perl-module-blib \ | ||
| 78 | perl-module-file-temp \ | ||
| 79 | perl-module-lib \ | ||
| 80 | perl-module-perlio \ | ||
| 81 | perl-module-perlio-encoding \ | ||
| 82 | perl-module-pod-text \ | ||
| 83 | perl-module-tap-harness-env \ | ||
| 84 | perl-module-tap-parser \ | ||
| 85 | perl-module-tap-parser-scheduler \ | ||
| 86 | perl-module-test-harness \ | ||
| 87 | perl-module-test-more \ | ||
| 88 | " | ||
| 89 | |||
| 90 | RPROVIDES_${PN} += "\ | ||
| 91 | libmodule-build-base-perl \ | ||
| 92 | libmodule-build-compat-perl \ | ||
| 93 | libmodule-build-config-perl \ | ||
| 94 | libmodule-build-cookbook-perl \ | ||
| 95 | libmodule-build-dumper-perl \ | ||
| 96 | libmodule-build-notes-perl \ | ||
| 97 | libmodule-build-ppmaker-perl \ | ||
| 98 | libmodule-build-platform-default-perl \ | ||
| 99 | libmodule-build-platform-unix-perl \ | ||
| 100 | libmodule-build-podparser-perl \ | ||
| 101 | " | ||
| 102 | |||
| 103 | BBCLASSEXTEND = "native" | ||
