summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl
AgeCommit message (Collapse)Author
2024-04-16liburi-perl: upgrade 5.27 -> 5.28Wang Mingyu
Changelog: - Using Scalar::Util::reftype instead of just ref(), but mindful this time about definedness to avoid warnings Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30liberror-perl: move to meta-perlTim Orling
The upstream maintainer for Error has deprecated it for quite some time [1]. The only dependency in oe-core was coreutils-ptest. [YOCTO #15461] [1] https://metacpan.org/pod/Error#WARNING Using the "Error" module is no longer recommended due to the black-magical nature of its syntactic sugar, which often tends to break. Its maintainers have stopped actively writing code that uses it, and discourage people from doing so. See the "SEE ALSO" section below for better recommendations [2]. [2] https://metacpan.org/pod/Error#SEE-ALSO SEE ALSO -------- See Exception::Class for a different module providing Object-Oriented exception handling, along with a convenient syntax for declaring hierarchies for them. It doesn't provide Error's syntactic sugar of try { ... }, catch { ... }, etc. which may be a good thing or a bad thing based on what you want. (Because Error's syntactic sugar tends to break.) Error::Exception aims to combine Error and Exception::Class "with correct stringification". TryCatch and Try::Tiny are similar in concept to Error.pm only providing a syntax that hopefully breaks less. Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-29liburi-perl: upgrade 5.25 -> 5.27Wang Mingyu
Changelog: ========== - Add missing NAME section to POD of URI::geo - Add URI::geo Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-05libxml-parser-perl: upgrade 2.46 -> 2.47Tim Orling
* Drop CheckLib.pm patch; no longer applies * Change to CPAN_MIRROR for SRC_URI * Drop SRC_URI[md5sum] * Drop redundant ptest-perl/run-ptest; ptest-perl inherit does this * Drop sed for Expat/Makefile; no longer shipped * Inherit pkgconfig to find expat lib * Patch Makefile.PL to not try to load host expat License-Update: Use LICENSE file; change to Artistic-2.0 https://metacpan.org/dist/XML-Parser/changes 2.47 2023-12-28 (by Todd Rinaldo) - #84 use $fh instead of $foo - #85 Fix typo in documentation - #89 Devel::CheckLib to from 0.99 -> 1.14 - Devel::CheckLibn 1.16 - #91 POD fix for verbatim text - #97 Add a LICENSE file - #94 Don't ship Expat/Makefile - Various github workflow improvements. Windows is still not working. Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-03liburi-perl: upgrade 5.21 -> 5.25Wang Mingyu
Changelog: ============== - cache scheme so it never attempt to load it again - Really revert "use Scalar::Util::reftype instead of ref to check for ARRAY" - Revert the reftype change introduced in 5.22 as it causes warnings. - Use Scalar::Util::reftype instead of ref to check for ARRAY Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-03libtest-warnings-perl: upgrade 0.032 -> 0.033Wang Mingyu
Changelog: ============ - add Test2 compatibility in the test triggered by done_testing(); - new long-awaited feature (!!!) "allow_patterns", to either temporarily or globally exempt particular warning patterns Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-26perl: Fix perl-module-* being ignored via COMPLEMENTARY_GLOBWilliam Lyu
When perl-modules is added via COMPLEMENTARY_GLOB, all perl-module-* packages recommended by perl-modules are ignored due to the defined behavior of COMPLEMENTARY_GLOB. This patch changes the relationship between perl-modules and all of its perl-module-* from RRECOMMENDS to RDEPENDS. This makes sense as perl-modules should represent the collection of all optional perl-module-* packages. After this patch, perl-modules itself is being RRECOMMENDED instead of the individual perl-module-* packages perl-modules represents. Signed-off-by: William Lyu <William.Lyu@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-21libtest-warnings-perl: upgrade 0.031 -> 0.032Wang Mingyu
License-Update: basic artistic license changed to perl artistic license. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20perl: 5.38.0 -> 5.38.2Lee Chee Yang
update include fix for CVE-2023-47100. Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19perl: fix intermittent test failureWilliam Lyu
Fixes [YOCTO #15136] This fix addresses the intermittent failure of the Perl ptest t/op/sigsystem.t. Signed-off-by: William Lyu <William.Lyu@windriver.com> Signed-off-by: Randy MacLeod <randy.macleod@windriver.com> Reported-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
2023-09-22recipes: Drop remaining PR values from recipesRichard Purdie
We've been removing PR values from recipes at upgrade time for a while. In general anyone maintaining a binary distro would end up having to curate these themselves so the values in OE-Core aren't really that useful anymore. In many ways it makes sense to clear out the remaining ones (which are mostly for 'config' recipes that are unlikely to increase in PV) and leave a clean slate for anyone implementing a binary distro config. References are left in meta-selftest since the tests there do involve them and their removal upon upgrade. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-09-18liburi-perl: update 5.17 -> 5.21Alexander Kanavin
License-Update: formatting Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-09-18perl: ensure all failures are caughtAlexander Kanavin
Sed expression may miss some failures, and | obscures the non-zero return code which would otherwise indicate them. Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-09-18perl: use 64 bit integers across all targetsAlexander Kanavin
Otherwise perl would use 32 bit integers on 32 bit targets, causing loss of bits when copying 64 bit time_t into an internal representation. Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-09-11perl: Add packageconfig for setlocale functionality differencesKhem Raj
setlocale behavior with 'missing' locales is different when using musl [1] which confuses perl locale tests and perl thinks it has locale on system while there are none. Therefore pass correct property on musl regarding setlocale behaviour [1] https://musl.openwall.narkive.com/kO1vpTWJ/setlocale-behavior-with-missing-locales Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2023-09-07perl: update 5.36.1 -> 5.38.0Alexander Kanavin
Rebase perl-configpm-switch.patch. Add a patch to perl-cross to unbreak perl's line numbers printing. Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-07-21perl: Fix CVE-2023-31486Soumya
HTTP::Tiny before 0.083, a Perl core module since 5.13.9 and available standalone on CPAN, has an insecure default TLS configuration where users must opt in to verify certificates. References: https://nvd.nist.gov/vuln/detail/CVE-2023-31486 Upstream patches: https://github.com/chansen/p5-http-tiny/commit/77f557ef84698efeb6eed04e4a9704eaf85b741d https://github.com/chansen/p5-http-tiny/commit/a22785783b17cbaa28afaee4a024d81a1903701d Signed-off-by: Soumya <soumya.sambu@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2023-06-15perl: fix CVE-2023-31484Soumya
CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS. Signed-off-by: Soumya <soumya.sambu@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2023-05-22perl: update 5.36.0 -> 5.36.1Alexander Kanavin
Drop gcc 12 patch, as upstream rejected it, and then (presumably) fixed gcc 12 issues differently. Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2023-05-05libmodule-build-perl: upgrade 0.4232 -> 0.4234Tim Orling
* Skip t/pod_parser.t ptest since it is for testing documentation and requires Pod::Parser for which we do not have a recipe. Adding one does not make much sense since Pod::Parser was dropped from Perl > 5.31.1 in favor of Pod::Simple https://metacpan.org/pod/Pod::Parser#DESCRIPTION Changes: https://metacpan.org/dist/Module-Build/changes 0.4234 - Fri 28 Apr 2023 10:46:26 CEST - PodParser now respects =encoding directives - Don't use libraries in t/bundled for Build.PL - make_tarball: workaround for broken tar on Darwin - Respect $Config{man1ext}/$Config{man3ext} - Do not require a compiler if c_source is an empty list Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-05-05perl: patch out build paths from native binariesAlexander Kanavin
Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-26abi_version/sstate: Handle pkgconfig output changes and bump output versionsRichard Purdie
A recent package.py change has highlighted some corruption issues with -dev pkgconfig package dependencies. Bump the output versions to trigger a rebuild and ensure everything is consistent. Take the opportunity to also drop all HASHEQUIV_HASH_VERSION entries since the main version is changing. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-12libxml-perl: Add missing perl module ptest dependenciesRichard Purdie
Add dependencies on missing perl modules to fix execution in minimal images. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-12libmodule-build-perl: Fix ptest dependenciesRichard Purdie
Some of the ptests fail in a minimal image. Add the missing perl module dependencies. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-12perl: Add missing procps-ps dependency for ptestsRichard Purdie
Some of the ptests fail in a minimal image as they depend on options to ps which busybox doesn't support. Add the full utility. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-02-04libtest-needs-perl: upgrade 0.002009 -> 0.002010Tim Orling
0.002010 - 2023-01-22 - split main test into three separate scripts - avoid outputting multiple plans if used with no_plan Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-01-12recipes, classes: Avoid adding extra whitespace to PACKAGESPLITFUNCSPeter Kjellerstedt
This is a follow-up to commit 846ff49465 to remove the extra whitespace that is no longer needed after converting :append and :prepend to += and =+. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-01-06libtest-fatal-perl: upgrade 0.016 -> 0.017Alexander Kanavin
License-Update: formatting Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-01-05recipes/classes: Drop prepend/append usage with PACKAGESPLITFUNCSRichard Purdie
As far as I can tell, none of these uses of PACKAGESPLITFUNCS need append/prepend operators, the standard += and =+ can work just fine. Since OE-Core is copied a lot, use the preferred syntax which is also simpler to parse and change. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-12-28libmodule-build-perl: update 0.4231 -> 0.4232Alexander Kanavin
License-Update: formatting, position of the license statement moved in the README Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-11-22liburi-perl: upgrade 5.08 -> 5.17Tim Orling
* Author changed back from ETHER to OALDERS * Use CPAN_MIRROR for SRC_URI * Update HOMEPAGE * Update RPEPENDS for -ptest * Patch to skip TODO test cases For changes, see: https://metacpan.org/release/OALDERS/URI-5.17/changes License-Update: whitespace changes Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2022-11-22libtest-warnings-perl: move from meta-perlTim Orling
liburi-perl in oe-core now RDEPENDS on libtest-warnings-perl for ptest * Update HOMEPAGE; fix syntax * Add SUMMARY * Add BUGTRACKER * Use CPAN_MIRROR for SRC_URI * Use actual LICENCE file for LIC_FILES_CHKSUM * Add RDEPENDS * Add RDEPENDS on perl-modules for ptest - Too many hidden dependencies that fail silently, but pass with full perl-modules * Add self as maintainer * Add to ptest-packagelists (fast) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2022-11-22libtest-fatal-perl: add recipe for 0.016Tim Orling
Test::Fatal - incredibly simple helpers for testing code with exceptions https://metacpan.org/release/RJBS/Test-Fatal-0.016 * Dependency for liburi-perl ptest. * Add self as maintainer * Add to ptest-packages.inc (fast) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2022-11-22libtry-tiny-perl: add recipe for 0.31Tim Orling
Try::Tiny - Minimal try/catch with proper preservation of $@ https://metacpan.org/release/ETHER/Try-Tiny-0.31 * Dependency for libtest-fatal-perl * Add self as maintainer * Add to ptest-packagelists.inc (fast) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2022-09-01perl: run builds from a pristine source treeAlexander Kanavin
Running builds from a previously used directory relies on correctness of 'make clean' or incremental 'make', and sadly perl (or perl-cross) does not have either. The particularly nasty problem, currently occurring, is that sometimes, when reusing a previous build, we arrive at a combination of timestamps in the tree, where make becomes very confused, gets lost in its own rules and enters an infinite loop, never figuring out what needs to be rebuild in what order. Worse, there is no reliable trigger for this that was found, and any attempts to 'isolate the issue' haven't produced one. Let's simply add a clean S/B separation for builds, and always run a build from a reproducible set of files. [YOCTO #14902] Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-08-12perl: Pass additional flags to enable lfs and gnu sourceKhem Raj
These defines are needed to enable some GNU APIs and large file support is default in OE anyway Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2022-07-12perl: don't install Makefile.old into perl-ptestRoss Burton
We already exclude Makefile, makefile, and makefile.old from copy of the perl source tree that is used by perl-ptest, but Makefile.old is not being excluded. In a rebuild of perl with an existing source tree these files now exist but have build paths in. As they're backup files, they can just be excluded from the packages. Use range globs to clean up the expressions, and exclude Makefile.old. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-07-08libmodule-build-perl: Use env utility to find perl interpreterKhem Raj
Fixes ERROR: QA Issue: : /work/x86_64-linux/libmodule-build-perl-native/0.4231-r0/sysroot-destdir/work/x86_64-linux/libmodule-build-perl-native/0.4231-r0/recipe-sysroot-native/usr/bin/config_data maximum shebang size exceeded, the maximum size is 128. [shebang-size] Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-07perl: enable _GNU_SOURCE define via d_gnulibcAlexander Kanavin
This is needed to properly support memmem() and friends under musl as musl guards the declarations with _GNU_SOURCE define, and if the declarations are not present, gcc will issue warnings and generate assembly that assumes the functions return int (instead of e.g. void*), with catastrophic consequences at runtime. Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-07perl: clean prior to buildAlexander Kanavin
Otherwise, when running configure/make on a previously built tree, makefiles generated by makemaker may detect that 'configuration has changed', followed by self-deletion, self-regeneration, requesting the user to re-run make and exit 1. And therefore do_compile goes kaboom. Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-07perl: drop perltoc regenerationAlexander Kanavin
According to the linked ticket the issue is fixed. Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-07perl: update 5.34.1 -> 5.36.0Alexander Kanavin
Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-06perl: Add dependency on make-native to avoid race issuesRichard Purdie
Make 4.1 has race issues with double colon usage in makefiles which are common in MakeMaker generated code in perl. Add a dependency on make-native to avoid this as it is relaitvely low overhead. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-04perl: Fix build with gcc-12Mingli Yu
Fix the build failure when debug build is enabled. Add DEBUG_BUILD = "1" in conf/local.conf. $ bitbake perl | In function 'dynprep', inlined from 'S_sortsv_flags_impl' at pp_sort.c:358:20, inlined from 'sortsv_amagic_i_ncmp' at pp_sort.c:572:5: | pp_sort.c:1232:1: error: inlining failed in call to 'always_inline' 'S_amagic_i_ncmp': function not considered for inlining | 1232 | S_amagic_i_ncmp(pTHX_ SV *const a, SV *const b) Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-05-08liberror-perl: Update sstate/equiv versions to clean cacheRichard Purdie
There are cached reproducibility issues on the autobuilder due to the PRServ sstate checksum issues, flush the bad data out the system by bumping the versions. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-26perl: Add missing RDEPENDSRichard Purdie
This allows quilt-ptest to work in an otherwise bare image. Without this there are broken modules. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2022-03-20perl: update 5.34.0 -> 5.34.1Alexander Kanavin
Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-20perl-cross: update 1.3.6 -> 1.3.7Alexander Kanavin
Drop upstreamed patches. 0001-configure_path.sh-do-not-hardcode-prefix-lib-as-libr.patch is replaced with a tweak to configure parameters. Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-20perl: generate alternative link for streamzipSakib Sajal
streamzip is also provided by io-compress-perl, so add an alternative link for streamzip. Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2022-03-02perl: Makefile.PL: Fix _PATH_LOG for deterministicRobert Yang
It checks host's path such as /dev/log and uses it, this doesn't make sense for cross build, and it causes undeterministic, for example, the contianer os usually doesn't have /dev/log which leads to a different build result since other host usually has /dev/log, so make it always use the default value to fix the issue. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>