diff --git a/1001-Adapt-Configure-to-GCC-version.patch b/1001-Adapt-Configure-to-GCC-version.patch deleted file mode 100644 index b42d9f1661e67ff9f096680a24e8eb083f062655..0000000000000000000000000000000000000000 --- a/1001-Adapt-Configure-to-GCC-version.patch +++ /dev/null @@ -1,103 +0,0 @@ -From 9f4e6307232229875331a55e44e1245b0b91e219 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= -Date: Tue, 12 Nov 2019 09:19:18 +0100 -Subject: [PATCH] Adapt Configure to GCC version 10 - -I got a notice from Jeff Law : - - Your particular package fails its testsuite. This was ultimately - tracked down to a Configure problem. The perl configure script treated - gcc-10 as gcc-1 and turned on -fpcc-struct-return. This is an ABI - changing flag and caused Perl to not be able to interact properly with - the dbm libraries on the system leading to a segfault. - -His proposed patch corrected only this one instance of the version -mismatch. Reading the Configure script revealed more issues. This -patch fixes all of them I found. - -Please note I do not have GCC 10 available, I tested it by faking the version -with: - ---- a/Configure -+++ b/Configure -@@ -4672,7 +4672,7 @@ $cat >try.c <try.c - for incdir in $locincpth; do - warn=`$cc $ccflags -I$incdir -c try.c 2>&1 | \ -@@ -5469,13 +5469,13 @@ fi - case "$hint" in - default|recommended) - case "$gccversion" in -- 1*) dflt="$dflt -fpcc-struct-return" ;; -+ 1.*) dflt="$dflt -fpcc-struct-return" ;; - esac - case "$optimize:$DEBUGGING" in - *-g*:old) dflt="$dflt -DDEBUGGING";; - esac - case "$gccversion" in -- 2*) if $test -d /etc/conf/kconfig.d && -+ 2.*) if $test -d /etc/conf/kconfig.d && - $contains _POSIX_VERSION $usrinc/sys/unistd.h >/dev/null 2>&1 - then - # Interactive Systems (ISC) POSIX mode. -@@ -5484,7 +5484,7 @@ default|recommended) - ;; - esac - case "$gccversion" in -- 1*) ;; -+ 1.*) ;; - 2.[0-8]*) ;; - ?*) set strict-aliasing -fno-strict-aliasing - eval $checkccflag -@@ -5602,7 +5602,7 @@ case "$cppflags" in - ;; - esac - case "$gccversion" in --1*) cppflags="$cppflags -D__GNUC__" -+1.*) cppflags="$cppflags -D__GNUC__" - esac - case "$mips_type" in - '');; -@@ -23229,7 +23229,7 @@ fi - - : add -D_FORTIFY_SOURCE if feasible and not already there - case "$gccversion" in --[4567].*) case "$optimize$ccflags" in -+[456789].*|[1-9][0-9]*) case "$optimize$ccflags" in - *-O*) case "$ccflags$cppsymbols" in - *_FORTIFY_SOURCE=*) # Don't add it again. - echo "You seem to have -D_FORTIFY_SOURCE already, not adding it." >&4 diff --git a/Pod-Html-license-clarification b/Pod-Html-license-clarification old mode 100755 new mode 100644 diff --git a/download b/download new file mode 100644 index 0000000000000000000000000000000000000000..d85f0af487b0a3ae3a144cfca3ee8a6a6f933a9b --- /dev/null +++ b/download @@ -0,0 +1 @@ +8b8420b08e4c47f629f8ce40c9dc255d perl-5.26.3.tar.bz2 diff --git a/gendep.macros b/gendep.macros old mode 100755 new mode 100644 diff --git a/macros.perl b/macros.perl old mode 100755 new mode 100644 diff --git a/perl-5.10.0-libresolv.patch b/perl-5.10.0-libresolv.patch old mode 100755 new mode 100644 diff --git a/perl-5.10.0-x86_64-io-test-failure.patch b/perl-5.10.0-x86_64-io-test-failure.patch old mode 100755 new mode 100644 diff --git a/perl-5.14.1-offtest.patch b/perl-5.14.1-offtest.patch old mode 100755 new mode 100644 diff --git a/perl-5.16.3-Link-XS-modules-to-libperl.so-with-EU-CBuilder-on-Li.patch b/perl-5.16.3-Link-XS-modules-to-libperl.so-with-EU-CBuilder-on-Li.patch old mode 100755 new mode 100644 diff --git a/perl-5.16.3-Link-XS-modules-to-libperl.so-with-EU-MM-on-Linux.patch b/perl-5.16.3-Link-XS-modules-to-libperl.so-with-EU-MM-on-Linux.patch old mode 100755 new mode 100644 diff --git a/perl-5.16.3-create_libperl_soname.patch b/perl-5.16.3-create_libperl_soname.patch old mode 100755 new mode 100644 diff --git a/perl-5.18.1-Document-Math-BigInt-CalcEmu-requires-Math-BigInt.patch b/perl-5.18.1-Document-Math-BigInt-CalcEmu-requires-Math-BigInt.patch old mode 100755 new mode 100644 diff --git a/perl-5.18.2-Destroy-GDBM-NDBM-ODBM-SDBM-_File-objects-only-from-.patch b/perl-5.18.2-Destroy-GDBM-NDBM-ODBM-SDBM-_File-objects-only-from-.patch old mode 100755 new mode 100644 diff --git a/perl-5.22.0-Install-libperl.so-to-shrpdir-on-Linux.patch b/perl-5.22.0-Install-libperl.so-to-shrpdir-on-Linux.patch old mode 100755 new mode 100644 diff --git a/perl-5.22.1-Provide-ExtUtils-MM-methods-as-standalone-ExtUtils-M.patch b/perl-5.22.1-Provide-ExtUtils-MM-methods-as-standalone-ExtUtils-M.patch old mode 100755 new mode 100644 diff --git a/perl-5.22.1-Replace-EU-MM-dependnecy-with-EU-MM-Utils-in-IPC-Cmd.patch b/perl-5.22.1-Replace-EU-MM-dependnecy-with-EU-MM-Utils-in-IPC-Cmd.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.0-Time-HiRes-Fix-unreliable-t-usleep.t-and-t-utime.t.patch b/perl-5.26.0-Time-HiRes-Fix-unreliable-t-usleep.t-and-t-utime.t.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.0-perl-131263-clear-the-UTF8-flag-on-a-glob-if-it-isn-.patch b/perl-5.26.0-perl-131263-clear-the-UTF8-flag-on-a-glob-if-it-isn-.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.0-perl-131588-be-a-little-more-careful-in-arybase-_tie.patch b/perl-5.26.0-perl-131588-be-a-little-more-careful-in-arybase-_tie.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.0-t-op-hash.t-fixup-intermittently-failing-test.patch b/perl-5.26.0-t-op-hash.t-fixup-intermittently-failing-test.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.1-Fix-deparsing-of-transliterations-with-unprintable-c.patch b/perl-5.26.1-Fix-deparsing-of-transliterations-with-unprintable-c.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.1-fix-do-dir-returning-no.patch b/perl-5.26.1-fix-do-dir-returning-no.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.1-fix-parsing-of-braced-subscript-after-parens.patch b/perl-5.26.1-fix-parsing-of-braced-subscript-after-parens.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.1-guard_old_libcrypt_fix.patch b/perl-5.26.1-guard_old_libcrypt_fix.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.1-perl-131746-avoid-undefined-behaviour-in-Copy-etc.patch b/perl-5.26.1-perl-131746-avoid-undefined-behaviour-in-Copy-etc.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.1-perl-131895-fail-stat-on-names-with-0-embedded.patch b/perl-5.26.1-perl-131895-fail-stat-on-names-with-0-embedded.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.1-perl-132245-don-t-try-to-process-a-char-range-with-n.patch b/perl-5.26.1-perl-132245-don-t-try-to-process-a-char-range-with-n.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.1-set-when-statting-a-closed-filehandle.patch b/perl-5.26.1-set-when-statting-a-closed-filehandle.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.2-PATCH-perl-133185-Infinite-loop-in-qr.patch b/perl-5.26.2-PATCH-perl-133185-Infinite-loop-in-qr.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.2-Pass-CFLAGS-to-dtrace.patch b/perl-5.26.2-Pass-CFLAGS-to-dtrace.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.2-RC1-Parse-caret-vars-with-subscripts-the-same-as-normal-.patch b/perl-5.26.2-RC1-Parse-caret-vars-with-subscripts-the-same-as-normal-.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.2-RC1-add-an-additional-test-for-whitespace-tolerance-in-c.patch b/perl-5.26.2-RC1-add-an-additional-test-for-whitespace-tolerance-in-c.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.2-RC1-perform-system-arg-processing-before-fork.patch b/perl-5.26.2-RC1-perform-system-arg-processing-before-fork.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.2-perl.h-Add-parens-around-macro-arguments.patch b/perl-5.26.2-perl.h-Add-parens-around-macro-arguments.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.3-CVE-2020-10543.patch b/perl-5.26.3-CVE-2020-10543.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.3-CVE-2020-10878.patch b/perl-5.26.3-CVE-2020-10878.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.3-CVE-2020-12723.patch b/perl-5.26.3-CVE-2020-12723.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.3-Net-Ping-Fix-_resolv-return-value.patch b/perl-5.26.3-Net-Ping-Fix-_resolv-return-value.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.3-Net-Ping-carp-not-croak-on-most-name-lookup-failures.patch b/perl-5.26.3-Net-Ping-carp-not-croak-on-most-name-lookup-failures.patch old mode 100755 new mode 100644 diff --git a/perl-5.26.3.tar.bz2 b/perl-5.26.3.tar.bz2 deleted file mode 100755 index 26c4f54b3784eb8e371f5ffbe3ab2a8d495c6466..0000000000000000000000000000000000000000 Binary files a/perl-5.26.3.tar.bz2 and /dev/null differ diff --git a/perl-5.27.0-perl-129183-don-t-treat-as-an-escape-in-PATH-for-S.patch b/perl-5.27.0-perl-129183-don-t-treat-as-an-escape-in-PATH-for-S.patch old mode 100755 new mode 100644 diff --git a/perl-5.27.0-perl-131211-fixup-File-Glob-degenerate-matching.patch b/perl-5.27.0-perl-131211-fixup-File-Glob-degenerate-matching.patch old mode 100755 new mode 100644 diff --git a/perl-5.27.1-File-Glob-tweak-rt131211.t-to-be-less-sensitive-on-w.patch b/perl-5.27.1-File-Glob-tweak-rt131211.t-to-be-less-sensitive-on-w.patch old mode 100755 new mode 100644 diff --git a/perl-5.27.1-RT-130907-Fix-the-Unicode-Bug-in-split.patch b/perl-5.27.1-RT-130907-Fix-the-Unicode-Bug-in-split.patch old mode 100755 new mode 100644 diff --git a/perl-5.27.1-perl-131679-Fix-our-sub-foo-bar-message.patch b/perl-5.27.1-perl-131679-Fix-our-sub-foo-bar-message.patch old mode 100755 new mode 100644 diff --git a/perl-5.27.1-t-lib-warnings-utf8-Fix-test.patch b/perl-5.27.1-t-lib-warnings-utf8-Fix-test.patch old mode 100755 new mode 100644 diff --git a/perl-5.27.1-utf8n_to_uvchr-Don-t-display-too-many-bytes-in-msg.patch b/perl-5.27.1-utf8n_to_uvchr-Don-t-display-too-many-bytes-in-msg.patch old mode 100755 new mode 100644 diff --git a/perl-5.27.10-PATCH-perl-132167-Parse-error-in-regex_sets.patch b/perl-5.27.10-PATCH-perl-132167-Parse-error-in-regex_sets.patch old mode 100755 new mode 100644 diff --git a/perl-5.27.10-PATCH-perl-133074-5.26.1-some-coverity-fixes.patch b/perl-5.27.10-PATCH-perl-133074-5.26.1-some-coverity-fixes.patch old mode 100755 new mode 100644 diff --git a/perl-5.27.2-Avoid-compiler-warnings-due-to-mismatched-types-in-p.patch b/perl-5.27.2-Avoid-compiler-warnings-due-to-mismatched-types-in-p.patch old mode 100755 new mode 100644 diff --git a/perl-5.27.2-EU-Constant-avoid-uninit-warning.patch b/perl-5.27.2-EU-Constant-avoid-uninit-warning.patch old mode 100755 new mode 100644 diff --git a/perl-5.27.3-avoid-the-address-of-.-will-always-evaluate-as-.-war.patch b/perl-5.27.3-avoid-the-address-of-.-will-always-evaluate-as-.-war.patch old mode 100755 new mode 100644 diff --git a/perl-5.27.3-perl-132008-try-to-prevent-the-similar-mistakes-in-t.patch b/perl-5.27.3-perl-132008-try-to-prevent-the-similar-mistakes-in-t.patch old mode 100755 new mode 100644 diff --git a/perl-5.27.5-Avoid-a-segfault-when-untying-an-object.patch b/perl-5.27.5-Avoid-a-segfault-when-untying-an-object.patch old mode 100755 new mode 100644 diff --git a/perl-5.27.5-Carp-Don-t-choke-on-ISA-constant.patch b/perl-5.27.5-Carp-Don-t-choke-on-ISA-constant.patch old mode 100755 new mode 100644 diff --git a/perl-5.27.5-fix-tainting-of-s-with-overloaded-replacement.patch b/perl-5.27.5-fix-tainting-of-s-with-overloaded-replacement.patch old mode 100755 new mode 100644 diff --git a/perl-5.27.5-perl-132442-Fix-stack-with-do-my-sub-l-1.patch b/perl-5.27.5-perl-132442-Fix-stack-with-do-my-sub-l-1.patch old mode 100755 new mode 100644 diff --git a/perl-5.27.7-Reenable-numeric-first-argument-of-system-on-VMS.patch b/perl-5.27.7-Reenable-numeric-first-argument-of-system-on-VMS.patch old mode 100755 new mode 100644 diff --git a/perl-5.27.7-preserve-numericness-of-system-args-on-Win32.patch b/perl-5.27.7-preserve-numericness-of-system-args-on-Win32.patch old mode 100755 new mode 100644 diff --git a/perl-5.27.8-don-t-clobber-file-bytes-in-encoding-layer.patch b/perl-5.27.8-don-t-clobber-file-bytes-in-encoding-layer.patch old mode 100755 new mode 100644 diff --git a/perl-5.27.8-hints-linux-Add-lphtread-to-lddlflags.patch b/perl-5.27.8-hints-linux-Add-lphtread-to-lddlflags.patch old mode 100755 new mode 100644 diff --git a/perl-5.27.9-fix-line-numbers-in-multi-line-s.patch b/perl-5.27.9-fix-line-numbers-in-multi-line-s.patch old mode 100755 new mode 100644 diff --git a/perl-5.28.2-Only-pass-2-digit-years-to-tests-when-testing-2-digi.patch b/perl-5.28.2-Only-pass-2-digit-years-to-tests-when-testing-2-digi.patch old mode 100755 new mode 100644 diff --git a/perl-5.29.0-Remove-ext-GDBM_File-t-fatal.t.patch b/perl-5.29.0-Remove-ext-GDBM_File-t-fatal.t.patch old mode 100755 new mode 100644 diff --git a/perl-5.29.0-regexec.c-Call-macro-with-correct-args.patch b/perl-5.29.0-regexec.c-Call-macro-with-correct-args.patch old mode 100755 new mode 100644 diff --git a/perl-5.31.5-PATCH-gh-17218-memory-leak.patch b/perl-5.31.5-PATCH-gh-17218-memory-leak.patch new file mode 100644 index 0000000000000000000000000000000000000000..abb62236d8a900c38c27f4cd6146d97e5f2850be --- /dev/null +++ b/perl-5.31.5-PATCH-gh-17218-memory-leak.patch @@ -0,0 +1,22 @@ +From 70f089724b15d1b2ed9264f277454aa559d50232 Mon Sep 17 00:00:00 2001 +From: Karl Williamson +Date: Fri, 15 Nov 2019 15:01:15 -0700 +Subject: [PATCH] PATCH: gh#17218 memory leak + +Indeed, a variable's ref count was not getting decremented. +--- + regcomp.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/regcomp.c b/regcomp.c +index ddac290d2bf0..de4f6f24dac8 100644 +--- a/regcomp.c ++++ b/regcomp.c +@@ -17602,6 +17602,7 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth, + + /* Likewise for 'posixes' */ + _invlist_union(posixes, cp_list, &cp_list); ++ SvREFCNT_dec(posixes); + + /* Likewise for anything else in the range that matched only + * under UTF-8 */ diff --git a/perl-5.8.0-libdir64.patch b/perl-5.8.0-libdir64.patch old mode 100755 new mode 100644 diff --git a/perl-USE_MM_LD_RUN_PATH.patch b/perl-USE_MM_LD_RUN_PATH.patch old mode 100755 new mode 100644 diff --git a/perl-example.stp b/perl-example.stp old mode 100755 new mode 100644 diff --git a/perl-perlbug-tag.patch b/perl-perlbug-tag.patch old mode 100755 new mode 100644 diff --git a/perl.spec b/perl.spec old mode 100755 new mode 100644 index 455ccf23acadb1efb5806aeaf1fd26f4f3987d7a..b97a3d532d32d8d36a036bec255f707b5d8d3298 --- a/perl.spec +++ b/perl.spec @@ -1,4 +1,3 @@ -%define anolis_release .0.1 %global perl_version 5.26.3 %global perl_epoch 4 %global perl_arch_stem -thread-multi @@ -82,7 +81,7 @@ License: GPL+ or Artistic Epoch: %{perl_epoch} Version: %{perl_version} # release number must be even higher, because dual-lived modules will be broken otherwise -Release: 420%{anolis_release}%{?dist} +Release: 421%{?dist} Summary: Practical Extraction and Report Language Url: http://www.perl.org/ Source0: http://www.cpan.org/src/5.0/perl-%{perl_version}.tar.bz2 @@ -312,6 +311,9 @@ Patch94: perl-5.26.3-CVE-2020-10878.patch Patch95: perl-5.26.3-Net-Ping-carp-not-croak-on-most-name-lookup-failures.patch Patch96: perl-5.26.3-Net-Ping-Fix-_resolv-return-value.patch +# Fix a memory leak when compiling a regular expression with a non-word class, +# GH#17218, in upstream after 5.31.5 +Patch97: perl-5.31.5-PATCH-gh-17218-memory-leak.patch # Link XS modules to libperl.so with EU::CBuilder on Linux, bug #960048 Patch200: perl-5.16.3-Link-XS-modules-to-libperl.so-with-EU-CBuilder-on-Li.patch @@ -319,11 +321,6 @@ Patch200: perl-5.16.3-Link-XS-modules-to-libperl.so-with-EU-CBuilder-on-Li # Link XS modules to libperl.so with EU::MM on Linux, bug #960048 Patch201: perl-5.16.3-Link-XS-modules-to-libperl.so-with-EU-MM-on-Linux.patch -# Begin: Anolis customized patches -# backport patch from upstream -Patch1001: 1001-Adapt-Configure-to-GCC-version.patch -# End: Anolis customized patches - # Update some of the bundled modules # see http://fedoraproject.org/wiki/Perl/perl.spec for instructions @@ -2932,9 +2929,9 @@ Perl extension for Version Objects %patch94 -p1 %patch95 -p1 %patch96 -p1 +%patch97 -p1 %patch200 -p1 %patch201 -p1 -%patch1001 -p1 %if !%{defined perl_bootstrap} # Local patch tracking @@ -2995,6 +2992,7 @@ perl -x patchlevel.h \ 'RHEL Patch93: Fix CVE-2020-10543' \ 'RHEL Patch94: Fix CVE-2020-10878' \ 'RHEL Patch95: Fix Net-Ping _resolv return value on failing DNS name lookup (bug #1973030)' \ + 'RHEL Patch97: Fix a memory leak when compiling a regular expression with a non-word class (GH#17218)' \ 'Fedora Patch200: Link XS modules to libperl.so with EU::CBuilder on Linux' \ 'Fedora Patch201: Link XS modules to libperl.so with EU::MM on Linux' \ %{nil} @@ -5282,8 +5280,9 @@ popd # Old changelog entries are preserved in CVS. %changelog -* Thu Jan 20 2022 Weitao Zhou - 4:5.26.3-420.0.1 -- Adapt Configure to GCC version 10 +* Mon Oct 18 2021 Jitka Plesnikova - 4:5.26.3-421 +- Fix a memory leak when compiling a regular expression with a non-word + class (bug #2014981) * Thu Jun 17 2021 Jitka Plesnikova - 4:5.26.3-420 - Fix _resolv return value in Net-Ping (bug #1973030) diff --git a/perl.stp b/perl.stp old mode 100755 new mode 100644