From 0950fc34f8fb660c051d4efbb3775dfe7229597e Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 03 2020 13:32:58 +0000 Subject: import perl-version-0.99.24-441.module+el8.3.0+6718+7f269185 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5c62b70 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/version-0.9924.tar.gz diff --git a/.perl-version.metadata b/.perl-version.metadata new file mode 100644 index 0000000..101ce99 --- /dev/null +++ b/.perl-version.metadata @@ -0,0 +1 @@ +86a2a814def626d269ce332df5d3df1d63b07f5f SOURCES/version-0.9924.tar.gz diff --git a/SOURCES/version-0.9924-ensure-locale_name_on_entry-isn-t-clobbered.patch b/SOURCES/version-0.9924-ensure-locale_name_on_entry-isn-t-clobbered.patch new file mode 100644 index 0000000..97aef57 --- /dev/null +++ b/SOURCES/version-0.9924-ensure-locale_name_on_entry-isn-t-clobbered.patch @@ -0,0 +1,65 @@ +From eecfc44fbd6659ed35719038ecf2b029fe20cfd5 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Mon, 25 Nov 2019 16:48:33 +0100 +Subject: [PATCH] Subject: [PATCH] ensure locale_name_on_entry isn't clobbered +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +If the return value of setlocale() is static storage, the call to +setlocale(LC_NUMERIC, "C"); could overwrite it. + +If the return value of setlocale() is malloced, the call to +setlocale(LC_NUMERIC, "C"); could free it. + +Either way, we need to copy it. Fixes gh #17054 rt134212 + +Petr Písař: Ported to version-0.9924 from perl commit +bcb1da5c29c3a2534a0e43874974b83c9c8b174c. + +Signed-off-by: Petr Písař +--- + vutil/vutil.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/vutil/vutil.c b/vutil/vutil.c +index 5d183a0..69c8351 100644 +--- a/vutil/vutil.c ++++ b/vutil/vutil.c +@@ -638,6 +638,8 @@ VER_NV: + if ( strNE(locale_name_on_entry, "C") + && strNE(locale_name_on_entry, "POSIX")) + { ++ /* the setlocale() call might free or overwrite the name */ ++ locale_name_on_entry = savepv(locale_name_on_entry); + setlocale(LC_NUMERIC, "C"); + } + else { /* This value indicates to the restore code that we didn't +@@ -661,6 +663,8 @@ VER_NV: + if ( strNE(locale_name_on_entry, "C") + && strNE(locale_name_on_entry, "POSIX")) + { ++ /* the setlocale() call might free or overwrite the name */ ++ locale_name_on_entry = savepv(locale_name_on_entry); + setlocale(LC_NUMERIC, "C"); + } + else { /* This value indicates to the restore code that we +@@ -710,6 +714,7 @@ VER_NV: + + if (locale_name_on_entry) { + setlocale(LC_NUMERIC, locale_name_on_entry); ++ Safefree(locale_name_on_entry); + } + + LC_NUMERIC_UNLOCK; /* End critical section */ +@@ -718,6 +723,7 @@ VER_NV: + + if (locale_name_on_entry) { + setlocale(LC_NUMERIC, locale_name_on_entry); ++ Safefree(locale_name_on_entry); + LC_NUMERIC_UNLOCK; + } + else if (locale_obj_on_entry == PL_underlying_numeric_obj) { +-- +2.21.0 + diff --git a/SPECS/perl-version.spec b/SPECS/perl-version.spec new file mode 100644 index 0000000..daced3f --- /dev/null +++ b/SPECS/perl-version.spec @@ -0,0 +1,313 @@ +# Run optional test +%if ! (0%{?rhel}) +%bcond_without perl_version_enables_optional_test +%else +%bcond_with perl_version_enables_optional_test +%endif + +Name: perl-version +Epoch: 7 +Version: 0.99.24 +%global module_version 0.9924 +Release: 441%{?dist} +Summary: Perl extension for Version Objects +License: GPL+ or Artistic +URL: https://metacpan.org/release/version +Source0: https://cpan.metacpan.org/authors/id/J/JP/JPEACOCK/version-%{module_version}.tar.gz +# Do not clobber memory when switching a locale, Perl GH#17054, in Perl 5.31.5 +Patch0: version-0.9924-ensure-locale_name_on_entry-isn-t-clobbered.patch +# Build +BuildRequires: findutils +BuildRequires: gcc +BuildRequires: make +BuildRequires: perl-devel +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(Config) +# ExtUtils::CBuilder not helpful +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(File::Temp) >= 0.13 +BuildRequires: perl(strict) +# Runtime +BuildRequires: perl(B) +BuildRequires: perl(Carp) +BuildRequires: perl(constant) +BuildRequires: perl(if) +BuildRequires: perl(locale) +BuildRequires: perl(overload) +BuildRequires: perl(POSIX) +BuildRequires: perl(UNIVERSAL) +BuildRequires: perl(warnings) +BuildRequires: perl(warnings::register) +BuildRequires: perl(XSLoader) +# Tests only +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(File::Basename) +BuildRequires: perl(File::Spec) +BuildRequires: perl(IO::Handle) +BuildRequires: perl(lib) +BuildRequires: perl(List::Util) +BuildRequires: perl(parent) +BuildRequires: perl(Test::Harness) +BuildRequires: perl(Test::More) >= 0.45 +# Optional tests +%if %{with perl_version_enables_optional_test} && ! %{defined perl_bootstrap} +BuildRequires: perl(Test::Taint) +%endif +Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) +Requires: perl(B) +Requires: perl(Carp) +Requires: perl(locale) +Requires: perl(UNIVERSAL) +Requires: perl(warnings) +Requires: perl(XSLoader) + +%{?perl_default_filter} +# version::vxs is private module (see bug #633775) +%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(version::vxs\\) + +%description +Version objects were added to Perl in 5.10. This module implements version +objects for older version of Perl and provides the version object API for +all versions of Perl. All previous releases before 0.74 are deprecated and +should not be used due to incompatible API changes. Version 0.77 introduces +the new 'parse' and 'declare' methods to standardize usage. You are +strongly urged to set 0.77 as a minimum in your code. + +%prep +%setup -q -n version-%{module_version} +%patch0 -p1 + +%build +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" UNINST=0 NO_PACKLIST=1 +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name '*.bs' -size 0 -delete +%{_fixperms} %{buildroot}/* + +%check +make test + +%files +%doc CHANGES README +%doc %{perl_vendorarch}/version.pod +%dir %{perl_vendorarch}/version/ +%doc %{perl_vendorarch}/version/Internals.pod +%{perl_vendorarch}/auto/version/ +%{perl_vendorarch}/version.pm +%{perl_vendorarch}/version/vpp.pm +%{perl_vendorarch}/version/vxs.pm +%{perl_vendorarch}/version/regex.pm +%{_mandir}/man3/version.3pm* +%{_mandir}/man3/version::Internals.3pm* + +%changelog +* Mon Nov 25 2019 Petr Pisar - 7:0.99.24-441 +- Do not clobber memory when switching a locale (Perl GH#17054) + +* Fri Jul 26 2019 Fedora Release Engineering - 7:0.99.24-440 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Jun 02 2019 Jitka Plesnikova - 7:0.99.24-439 +- Perl 5.30 re-rebuild of bootstrapped packages + +* Thu May 30 2019 Jitka Plesnikova - 7:0.99.24-438 +- Increase release to favour standalone package + +* Sat Feb 02 2019 Fedora Release Engineering - 7:0.99.24-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 7:0.99.24-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sat Jun 30 2018 Jitka Plesnikova - 7:0.99.24-4 +- Perl 5.28 re-rebuild of bootstrapped packages + +* Sat Jun 30 2018 Jitka Plesnikova - 7:0.99.24-3 +- Perl 5.28 re-rebuild of bootstrapped packages + +* Tue Jun 26 2018 Jitka Plesnikova - 7:0.99.24-2 +- Perl 5.28 rebuild + +* Fri Apr 20 2018 Jitka Plesnikova - 6:0.99.24-1 +- 0.9924 bump + +* Mon Apr 16 2018 Jitka Plesnikova - 6:0.99.23-1 +- 0.9923 bump + +* Thu Apr 12 2018 Petr Pisar - 6:0.99.21-1 +- 0.9921 bump + +* Mon Apr 09 2018 Jitka Plesnikova - 6:0.99.20-1 +- 0.9920 bump + +* Fri Mar 09 2018 Petr Pisar - 6:0.99.18-7 +- Remove useless build-time dependency on ExtUtils::CBuilder +- Fix documentation about numify() and stringify() trailing zeros + (CPAN RT#64635, CPAN RT#122858) + +* Fri Feb 09 2018 Fedora Release Engineering - 6:0.99.18-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 6:0.99.18-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 6:0.99.18-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Wed Jun 07 2017 Jitka Plesnikova - 6:0.99.18-3 +- Perl 5.26 re-rebuild of bootstrapped packages + +* Sat Jun 03 2017 Jitka Plesnikova - 6:0.99.18-2 +- Perl 5.26 rebuild + +* Fri Apr 21 2017 Jitka Plesnikova - 5:0.99.18-1 +- 0.9918 bump + +* Sat Feb 11 2017 Fedora Release Engineering - 5:0.99.17-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Jun 02 2016 Jitka Plesnikova - 5:0.99.17-1 +- 0.9917 bump + +* Sat May 14 2016 Jitka Plesnikova - 5:0.99.16-365 +- Increase release to favour standalone package + +* Mon Mar 21 2016 Jitka Plesnikova - 5:0.99.16-1 +- 0.9916 bump + +* Sun Mar 06 2016 Petr Šabata - 5:0.99.15-1 +- 0.9915 bump, documentation updated + +* Thu Feb 25 2016 Petr Šabata - 5:0.99.14-1 +- 0.9914 bump + +* Wed Feb 17 2016 Petr Šabata - 5:0.99.13-1 +- 0.9913 bump +- Backwards-incompatible changes in normal/numify/stringify + +* Thu Feb 04 2016 Fedora Release Engineering - 5:0.99.12-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Jul 6 2015 Paul Howarth - 5:0.99.12-4 +- Use UNINST=0 to avoid trying to mess with existing installation during + rebuild (#1239335) + +* Thu Jun 18 2015 Fedora Release Engineering - 5:0.99.12-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Jun 03 2015 Jitka Plesnikova - 4:0.99.12-2 +- Perl 5.22 rebuild +- Increase Epoch to favour standalone package + +* Tue Feb 03 2015 Petr Pisar - 4:0.99.12-1 +- 0.9912 bump + +* Wed Sep 03 2014 Jitka Plesnikova - 4:0.99.09-3 +- Increase Epoch to favour standalone package + +* Tue Aug 26 2014 Jitka Plesnikova - 3:0.99.09-2 +- Perl 5.20 rebuild + +* Wed Aug 20 2014 Petr Šabata - 3:0.99.09-1 +- 0.9909 bump + +* Sun Aug 17 2014 Fedora Release Engineering - 3:0.99.08-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 3:0.99.08-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Thu Feb 27 2014 Petr Šabata - 3:0.99.08-1 +- 0.9908 bump + +* Mon Jan 27 2014 Petr Pisar - 3:0.99.07-2 +- Specify all dependencies + +* Wed Jan 15 2014 Petr Šabata - 3:0.99.07-1 +- 0.9907 bugfix bump + +* Tue Jan 07 2014 Petr Šabata - 3:0.99.06-1 +- 0.9906 bump + +* Tue Sep 10 2013 Petr Šabata - 3:0.99.04-2 +- Release bump to (hopefully) fix the build + +* Tue Sep 10 2013 Petr Šabata - 3:0.99.04-1 +- 0.9904 bump + +* Mon Aug 26 2013 Petr Šabata - 3:0.99.03-1 +- 0.9903 bump +- Prefer %%global over %%define + +* Sun Aug 04 2013 Fedora Release Engineering - 3:0.99.02-291 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Mon Jul 15 2013 Petr Pisar - 3:0.99.02-290 +- Increase release to favour standalone package + +* Fri Jul 12 2013 Petr Pisar - 3:0.99.02-3 +- Perl 5.18 rebuild + +* Tue Jul 02 2013 Jitka Plesnikova - 3:0.99.02-2 +- Specify all dependencies + +* Thu Mar 7 2013 Jitka Plesnikova - 3:0.99.02-1 +- 0.9902 bump + +* Thu Feb 14 2013 Fedora Release Engineering - 3:0.99.01-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Mon Sep 17 2012 Jitka Plesnikova - 3:0.99.01-1 +- 0.9901 bump + +* Tue Aug 28 2012 Jitka Plesnikova - 3:0.99-241 +- Add test BR perl(Test::Harness) +- Remove %%defattr + +* Fri Aug 17 2012 Petr Pisar - 3:0.99-240 +- Increase release to replace perl sub-package (bug #848961) + +* Fri Aug 17 2012 Petr Pisar - 3:0.99-1 +- 0.99 bump + +* Fri Jul 20 2012 Fedora Release Engineering - 3:0.88-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Wed Jun 06 2012 Petr Pisar - 3:0.88-9 +- Perl 5.16 rebuild + +* Thu May 31 2012 Petr Pisar - 3:0.88-8 +- Fix dependencies + +* Sat Jan 14 2012 Fedora Release Engineering - 3:0.88-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Aug 16 2011 Marcela Mašláňová - 3:0.88-6 +- change path on vendor, so our debuginfo are not conflicting with + perl core debuginfos + +* Sun Jul 24 2011 Iain Arnell 3:0.88-5 +- update filtering for rpm 4.9 + +* Fri Jun 17 2011 Marcela Mašláňová - 3:0.88-4 +- Perl mass rebuild + +* Fri Apr 08 2011 Petr Pisar - 3:0.88-3 +- Unexport private version::vxs module (bug #633775) +- Remove BuildRoot stuff + +* Wed Feb 09 2011 Fedora Release Engineering - 3:0.88-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Jan 26 2011 Paul Howarth 3:0.88-1 +- Update to 0.88 +- Revert to Makefile.PL flow as upstream dropped Build.PL to avoid circular + dependencies +- Install into perl directories rather than vendor directories +- Mark Pod files as %%doc + +* Tue Mar 09 2010 Marcela Mašláňová 3:0.82-1 +- Specfile autogenerated by cpanspec 1.78.