From 11d6d10debc81a64de901ec0217b8103c0f366b0 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Fri, 19 Dec 2025 07:45:22 +0100 Subject: [PATCH] package/perl: bump to version 5.42.0 For release notes, see: https://perldoc.perl.org/5.42.0/perl5420delta Note: the release notes mention fixed CVE. Those were already fixed in Buildroot commit [1] and [2]. Therefore, this update is not marked as a security fix. This commit also updates the `utils/scancpan` script, in order to update the messages about the host-perl version. [1] https://gitlab.com/buildroot.org/buildroot/-/commit/61f5e2efcae5ece840a561ad56cdec04dad3a25d [2] https://gitlab.com/buildroot.org/buildroot/-/commit/164c84ee9b820f5b21e79b4d52c07a613925d3f2 Signed-off-by: Francois Perrad [Julien: add commit log] Signed-off-by: Julien Olivain --- package/perl/Config.in | 2 +- package/perl/perl.hash | 12 ++++++------ package/perl/perl.mk | 5 ++--- utils/scancpan | 8 ++++---- 4 files changed, 13 insertions(+), 14 deletions(-) diff --git a/package/perl/Config.in b/package/perl/Config.in index 0ead1c4a46..6c9bf1e0da 100644 --- a/package/perl/Config.in +++ b/package/perl/Config.in @@ -6,7 +6,7 @@ config BR2_PACKAGE_PERL An interpreted scripting language, known among some as "Unix's Swiss Army Chainsaw". - http://www.perl.org/ + https://www.perl.org/ if BR2_PACKAGE_PERL diff --git a/package/perl/perl.hash b/package/perl/perl.hash index 0035c448c5..3aefdd05b6 100644 --- a/package/perl/perl.hash +++ b/package/perl/perl.hash @@ -1,12 +1,12 @@ -# Hashes from: https://www.cpan.org/src/5.0/perl-5.40.3.tar.xz.{md5,sha1,sha256}.txt -md5 f526a5975a7cc6f53f28326437b1eb39 perl-5.40.3.tar.xz -sha1 7c95250ceff00d649c1f5afa511987a2c4da61d3 perl-5.40.3.tar.xz -sha256 65f63b4763ab6cb9bb3d5731dd10369e1705be3c59be9847d453eb60b349ab43 perl-5.40.3.tar.xz +# Hashes from: https://www.cpan.org/src/5.0/perl-5.42.0.tar.xz.{md5,sha1,sha256}.txt +md5 7a6950a9f12d01eb96a9d2ed2f4e0072 perl-5.42.0.tar.xz +sha1 3b557f28dcb412b115d9628c37fc94b2fda08384 perl-5.42.0.tar.xz +sha256 73cf6cc1ea2b2b1c110a18c14bbbc73a362073003893ffcedc26d22ebdbdd0c3 perl-5.42.0.tar.xz # Hash from: https://github.com/arsv/perl-cross/releases/download/1.6.3/perl-cross-1.6.3.hash sha256 cd57d8f8017727dc7e19cca55e1e9f22664edecf6c9f04c3515ecc13fd88e4f3 perl-cross-1.6.3.tar.gz # Locally calculated sha256 dd90d4f42e4dcadf5a7c09eea0189d93c7b37ae560c91f0f6d5233ed3b9292a2 Artistic -sha256 d77d235e41d54594865151f4751e835c5a82322b0e87ace266567c3391a4b912 Copying -sha256 af805523b88a8ebb60afc009caaf247a498208502f7b8b3d9d3e329fcfb1dc3b README +sha256 8979e6dd61852041643c5c5c40ea63b2bd1b438a67d114e62cbaef808c514315 Copying +sha256 189e9d6ac7743ed4e832f14c9edb6f782c92d8868b447fa2684f7fe5a81465c1 README diff --git a/package/perl/perl.mk b/package/perl/perl.mk index a301b93e46..c31a368b70 100644 --- a/package/perl/perl.mk +++ b/package/perl/perl.mk @@ -5,8 +5,8 @@ ################################################################################ # When updating the version here, also update utils/scancpan -PERL_VERSION_MAJOR = 40 -PERL_VERSION = 5.$(PERL_VERSION_MAJOR).3 +PERL_VERSION_MAJOR = 42 +PERL_VERSION = 5.$(PERL_VERSION_MAJOR).0 PERL_SITE = https://www.cpan.org/src/5.0 PERL_SOURCE = perl-$(PERL_VERSION).tar.xz PERL_LICENSE = Artistic or GPL-1.0+ @@ -28,7 +28,6 @@ PERL_EXTRA_DOWNLOADS = $(PERL_CROSS_SITE)/$(PERL_CROSS_SOURCE) define PERL_CROSS_EXTRACT $(call suitable-extractor,$(PERL_CROSS_SOURCE)) $(PERL_DL_DIR)/$(PERL_CROSS_SOURCE) | \ $(TAR) --strip-components=1 -C $(@D) $(TAR_OPTIONS) - - mv $(@D)/cnf/diffs/perl5-5.40.2 $(@D)/cnf/diffs/perl5-5.40.3 endef PERL_POST_EXTRACT_HOOKS += PERL_CROSS_EXTRACT diff --git a/utils/scancpan b/utils/scancpan index e7739a8ad1..276c79b4e4 100755 --- a/utils/scancpan +++ b/utils/scancpan @@ -488,9 +488,9 @@ use Digest::SHA qw(sha256_hex); use Text::Wrap; $Text::Wrap::columns = 62; -# Below, 5.036 should be aligned with the version of perl actually +# Below, 5.042 should be aligned with the version of perl actually # bundled in Buildroot: -die <<"MSG" if $] < 5.036; +die <<"MSG" if $] < 5.042; This script needs a host perl with the same major version as Buildroot target perl. Your current host perl is: @@ -498,7 +498,7 @@ Your current host perl is: version $] You may install a local one by running: - perlbrew install perl-5.36.0 + perlbrew install perl-5.42.0 MSG my ($help, $man, $quiet, $force, $recommend, $test, $host); @@ -967,7 +967,7 @@ in order to work with the right CoreList data. =head1 LICENSE -Copyright (C) 2013-2023 by Francois Perrad +Copyright (C) 2013-2025 by Francois Perrad This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by