Enable loading objects from session YAML files
This commit is contained in:
parent
b51cfea29e
commit
a84b72a82c
@ -0,0 +1,28 @@
|
||||
From 08bd14786e38ee6f8156227ee560fbbc6150a8bc Mon Sep 17 00:00:00 2001
|
||||
From: Tina Mueller <cpan2@tinita.de>
|
||||
Date: Thu, 30 Jan 2020 19:34:52 +0100
|
||||
Subject: [PATCH] YAML modules default for $LoadBlessed was changed to false
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
||||
---
|
||||
lib/CPAN.pm | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/lib/CPAN.pm b/lib/CPAN.pm
|
||||
index 2d87f47f..ed8e0444 100644
|
||||
--- a/lib/CPAN.pm
|
||||
+++ b/lib/CPAN.pm
|
||||
@@ -559,6 +559,7 @@ sub _yaml_loadfile {
|
||||
# so we do it manually instead
|
||||
my $old_loadcode = ${"$yaml_module\::LoadCode"};
|
||||
${ "$yaml_module\::LoadCode" } = $CPAN::Config->{yaml_load_code} || 0;
|
||||
+ local ${ "$yaml_module\::LoadBlessed" } = 1;
|
||||
|
||||
my ($code, @yaml);
|
||||
if ($code = UNIVERSAL::can($yaml_module, "LoadFile")) {
|
||||
--
|
||||
2.21.1
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
Name: perl-CPAN
|
||||
Version: 2.27
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: Query, download and build perl modules from CPAN sites
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/CPAN
|
||||
@ -19,6 +19,9 @@ Source0: https://cpan.metacpan.org/authors/id/A/AN/ANDK/CPAN-%{version}.t
|
||||
Patch0: CPAN-2.18-Attemp-to-create-site-library-directories-on-first-t.patch
|
||||
# Change configuration directory name
|
||||
Patch1: CPAN-2.18-Replace-configuration-directory-string-with-a-marke.patch
|
||||
# Enable loading objects from session YAML files, CPAN RT#131615
|
||||
# <https://github.com/andk/cpanpm/pull/133>
|
||||
Patch2: CPAN-2.27-YAML-modules-default-for-LoadBlessed-was-changed-to-.patch
|
||||
BuildArch: noarch
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
@ -233,6 +236,7 @@ external download clients to fetch distributions from the net.
|
||||
%setup -q -n CPAN-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
# Change configuration name
|
||||
find -type f -exec sed -i -e 's/XCPANCONFIGNAMEX/cpan/g' {} \;
|
||||
# Remove bundled modules
|
||||
@ -261,6 +265,9 @@ make test
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Fri Jan 31 2020 Petr Pisar <ppisar@redhat.com> - 2.27-4
|
||||
- Enable loading objects from session YAML files (CPAN RT#131615)
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.27-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user