summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl
Commit message (Collapse)AuthorAgeFilesLines
* perl: fix CVE-2020-10543 & CVE-2020-10878Lee Chee Yang2020-08-044-0/+227
| | | | | | | | | | | | | (From OE-Core rev: d9c5d9c52eb1f03ff9c907a76dda31042fb26edb) (From OE-Core rev: de3fe84fcfe3f1c3c2ad963b1fe459ccca9472a0) Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: Fix host specific modules problemsRichard Purdie2020-08-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | We were seeing a ton of empty perl modules being created such as "perl-module-x86-64-linux-encoding" where the name would include ${TARGET_ARCH}-linux. These files were already being filtered in an earlier do_split_packages() expression so exclude them from the latter one to remove the pointless empty modules in PACKAGES. This doesn't explain why some were not deterministic but will recude the do_package execution time and clean up the build directories at the very least. (From OE-Core rev: 5aaf9d3a748cbad17a4a3e5d9715ac2f289b007d) (From OE-Core rev: 6103cc314520280e55366d00657723e90f609d70) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 9f1a959d9831f43dda656e3b0c4d059db3363877) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* liberror-perl: upgrade 0.17028 -> 0.17029Tim Orling2020-03-071-2/+2
| | | | | | | | | | | | | | | | | | | | Upstream release notes: " 0.17029 2020-01-28 - Rebuild for order of 'NAME' and 'VERSION' sections in the generated POD documentation (see 0.001004 in https://metacpan.org/changes/distribution/Pod-Weaver-PluginBundle-SHLOMIF ). - VERSION used to appear before NAME. " (From OE-Core rev: 8856aa960ff4c9c833e958082466d19259915d5f) Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit f4a520cc827187d83f2997614d893bba7d74a152) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: Fix makefile race causing configuration differencesRichard Purdie2020-03-072-0/+25
| | | | | | | | | | | | | | Add a missing makefile dependency which can cause differences in configuration (submitted upstream). [YOCTO #13800] (From OE-Core rev: 1589115ff42e8c211bc0784bd8aca7d3a5b8f566) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit fe97845a45434902c5a994e253a127a462d7d3b4) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: Fix encode module reproducibility issuesRichard Purdie2020-03-072-0/+23
| | | | | | | | | | | | | The code is encoding host compiler parameters into target builds. Avoid this for our target builds. This should resolve builds which aren't reproducible between hosts with different compilers. (From OE-Core rev: 4b41afeea632f33a490d75621e2c0d6bb2bb6aca) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 71cdbf426e46e3ca1b5038f40e9f7ba958abc537) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: fix failing ptestsAlexander Kanavin2020-03-073-2/+30
| | | | | | | | | | | (From OE-Core rev: b84f3056591c16fa3e2bba2e4fa936390a76ee9a) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit f1da6355f13e707b3ffa5025067e509e0120784d) [Fixup for zeus context] Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: improve reproducibilityRoss Burton2020-03-071-0/+8
| | | | | | | | | | | | | | | | | | | | | | | Occasionally the reproducibility selftest fails because perl-pod differs, specifically that the perltoc.pod file was sometimes missing modules. Debugging revealed that there are missing dependencies so there is a build race: building perltoc.pod from an clean build tree results in no modules being listed at all. A bug has been filed at https://github.com/arsv/perl-cross/issues/86 to solve this properly, but for now we can just delete perltoc.pod after make has finished and re-generate it. [ YOCTO #13726 ] (From OE-Core rev: 4ee9c60797e95674ae138245b3a4de063b2e95db) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 7e0f6c9ea4f824f29dc30c6631fd8039ebe83a0b) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libmodule-build-perl: fix ptestsAlexander Kanavin2020-03-072-2/+3
| | | | | | | | | | | | | | Particularly remove a broken detection of skipped tests (which was marking tests that actually passed), and install additional artefacts needed for testing. (From OE-Core rev: 559fd361440898479937c887a0e4f8cfb8c46891) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit dbbce0918617c21d0e43e9727d38372c22dff3dc) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: install typemap and other extutils metadata as part of perl-coreAlexander Kanavin2020-03-071-3/+3
| | | | | | | | | | | | | | Modules actually make use of these files, so they belong in perl-core other than perl-doc (the immediate failure was ptests for libmodule-build-perl failing). (From OE-Core rev: c95832dbfe4f375dadbffc8ee678052dbf7b3913) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 829e8c49833e4cb8de5db869769eb492c827e8c9) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: package Config.pm from arch directory into the main perl packageAlexander Kanavin2020-03-071-0/+1
| | | | | | | | | | | | | Otherwise, some modules such as libmodule-build-perl fail to work properly. (From OE-Core rev: 2d5fae94a889cd9558e3946ecec2362c94e1c1e9) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit e4072d53a7fb4fbbdacce9a20968e71ef6cff307) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: update to 5.30.1Alexander Kanavin2020-03-072-55/+5
| | | | | | | | | | | | | Drop fix-setgroup.patch as the upstream has fixed the issue. (From OE-Core rev: df86f5d32dc18f25c5c4788b65cceae8905a6ef3) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 45edc6d23e20f7634c50db71e419c7e3bb7f393e) [Bug fix only update] Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: Fix various reproducibile build issuesRichard Purdie2020-02-112-0/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a patch which handles the following issues: a) Remove the \n from configure_attr.sh since it gets quoted differently depending on whether the shell is bash or dash which can cause the test result to be incorrect. Reported upstream: https://github.com/arsv/perl-cross/issues/87 b) Sort the order of the module lists from configure_mods.sh since otherwise the result isn't the same leading to makefile differences. Reported upstream: https://github.com/arsv/perl-cross/issues/88 c) Sort the Encode::Byte byte_t.fnm file output (and the makefile depends whilst there for good measure) This needs to go to upstream perl (not done) d) Use bash for perl-cross configure since otherwise trnl gets set to "\n" with bash and "" with dash Reported upstream: https://github.com/arsv/perl-cross/issues/87 (From OE-Core rev: 482fd0d99f989b5a72a25bdf402fb2f219420b5d) (From OE-Core rev: def3a9d748564883d71c506726554df622701b00) (From OE-Core rev: 1f630fe43ec3c3e78c25f93d6badc8a35ff782ad) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: do not install files that contain build host specific dataAlexander Kanavin2020-02-112-0/+6
| | | | | | | | | | | | | | | | | | This was breaking reproducibility, and the files aren't needed on target. [YOCTO #13772] (From OE-Core rev: 2e0f30c4680221c693495e3a0327378d502a518b) (From OE-Core rev: 208efc88fa3c57244b272bf7e7f7f8163f14630c) (From OE-Core rev: e120848c6bba6ce2cf910e762d53193d85280a98) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* liberror-perl: update 0.17027 -> 0.17028Tim Orling2020-01-111-3/+3
| | | | | | | | | | | | | | | | HOMEPAGE change from bitbucket to github Upstream release notes: - Moved the VCS repo to https://github.com/shlomif/perl-error.pm - No other significant changes. (From OE-Core rev: f15419842bfdf463d987ba708e6d5f9b6aabecdf) Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 488680f45fbe28e32391e2a1a66ab350706abe93) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: Handle PACKAGES_DYNAMIC for perl-nativeKhem Raj2019-10-091-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A perl module recipe extending to provide native version causes target perl dependencies to be pulled into native build if the module recipe has RDEPENDS_${PN} = "perl-module-XXXX" e.g. libxml-sax-base-perl recipe. The reason is that native bbclass empties out PACKAGES_DYNAMIC and perl's PACKAGES_DYNAMIC_class-target is greedy enough to usurp native modules as well. Eventually we end up with errors like when sstate is used across machines * ERROR: libxml-sax-base-perl-native different signature for task do_populate_sysroot.sigdata between qemux86copy and qemuarm Therefore, to fix this native case needs to handled specially when re-assigning module dependencies in split_perl_packages(), where the modules are named correctly for native case and have a single dependency on perl-native, secondly, PACKAGES_DYNAMIC for target case needs to be reined in to spare, -native modules, thirdly, let perl-native take over the case for providing native modules This will fix several sstate signature errors like above with external perl modules providing native variants and having runtime dependencies on modules which are provided by perl proper (From OE-Core rev: 34834d06ceb84221dd53defd27eb94201723d6c5) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: add PACKAGECONFIG for dbRoss Burton2019-07-311-4/+10
| | | | | | | | | | | | | | | perl-cross makes it easy to cleanly disable the use of Berkeley DB if desired, so add a PACKAGECONFIG for this. More of the dependencies (such as gdbm) can be controlled in the same way, but Berkeley DB is a prime contender: it's a large library which we have to ship an old release for due to licensing issues, so there are users who may want to strip it out of builds entirely. (From OE-Core rev: e3860098dadd0b1db97fb0414aae6abfc234b245) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: fix whitespaceRoss Burton2019-07-311-2/+2
| | | | | | | | | There was some tabs embedded in spaces, fix those. (From OE-Core rev: 96cf9a881405faec5fb6f3f305fd29c5f14fd52f) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: fix Upstream-Status tagsRoss Burton2019-07-022-2/+2
| | | | | | | (From OE-Core rev: ec644192c758ce1ec90c487a0fff69d6de0ca55d) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: Reproducible build fixesJoshua Watt2019-06-243-0/+67
| | | | | | | | | | Applies two patches that are required to improve the reproducibility of builds. (From OE-Core rev: 9297cabb0aca8212d3cc74f8d26e43abc02ded87) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: Improve ptest package reproducibilityJoshua Watt2019-06-211-3/+6
| | | | | | | | | | | | | | | | | | Fixes a few reproducibility issues in the perl ptest package: 1) config.log has a lot of paths encoded in it. This file is unnecessary for ptest, so it is omitted from the package 2) Makefile.config has a lot of paths encoded in it. This file should be fixed up using the same rules as several other files that are in the package 3) Paths in DEBUG_PREFIX_MAP are not being correctly removed from files because DEBUG_PREFIX_MAP is now several command line arguments. Instead of requiring an exact match for all arguments, remove any matching argument. (From OE-Core rev: 04454faadf5cf18c054c98803380393db42646c4) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libmodule-build-perl: upgrade 0.4224 -> 0.4229; enable ptestTim Orling2019-06-193-34/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* libmodule-build-perl: move from meta-perlTim Orling2019-06-191-0/+34
| | | | | | | | | | | | * cpan_build.bbclass DEPENDS on libmodule-build-perl * add self as maintainer Fixes [YOCTO #12873] (From OE-Core rev: 81ba07d85d21456bf7248b2f04082958e8d724c2) Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl-rdepends.txt: more ptest dependencies fixesTim Orling2019-06-191-0/+48
| | | | | | | | | | | | | | | | | | | | * File::Spec::Unix runtime depends on Cwd and constant * Module::Metadata runtime depends on version * CPAN::Meta runtime depends on Parse::CPAN::Meta and JSON::PP * ExtUtils::MakeMaker runtime depends on ExtUtils::MM_Unix * TAP::Base runtime depends on TAP::Object * TAP::Parser::SourceHandler::Perl runtime depends on TAP::Parser::SourceHandler::Executable * TAP::Harness runtime depends on TAP::Formatter::File * TAP::Formatter::File runtime depends on TAP::Formatter::Session and TAP::Formatter::Base * Many TAP::Harness::* dependencies * POD::Simple::Transcode runtime depends on POD::Simple::Transcode{dumb,smart} (From OE-Core rev: c80176774f675c1f48353dfd93942c6b60cbea82) Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: Move perl-sanity -> perlRichard Purdie2019-06-1814-0/+5186
| | | | | | | | | This was moved during the perl cleanup, it can/should be moved back now as its confusing too many people. (From OE-Core rev: ce69c21707aa19ab8a3f6c07dc5a560671ab53a4) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libxml-perl: Fix module and ptest dependenciesRichard Purdie2019-06-011-1/+2
| | | | | | | | This fixes runtime errors when running the ptest in a minimal image. (From OE-Core rev: 597eddc71a963613edea243c4c320ecbd6149916) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* liburi-perl: Fix module ptest dependenciesRichard Purdie2019-06-011-1/+13
| | | | | | | | This fixes runtime errors when running the ptest in a minimal image. (From OE-Core rev: 35ec94fa3c3d3d6c2781f579c74094a271b220f9) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libtest-needs-perl: Fix ptest dependenciesRichard Purdie2019-06-011-1/+1
| | | | | | | | This fixes runtime errors when running the ptest in a minimal image. (From OE-Core rev: a99204f36afd1b98e6a0aabe70cc4d86d8d18315) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libxml-parser-perl: fix ptest dependenciesTim Orling2019-06-011-1/+1
| | | | | | | | | | | | The ptests have additional dependency on: * perl-module-filehandle * perl-module-if * perl-module-test (From OE-Core rev: 278b4fb78cc35338f692c559b4e4c068e8f37c71) Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl/modules: Add various missing ptest perl module dependenciesRichard Purdie2019-05-223-1/+4
| | | | | | | | | Whilst not complete, this resolves some module dependency failures being seen by various lib*-perl ptests and in quilt. (From OE-Core rev: 2706b396ef9699c560cded4384cbfc9d79beaa7f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libtest-needs-perl: upgrade 0.002005 -> 0.002006Tim Orling2019-05-161-4/+4
| | | | | | | | | | | | | | | | | | | Change SRC_URI to https://cpan.metacpan.org License-Update: Lines moved further down in README. Upstream release notes: 0.002006 - 2019-04-04 - added additional references to related modules in pod - various internal cleanups - fix backwards compatibility with earlier versions of version.pm - fix output from test script when tests fail - added note about RELEASE_TESTING to test message on forced failures (From OE-Core rev: bec77f5d48055bd30ee69acb43d67c2d05180f7b) Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: drop lost patchRuslan Bilovol2019-01-271-34/+0
| | | | | | | | | | | | | Commit 68552c353255 "perl: remove the previous version of the recipe" dropped 0001-Makefile.SH-Pod-Simple-requires-Getopt-Long.patch from recipe, but left the patch itself in source tree. Remove this patch since nobody uses it. Cc: Alexander Kanavin <alex.kanavin@gmail.com> (From OE-Core rev: 87a646cf3115bff10bbc6a85e9d79b93fde2379f) Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: remove the previous version of the recipeAlexander Kanavin2019-01-1184-8459/+0
| | | | | | | (From OE-Core rev: 68552c353255188de3d5b42135360a30e7eac535) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: Fix race issue for cpan/Pod-SimpleRobert Yang2019-01-033-0/+36
| | | | | | | | | | | | | Fixed: Running pm_to_blib for cpan/Pod-Simple directly [snip] /path/to/cpan/podlators/../../miniperl "-I../../lib" "-I../../lib" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/pod2man Can't locate Getopt/Long.pm in @INC [snip] (From OE-Core rev: bb269bc8e507639dac5a90cce0d71c45216de5e4) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* liberror-perl: upgrade 0.17026 -> 0.17027Tim Orling2018-12-131-8/+22
| | | | | | | | | | | | | | | | | | | | | | | * add RDEPENDS * add RDEPENDS for ptest - tested on qemux86 with glibc and musl * drop do_compile, not obvious why LIBC needed to be set * Added HOMEPAGE: https://bitbucket.org/shlomif/perl-error.pm - Repository used to be github.com/shlomif (deadlink) Upstream release notes: """ 0.17027 2018-10-28 - Documentation and examples enhancements. - https://bitbucket.org/shlomif/perl-error.pm/pull-requests/1/october-prc-some-minor-mostly-doc-changes/diff - Thanks to https://metacpan.org/author/JMERELO . """ (From OE-Core rev: 236e801df6e3bd859acc2b8456880a4bc4f0943c) Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: skip tests that are not usefulAnuj Mittal2018-10-164-88/+128
| | | | | | | | | | | | | | | | | Some tests, like the one that compares the hashes for a list of files against those stored in a .dat file, don't make sense for downstream distros packaging perl. Backport a patch from upstream that allows skipping of these tests at runtime. Also remove the local patch trying to keep hashes up-to-date for one of those tests. Fixes [YOCTO #12787] (From OE-Core rev: 557f4618b75b8739a647e46054ab587ae2bbdc25) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: fix race issues for MakeMakerRobert Yang2018-09-253-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | Fixed a race issue when compile libhtml-parser-perl and others who use MakeMaker: [snip] chmod 755 blib/arch/auto/HTML/Parser/Parser.so chmod 644 "Parser.bs" [snip] The rule INST_DYNAMIC removes '.bs' file which are generated by BOOTSTRAP, but the have no dependencies, so there is a race issue: BOOTSTRAP: touch foo.bs chmod 755 foo.bs INST_DYNAMIC: rm -fr foo.bs The error would happen when INST_DYNAMIC removes foo.bs after BOOTSTRAP touched it but before chmod on it. (From OE-Core rev: f33d7124cd07f776e8b05a26703f6d551357ae09) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* cpan.bbclass: make RPATH fix more generalJens Rehsack2018-08-281-7/+0
| | | | | | | | | | | | | | | | | Extract a general version of RPATH fix for libxml-parser-perl_2.44.bb from 292471701 libxml-parser-perl: fix "...contains bad RPATH" into cpan.bbclass to catch most errors reported by Khem Raj via http://errors.yoctoproject.org/Errors/Build/66538/ Genrally, Perl 5 toolchain deals with cross-compile sysroots as if a dependency is installed at an exostic place on a server. This issue needs to be addressed wider into the community. (From OE-Core rev: a5439ff9627d309f6980947f5ee573d85e672228) Signed-off-by: Jens Rehsack <sno@netbsd.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: CVE-2018-12015Jagadeesh Krishnanjanappa2018-08-232-0/+49
| | | | | | | | | | | | | | | | | Remove existing files before overwriting them Archive should extract only the latest same-named entry. Extracted regular file should not be writtent into existing block device (or any other one). https://rt.cpan.org/Ticket/Display.html?id=125523 Affects perl <= 5.26.2 (From OE-Core rev: 037b205e89ae4c7d638a5c15d64f60e16facbaa2) Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: avoid using += with an over-rideAndre McCurdy2018-08-232-2/+2
| | | | | | | | | | Using += with an over-ride can be a source of confusion so try to avoid the construct in core recipes. (From OE-Core rev: 2588c2aae11b7b480022dc11575295fdc792bf3f) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libxml-parser-perl: fix "...contains bad RPATH"Jens Rehsack2018-08-231-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | The perl distribution "XML-Parser" relies for configuration on the tooling of Devel::CheckLib - which is not aware of sysroot locations nor of reasonable compiler/link definitions from outside. This causes ERROR: libxml-parser-perl-2.44-r0 do_package_qa: QA Issue: package libxml-parser-perl contains bad RPATH ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/recipe-sysroot/usr/lib in file ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/packages-split/libxml-parser-perl/usr/lib/perl/vendor_perl/5.24.4/auto/XML/Parser/Expat/Expat.so package libxml-parser-perl contains bad RPATH ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/recipe-sysroot/usr/lib in file ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/packages-split/libxml-parser-perl/usr/lib/perl/vendor_perl/5.24.4/auto/XML/Parser/Expat/Expat.so [rpaths] ERROR: libxml-parser-perl-2.44-r0 do_package_qa: QA run found fatal errors. Please consider fixing them. ERROR: libxml-parser-perl-2.44-r0 do_package_qa: Function failed: do_package_qa It's strongly encouraged to the maintainer @toddr to rework the toolchain for up to date environments. [RP: Added fix for nativesdk RPATH issues too] (From OE-Core rev: b103bb9426c0e5e3ef0fe0c34274ad3a06af8b6a) Signed-off-by: Jens Rehsack <sno@netbsd.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: update to 5.24.4Andrej Valek2018-07-187-118/+40
| | | | | | | | | | | | - fix CVE-2018-6797, CVE-2018-6798, CVE-2018-6913 - remove patches, which are now included in update - refresh patches (From OE-Core rev: c0dac0d600e81054104f7b377f7c266aa83df371) Signed-off-by: Andrej Valek <andrej.valek@siemens.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* liberror-perl: upgrade 0.17025 -> 0.17026Tim Orling2018-06-151-2/+2
| | | | | | | | | | | | | | | | | | * Upstream release notes: " May 23 2018 <shlomif@shlomifish.org> (Shlomi Fish) Error.pm #0.17026 - Convert to Dist-Zilla. " * Tested on qemux86: all tests pass (From OE-Core rev: 8a5d5a8422239d45aba73595ee2a2120adf93c84) Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl-ptest: drop runtime dependency on libsspMartin Jansa2018-05-221-1/+1
| | | | | | | | | | * We use ssp impl directly from glibc/musl now. (From OE-Core rev: db883d727fe9d23c6078c5a078ca3cc07fe296db) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* liburi-perl: upgrade 1.73 -> 1.74Tim Orling2018-05-151-2/+2
| | | | | | | | | | | | | Upstream release notes: Changes for version 1.74 - 2018-04-22 avoid 'uninitialized' warning in URI::File when host has no domain name set (PR#53, thanks Shoichi Kaji!) (From OE-Core rev: 346afbee122a3e0642d552cd5b762e6f0b5a7957) Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: native modules will not trigger build perl for target.Krzysztof Taborski2018-05-112-1/+3
| | | | | | | | | | | | | Currently building perl-native modules triggers build perl for target due to PACKAGES_DYNAMIC regex. This commit will cause, that perl native modules will trigger perl-native build. (From OE-Core rev: 7dd9772eca6df52db09b65537fdf689f1aa3fd8f) Signed-off-by: Krzysztof Taborski <taborskikrzysztof@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: fix CVE-2017-12837Hongxu Jia2018-05-112-0/+33
| | | | | | | | | | https://perl5.git.perl.org/perl.git/commitdiff/96c83ed78aeea1a0496dd2b2d935869a822dc8a5 (From OE-Core rev: bd53256e165f5bb59a28d77a466d71fce39080fa) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: Account for libnsl being dropped from glibcKhem Raj2018-05-091-1/+1
| | | | | | | | | -lnsl needs to be removed even on glibc (From OE-Core rev: 1d1e2f2c44aa6d02458cec720bee2818cbaa31ff) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libxml-simple-perl: upgrade 2.24 -> 2.25Tim Orling2018-05-041-3/+14
| | | | | | | | | | | | | | | | | | * Fix RDEPENDS Upstream release notes: 2.25 2018-03-18 16:18:24+13:00 Pacific/Auckland - disable entity expansion when using XML::Parser, for more secure default behaviour (patch from Ray Morris) - call to XML::Parser constructor is now in its own method to ease overriding License-Update: update year to 2018 (From OE-Core rev: d549289fa518a44274911d0959945196bbff930f) Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: Security fix CVE-2017-12883Armin Kuster2018-04-232-0/+45
| | | | | | | | | | Affects: Perl < 5.24.3-rc1 and 5.26.x before 5.26.1-RC1 (From OE-Core rev: 60ebf7fcb7bfcef8a8e0cd52e737b082623ff109) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta: add missing Signed-off-by and Upstream-Status tagsRoss Burton2018-04-131-1/+1
| | | | | | | (From OE-Core rev: 4612441b59fd8264fdd5bd4f3e5d195f6085c94c) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>