Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37825313
en ru br
ALT Linux repos
S:2.36-alt1
5.0: 1.93.01-alt1
4.1: 1.76-alt2
4.0: 1.76-alt2
3.0: 1.76-alt2

Group :: Development/Perl
RPM: perl-CPAN

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: CPAN-2.27-yaml-fix.patch
Download


commit 10da44f1757aff6971e3bc4ed38ab115e738c740
Author: Tina Mueller <cpan2@tinita.de>
Date:   Thu Jan 30 19:34:52 2020 +0100
    YAML modules default for $LoadBlessed was changed to false
diff --git a/lib/CPAN.pm b/lib/CPAN.pm
index 2d87f47f..2e28c9fc 100644
--- a/lib/CPAN.pm
+++ b/lib/CPAN.pm
@@ -558,7 +558,9 @@ sub _yaml_loadfile {
         # 5.6.2 could not do the local() with the reference
         # so we do it manually instead
         my $old_loadcode = ${"$yaml_module\::LoadCode"};
+        my $old_loadblessed = ${"$yaml_module\::LoadBlessed"};
         ${ "$yaml_module\::LoadCode" } = $CPAN::Config->{yaml_load_code} || 0;
+        ${ "$yaml_module\::LoadBlessed" } = 1;
 
         my ($code, @yaml);
         if ($code = UNIVERSAL::can($yaml_module, "LoadFile")) {
@@ -582,6 +584,7 @@ sub _yaml_loadfile {
             }
         }
         ${"$yaml_module\::LoadCode"} = $old_loadcode;
+        ${"$yaml_module\::LoadBlessed"} = $old_loadblessed;
         return \@yaml;
     } else {
         # this shall not be done by the frontend
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin