diff --git a/SOURCES/CPAN-2.18-Attemp-to-create-site-library-directories-on-first-t.patch b/SOURCES/CPAN-2.18-Attemp-to-create-site-library-directories-on-first-t.patch index cdf099d..7c15598 100644 --- a/SOURCES/CPAN-2.18-Attemp-to-create-site-library-directories-on-first-t.patch +++ b/SOURCES/CPAN-2.18-Attemp-to-create-site-library-directories-on-first-t.patch @@ -33,7 +33,7 @@ index 531c115..8d82795 100644 + $CPAN::Frontend->mywarn(sprintf( + qq{Perl site library directory "%s" does not exist.\n}, + $_)); -+ File::Path::make_path($_, { error => \my $failure }); ++ File::Path::make_path($_, { error => \my $failure, chmod => 0755 }); + if (@$failure) { + $CPAN::Frontend->mywarn(sprintf( + qq{Perl site library directory "%s" } . diff --git a/SOURCES/CPAN-2.29-Add-notes-about-first-configuration.patch b/SOURCES/CPAN-2.29-Add-notes-about-first-configuration.patch new file mode 100644 index 0000000..8099ae3 --- /dev/null +++ b/SOURCES/CPAN-2.29-Add-notes-about-first-configuration.patch @@ -0,0 +1,22 @@ +Add notes about the first configuration and about creating site repository +which is specific for Fedora/RHEL. + +diff -up CPAN-2.29/scripts/cpan.orig CPAN-2.29/scripts/cpan +--- CPAN-2.29/scripts/cpan.orig 2025-03-03 07:54:40.491966844 +0100 ++++ CPAN-2.29/scripts/cpan 2025-03-03 07:54:40.495448509 +0100 +@@ -302,6 +302,15 @@ not control. For now, the exit codes are + + 8 A module failed to install + ++=head1 NOTES ++ ++If the configuration is not defined when C is used for the first ++time, CPAN::Config initialization is triggered using L. ++This step is skipped only when using the C<-h> option. ++ ++If the user has write permissions to /usr/local, site library repositories ++may also be created. ++ + =head1 TO DO + + * one shot configuration values from the command line diff --git a/SPECS/perl-CPAN.spec b/SPECS/perl-CPAN.spec index d7877d8..c5a1891 100644 --- a/SPECS/perl-CPAN.spec +++ b/SPECS/perl-CPAN.spec @@ -10,7 +10,7 @@ Name: perl-CPAN Version: 2.29 -Release: 3%{?dist} +Release: 5%{?dist} Summary: Query, download and build perl modules from CPAN sites License: GPL+ or Artistic URL: https://metacpan.org/release/CPAN @@ -24,6 +24,8 @@ Patch2: CPAN-2.32-s-gpg-gpg-in-system-add-quotes-where-needed.patch Patch3: CPAN-2.32-s-dev-null-devnull.patch # CVE-2023-31484 - Add verify_SSL => 1 Patch4: CPAN-2.35-Add-verify-SSL.patch +# Update man page to provide notes about first run +Patch5: CPAN-2.29-Add-notes-about-first-configuration.patch BuildArch: noarch BuildRequires: coreutils BuildRequires: findutils @@ -262,11 +264,12 @@ with "%{_libexecdir}/%{name}/test". %prep %setup -q -n CPAN-%{version} -%patch0 -p1 -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 +%patch -P0 -p1 +%patch -P1 -p1 +%patch -P2 -p1 +%patch -P3 -p1 +%patch -P4 -p1 +%patch -P5 -p1 # Change configuration name find -type f -exec perl -i -pe 's/XCPANCONFIGNAMEX/cpan/g' {} \; # Remove bundled modules @@ -336,6 +339,13 @@ make test %{_libexecdir}/%{name} %changelog +* Mon Mar 03 2025 Jitka Plesnikova - 2.29-5 +- Resolves: RHEL-77187 - Update man page + +* Thu Feb 13 2025 Jitka Plesnikova - 2.29-4 +- Resolves: RHEL-77187 +- Fix permission for creating site directories + * Tue Aug 01 2023 Michal Josef Špaček - 2.29-3 - Resolves: rhbz#2218907 - Fix CVE-2023-31484