perl: Fix ptest update hash of ExtUtils/Liblist/Kid.pm in customized.dat
PATCH 1/2 perl: Fix ptest update hash of ExtUtils/Liblist/Kid.pm in customized.dat
The perl ptest is failing due to a patch changes the file ExtUtils/Liblist/Kid.pm and the customized.dat file wasn't updated.
[YOCTO #8656]
--- meta/recipes-devtools/perl/perl/perl-test-customized.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/perl/perl/perl-test-customized.patch +1 -1
@@ -17,7 +17,7 @@ Index: perl-5.22.1/t/porting/customized.dat ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist.pm bef099988b15fb0b2a1f5ac48c01af1f7f36d329 -ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm 8168e18f0e3ce3ece4bb7e7c72d57ec07c67c402 -ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm 7115e97a53559cb3ec061dd6f7f344e522724c4a -+ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm a08ecf80c8f0a234243817713b2a5ab0dcae3c0a ++ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm 8c22e119b96d674f1f268a9c495bb4aa04e1100b +ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm 3d7abd674b15ed323f743594ef0bd09db76b1aee ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker/Config.pm f8db8d4245bf0684b8210c811f50d7cfb1a27d78 ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker/FAQ.pod 757bffb47857521311f8f3bde43ebe165f8d5191
Signature · 1 line
2.1.4
PATCH 2/2 perl: Upgrade to 5.24.0
Configuration changes,
Simple changes was made to bump version and api version, related to floating point handling now the configuration needs the inf, mantisa and nan bytes.
The new version comes with the support of API calls like memmem and {new,free,use}locale also structure for handle siginfo supported by glibc and musl.
Finally use64bit{int, all} was disable because the previous configure_args don't come with them and cases some tests to fail related to bignum's and shared memory respectively. This doesn't means that perl couldn't use 64-bit data types, it means that don't stores by default into a 64 bit that is good for embedded space purposes.
Modules changes,
Some core modules are now deprecated in order to use the core ones like version-vpp and version-regex inside module-extutils-makemaker. For full review see perl-rdepends.inc file.
Patches rebased,
- perl/debian/errno_ver.diff
- perl/dynaloaderhack.patch
- perl/Makefile.SH.patch
- perl/config.s
- perl/dynaloaderhack.patch
- perl/perl-test-customized.patch
Patches removed, comes with the upgrade now:
- perl/perl-remove-nm-from-libswanted.patch
- perl/perl-fix-CVE-2015-8607.patch
- perl/perl-fix-CVE-2016-2381.patch
Test,
The upgrade was test using ptest the suite is fixed now. The pod2man and pod2text installation required now for some tests. Buildhistory was use to review the changes and only diff changes related to modules commented above.
---
...perl-native_5.22.1.bb => perl-native_5.24.0.bb} | 5 +-
meta/recipes-devtools/perl/perl-ptest.inc | 4 +-
...depends_5.22.1.inc => perl-rdepends_5.24.0.inc} | 110 +++++++++++---------
meta/recipes-devtools/perl/perl/Makefile.SH.patch | 114 ++++++++++----------
meta/recipes-devtools/perl/perl/config.sh | 94 +++++++++++------
.../perl/perl/debian/errno_ver.diff | 28 ++---
.../perl/perl/debian/prune_libs.diff | 19 ++--
.../perl/perl/dynaloaderhack.patch | 24 +++--
.../perl/perl/perl-fix-CVE-2015-8607.patch | 74 -------------
.../perl/perl/perl-fix-CVE-2016-2381.patch | 114 --------------------
.../perl/perl/perl-remove-nm-from-libswanted.patch | 30 ------
.../perl/perl/perl-test-customized.patch | 115 +++++++++++----------
.../perl/{perl_5.22.1.bb => perl_5.24.0.bb} | 8 +-
13 files changed, 296 insertions(+), 443 deletions(-)
rename meta/recipes-devtools/perl/{perl-native_5.22.1.bb => perl-native_5.24.0.bb} (95%)
rename meta/recipes-devtools/perl/{perl-rdepends_5.22.1.inc => perl-rdepends_5.24.0.inc} (97%)
delete mode 100644 meta/recipes-devtools/perl/perl/perl-fix-CVE-2015-8607.patch
delete mode 100644 meta/recipes-devtools/perl/perl/perl-fix-CVE-2016-2381.patch
delete mode 100644 meta/recipes-devtools/perl/perl/perl-remove-nm-from-libswanted.patch
rename meta/recipes-devtools/perl/{perl_5.22.1.bb => perl_5.24.0.bb} (98%)meta/recipes-devtools/perl/perl-native_5.24.0.bb renamed from meta/recipes-devtools/perl/perl-native_5.22.1.bb +2 -3
@@ -11,11 +11,10 @@ SRC_URI += "\ file://debian/errno_ver.diff \ file://dynaloaderhack.patch \ file://perl-PathTools-don-t-filter-out-blib-from-INC.patch \ - file://perl-remove-nm-from-libswanted.patch \ " -SRC_URI[md5sum] = "6671e4829cbaf9cecafa9a84f141b0a3" -SRC_URI[sha256sum] = "9e87317d693ce828095204be0d09af8d60b8785533fadea1a82b6f0e071e5c79" +SRC_URI[md5sum] = "59456ae4bd4b06cb6e57cb19a3b2d349" +SRC_URI[sha256sum] = "a9a37c0860380ecd7b23aa06d61c20fc5bc6d95198029f3684c44a9d7e2952f2" inherit native
meta/recipes-devtools/perl/perl-ptest.inc +3 -1
@@ -20,7 +20,9 @@ do_install_ptest () { -e "s,${STAGING_BINDIR_NATIVE}/perl-native/,${bindir}/,g" \ -e "s,${STAGING_BINDIR_NATIVE}/,,g" \ -e "s,${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX},${bindir},g" \ - ${D}${PTEST_PATH}/lib/Config.pm + ${D}${PTEST_PATH}/lib/Config.pm \ + ${D}${PTEST_PATH}/cpan/podlators/scripts/pod2man \ + ${D}${PTEST_PATH}/cpan/podlators/scripts/pod2text ln -sf ${bindir}/perl ${D}${PTEST_PATH}/t/perl # Remove plan9 related stuff
meta/recipes-devtools/perl/perl-rdepends_5.24.0.inc renamed from meta/recipes-devtools/perl/perl-rdepends_5.22.1.inc +61 -49
353 lines not on this page · raw message
meta/recipes-devtools/perl/perl/Makefile.SH.patch +62 -52
307 lines not on this page · raw message
meta/recipes-devtools/perl/perl/config.sh +61 -33
230 lines not on this page · raw message
meta/recipes-devtools/perl/perl/debian/errno_ver.diff +15 -13
@@ -1,8 +1,8 @@ -From 827eee225897c35ec97194a5971bf4bfcf250748 Mon Sep 17 00:00:00 2001 +From 8e1efba7560d8d55524c7a0f1b0539ddce419b86 Mon Sep 17 00:00:00 2001 From: Brendan O'Dea <[email protected]> Date: Fri, 16 Dec 2005 01:32:14 +1100 -Subject: Remove Errno version check due to upgrade problems with long-running - processes. +Subject: [PATCH 6/8] Remove Errno version check due to upgrade problems with + long-running processes. Bug-Debian: http://bugs.debian.org/343351
@@ -11,25 +11,27 @@ processes embedding perl when upgrading to a newer version, compatible, but built on a different machine. Patch-Name: debian/errno_ver.diff + --- ext/Errno/Errno_pm.PL | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL -index c6bfa06..519e5c7 100644 +index 6251a3c..eeed445 100644 --- a/ext/Errno/Errno_pm.PL +++ b/ext/Errno/Errno_pm.PL -@@ -278,13 +278,8 @@ sub write_errno_pm { - - package Errno; - require Exporter; +@@ -294,11 +294,6 @@ EDQ + # they've already declared perl doesn't need to worry about this risk. + if(!$ENV{'PERL_BUILD_EXPAND_CONFIG_VARS'}) { + print <<"CONFIG_CHECK_END"; -use Config; - use strict; - -"\$Config{'archname'}-\$Config{'osvers'}" eq -"$archname-$Config{'osvers'}" or - die "Errno architecture ($archname-$Config{'osvers'}) does not match executable architecture (\$Config{'archname'}-\$Config{'osvers'})"; - - our \$VERSION = "$VERSION"; - \$VERSION = eval \$VERSION; - our \@ISA = 'Exporter'; + CONFIG_CHECK_END + } + +-- +2.1.4 +
meta/recipes-devtools/perl/perl/debian/prune_libs.diff +12 -7
@@ -1,7 +1,8 @@ -From 21bc033755f0b609f9bb2aa9e98b10d58424406f Mon Sep 17 00:00:00 2001 +From c4538f966c49e356599358def7d1febf61bca21f Mon Sep 17 00:00:00 2001 From: Brendan O'Dea <[email protected]> Date: Fri, 18 Mar 2005 22:22:25 +1100 -Subject: Prune the list of libraries wanted to what we actually need. +Subject: [PATCH 15/49] Prune the list of libraries wanted to what we actually + need. Bug-Debian: http://bugs.debian.org/128355
@@ -9,25 +10,26 @@ We want to keep the dependencies on perl-base as small as possible, and some of the original list may be present on buildds (see Bug#128355). Patch-Name: debian/prune_libs.diff + --- Configure | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Configure b/Configure -index 0a405d3..6fcc3bc 100755 +index 5a353d6..a00df64 100755 --- a/Configure +++ b/Configure -@@ -1454,8 +1454,7 @@ libswanted_uselargefiles='' - : set usesocks on the Configure command line to enable socks. +@@ -1479,8 +1479,7 @@ archname='' + usereentrant='undef' : List of libraries we want. : If anyone needs extra -lxxx, put those in a hint file. --libswanted="cl pthread socket bind inet nsl nm ndbm gdbm dbm db malloc dl ld" +-libswanted="cl pthread socket bind inet nsl ndbm gdbm dbm db malloc dl ld" -libswanted="$libswanted sun m crypt sec util c cposix posix ucb bsd BSD" +libswanted='gdbm gdbm_compat db dl m c crypt' : We probably want to search /usr/shlib before most other libraries. : This is only used by the lib/ExtUtils/MakeMaker.pm routine extliblist. glibpth=`echo " $glibpth " | sed -e 's! /usr/shlib ! !'` -@@ -23593,7 +23592,7 @@ sunos*X4*) +@@ -24007,7 +24006,7 @@ sunos*X4*) ;; *) case "$usedl" in $define|true|[yY]*)
@@ -36,3 +38,6 @@ index 0a405d3..6fcc3bc 100755 shift perllibs="$*" ;; +-- +2.1.4 +
meta/recipes-devtools/perl/perl/dynaloaderhack.patch +18 -6
@@ -1,3 +1,8 @@ +From 2e0ce5d27e70defd66ace0661af7c24daae34f8b Mon Sep 17 00:00:00 2001 +From: Richard Purdie <[email protected]> +Date: Sat, 19 Jan 2013 23:49:24 +0000 +Subject: [PATCH 7/8] perl: Add dyanloader build hack + Hack the dynamic module loader so that we use native modules since we can't load the target ones.
@@ -6,14 +11,18 @@ Upstream-Status: Inappropriate RP 2013/01/13 -Index: perl-5.14.2/ext/DynaLoader/DynaLoader_pm.PL -=================================================================== ---- perl-5.14.2.orig/ext/DynaLoader/DynaLoader_pm.PL 2011-09-19 13:18:22.000000000 +0000 -+++ perl-5.14.2/ext/DynaLoader/DynaLoader_pm.PL 2013-01-19 16:09:51.020584945 +0000 -@@ -310,6 +310,10 @@ +--- + ext/DynaLoader/DynaLoader_pm.PL | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/ext/DynaLoader/DynaLoader_pm.PL b/ext/DynaLoader/DynaLoader_pm.PL +index e828f35..4021559 100644 +--- a/ext/DynaLoader/DynaLoader_pm.PL ++++ b/ext/DynaLoader/DynaLoader_pm.PL +@@ -343,6 +343,10 @@ sub bootstrap { foreach (@INC) { <<$^O-eq-VMS>>chop($_ = VMS::Filespec::unixpath($_));<</$^O-eq-VMS>> - my $dir = "$_/auto/$modpname"; + $dir = "$_/auto/$modpname"; + + if (defined $ENV{PERL_LIB} and defined $ENV{PERLHOSTLIB}) { + $dir =~ s/$ENV{PERL_LIB}/$ENV{PERLHOSTLIB}/g;
@@ -21,3 +30,6 @@ Index: perl-5.14.2/ext/DynaLoader/DynaLoader_pm.PL next unless -d $dir; # skip over uninteresting directories +-- +2.1.4 +
meta/recipes-devtools/perl/perl/perl-fix-CVE-2015-8607.patch deleted +0 -74
74 lines not on this page · raw message
meta/recipes-devtools/perl/perl/perl-fix-CVE-2016-2381.patch deleted +0 -114
114 lines not on this page · raw message
meta/recipes-devtools/perl/perl/perl-remove-nm-from-libswanted.patch deleted +0 -30
@@ -1,30 +0,0 @@ -From 4732711e2548b6d734ca831d65dbcf501a89774e Mon Sep 17 00:00:00 2001 -From: Andreas Koenig <[email protected]> -Date: Sun, 3 Jan 2016 08:40:33 +0100 -Subject: [PATCH] Remove nm from libswanted - -Nm stood for "New Math" library in the context of 1994. 2014 a conflicting -library libnm appeared that has a network manager context. - -Upstream-Status: Backport [commit 4732711e on branch blead, tag v5.25.0] - ---- - Configure | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/Configure b/Configure -index 0e71b4b..cfbdaa1 100755 ---- a/Configure -+++ b/Configure -@@ -1464,7 +1464,7 @@ libswanted_uselargefiles='' - : set usesocks on the Configure command line to enable socks. - : List of libraries we want. - : If anyone needs extra -lxxx, put those in a hint file. --libswanted="cl pthread socket bind inet nsl nm ndbm gdbm dbm db malloc dl ld" -+libswanted="cl pthread socket bind inet nsl ndbm gdbm dbm db malloc dl ld" - libswanted="$libswanted sun m crypt sec util c cposix posix ucb bsd BSD" - : We probably want to search /usr/shlib before most other libraries. - : This is only used by the lib/ExtUtils/MakeMaker.pm routine extliblist. --- -2.9.2 -
meta/recipes-devtools/perl/perl/perl-test-customized.patch +59 -56
120 lines not on this page · raw message
meta/recipes-devtools/perl/perl_5.24.0.bb renamed from meta/recipes-devtools/perl/perl_5.22.1.bb +3 -5
@@ -40,6 +40,7 @@ SRC_URI += " \ file://Makefile.patch \ file://Makefile.SH.patch \ file://installperl.patch \ + file://perl-archlib-exp.patch \ file://perl-dynloader.patch \ file://perl-moreconfig.patch \ file://letgcc-find-errno.patch \
@@ -48,7 +49,6 @@ SRC_URI += " \ file://perl-enable-gdbm.patch \ file://cross-generate_uudmap.patch \ file://fix_bad_rpath.patch \ - file://perl-archlib-exp.patch \ file://dynaloaderhack.patch \ file://config.sh \ file://config.sh-32 \
@@ -65,9 +65,7 @@ SRC_URI += " \ file://perl-errno-generation-gcc5.patch \ file://perl-fix-conflict-between-skip_all-and-END.patch \ file://perl-test-customized.patch \ - file://perl-fix-CVE-2016-2381.patch \ file://perl-fix-CVE-2016-6185.patch \ - file://perl-fix-CVE-2015-8607.patch \ file://perl-fix-CVE-2016-1238.patch \ "
@@ -77,8 +75,8 @@ SRC_URI_append_class-target = " \ file://test/ext-DynaLoader-t-DynaLoader.t-fix-calling-dl_findfil.patch \ " -SRC_URI[md5sum] = "6671e4829cbaf9cecafa9a84f141b0a3" -SRC_URI[sha256sum] = "9e87317d693ce828095204be0d09af8d60b8785533fadea1a82b6f0e071e5c79" +SRC_URI[md5sum] = "59456ae4bd4b06cb6e57cb19a3b2d349" +SRC_URI[sha256sum] = "a9a37c0860380ecd7b23aa06d61c20fc5bc6d95198029f3684c44a9d7e2952f2" inherit perlnative siteinfo
Signature · 1 line
2.1.4