Blame SOURCES/PathTools-3.62-Upgrade-to-3.63.patch

b465e1
From 37ec7c0cadcde0f86ea87bc025096a7d894c7983 Mon Sep 17 00:00:00 2001
b465e1
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
b465e1
Date: Thu, 11 May 2017 11:36:46 +0200
b465e1
Subject: [PATCH] Upgrade to 3.63
b465e1
MIME-Version: 1.0
b465e1
Content-Type: text/plain; charset=UTF-8
b465e1
Content-Transfer-Encoding: 8bit
b465e1
b465e1
Unbundled from perl-5.24.0.
b465e1
b465e1
Signed-off-by: Petr Písař <ppisar@redhat.com>
b465e1
---
b465e1
 Cwd.pm                     |  2 +-
b465e1
 lib/File/Spec.pm           |  2 +-
b465e1
 lib/File/Spec/AmigaOS.pm   |  5 +++--
b465e1
 lib/File/Spec/Cygwin.pm    |  2 +-
b465e1
 lib/File/Spec/Epoc.pm      |  2 +-
b465e1
 lib/File/Spec/Functions.pm |  2 +-
b465e1
 lib/File/Spec/Mac.pm       |  2 +-
b465e1
 lib/File/Spec/OS2.pm       |  2 +-
b465e1
 lib/File/Spec/Unix.pm      |  2 +-
b465e1
 lib/File/Spec/VMS.pm       | 10 ++++------
b465e1
 lib/File/Spec/Win32.pm     |  2 +-
b465e1
 t/abs2rel.t                |  6 +++---
b465e1
 12 files changed, 19 insertions(+), 20 deletions(-)
b465e1
b465e1
diff --git a/Cwd.pm b/Cwd.pm
b465e1
index 9b5183e..e8b9f19 100644
b465e1
--- a/Cwd.pm
b465e1
+++ b/Cwd.pm
b465e1
@@ -3,7 +3,7 @@ use strict;
b465e1
 use Exporter;
b465e1
 use vars qw(@ISA @EXPORT @EXPORT_OK $VERSION);
b465e1
 
b465e1
-$VERSION = '3.62';
b465e1
+$VERSION = '3.63';
b465e1
 my $xs_version = $VERSION;
b465e1
 $VERSION =~ tr/_//d;
b465e1
 
b465e1
diff --git a/lib/File/Spec.pm b/lib/File/Spec.pm
b465e1
index 2709c39..32b987e 100644
b465e1
--- a/lib/File/Spec.pm
b465e1
+++ b/lib/File/Spec.pm
b465e1
@@ -3,7 +3,7 @@ package File::Spec;
b465e1
 use strict;
b465e1
 use vars qw(@ISA $VERSION);
b465e1
 
b465e1
-$VERSION = '3.62';
b465e1
+$VERSION = '3.63';
b465e1
 $VERSION =~ tr/_//d;
b465e1
 
b465e1
 my %module = (MacOS   => 'Mac',
b465e1
diff --git a/lib/File/Spec/AmigaOS.pm b/lib/File/Spec/AmigaOS.pm
b465e1
index e6d6f5f..7a5889c 100644
b465e1
--- a/lib/File/Spec/AmigaOS.pm
b465e1
+++ b/lib/File/Spec/AmigaOS.pm
b465e1
@@ -4,7 +4,7 @@ use strict;
b465e1
 use vars qw(@ISA $VERSION);
b465e1
 require File::Spec::Unix;
b465e1
 
b465e1
-$VERSION = '3.62';
b465e1
+$VERSION = '3.64';
b465e1
 $VERSION =~ tr/_//d;
b465e1
 
b465e1
 @ISA = qw(File::Spec::Unix);
b465e1
@@ -15,7 +15,8 @@ File::Spec::AmigaOS - File::Spec for AmigaOS
b465e1
 
b465e1
 =head1 SYNOPSIS
b465e1
 
b465e1
- require File::Spec::AmigaOS; # Done automatically by File::Spec if needed
b465e1
+ require File::Spec::AmigaOS; # Done automatically by File::Spec
b465e1
+                              # if needed
b465e1
 
b465e1
 =head1 DESCRIPTION
b465e1
 
b465e1
diff --git a/lib/File/Spec/Cygwin.pm b/lib/File/Spec/Cygwin.pm
b465e1
index 67f056f..2092eb8 100644
b465e1
--- a/lib/File/Spec/Cygwin.pm
b465e1
+++ b/lib/File/Spec/Cygwin.pm
b465e1
@@ -4,7 +4,7 @@ use strict;
b465e1
 use vars qw(@ISA $VERSION);
b465e1
 require File::Spec::Unix;
b465e1
 
b465e1
-$VERSION = '3.62';
b465e1
+$VERSION = '3.63';
b465e1
 $VERSION =~ tr/_//d;
b465e1
 
b465e1
 @ISA = qw(File::Spec::Unix);
b465e1
diff --git a/lib/File/Spec/Epoc.pm b/lib/File/Spec/Epoc.pm
b465e1
index 17e3f54..22f0192 100644
b465e1
--- a/lib/File/Spec/Epoc.pm
b465e1
+++ b/lib/File/Spec/Epoc.pm
b465e1
@@ -3,7 +3,7 @@ package File::Spec::Epoc;
b465e1
 use strict;
b465e1
 use vars qw($VERSION @ISA);
b465e1
 
b465e1
-$VERSION = '3.62';
b465e1
+$VERSION = '3.63';
b465e1
 $VERSION =~ tr/_//d;
b465e1
 
b465e1
 require File::Spec::Unix;
b465e1
diff --git a/lib/File/Spec/Functions.pm b/lib/File/Spec/Functions.pm
b465e1
index 470c771..af2c498 100644
b465e1
--- a/lib/File/Spec/Functions.pm
b465e1
+++ b/lib/File/Spec/Functions.pm
b465e1
@@ -5,7 +5,7 @@ use strict;
b465e1
 
b465e1
 use vars qw(@ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $VERSION);
b465e1
 
b465e1
-$VERSION = '3.62';
b465e1
+$VERSION = '3.63';
b465e1
 $VERSION =~ tr/_//d;
b465e1
 
b465e1
 require Exporter;
b465e1
diff --git a/lib/File/Spec/Mac.pm b/lib/File/Spec/Mac.pm
b465e1
index 329451f..52c3bfe 100644
b465e1
--- a/lib/File/Spec/Mac.pm
b465e1
+++ b/lib/File/Spec/Mac.pm
b465e1
@@ -4,7 +4,7 @@ use strict;
b465e1
 use vars qw(@ISA $VERSION);
b465e1
 require File::Spec::Unix;
b465e1
 
b465e1
-$VERSION = '3.62';
b465e1
+$VERSION = '3.63';
b465e1
 $VERSION =~ tr/_//d;
b465e1
 
b465e1
 @ISA = qw(File::Spec::Unix);
b465e1
diff --git a/lib/File/Spec/OS2.pm b/lib/File/Spec/OS2.pm
b465e1
index 55e6d33..804ecdb 100644
b465e1
--- a/lib/File/Spec/OS2.pm
b465e1
+++ b/lib/File/Spec/OS2.pm
b465e1
@@ -4,7 +4,7 @@ use strict;
b465e1
 use vars qw(@ISA $VERSION);
b465e1
 require File::Spec::Unix;
b465e1
 
b465e1
-$VERSION = '3.62';
b465e1
+$VERSION = '3.63';
b465e1
 $VERSION =~ tr/_//d;
b465e1
 
b465e1
 @ISA = qw(File::Spec::Unix);
b465e1
diff --git a/lib/File/Spec/Unix.pm b/lib/File/Spec/Unix.pm
b465e1
index 586e9b0..3916a11 100644
b465e1
--- a/lib/File/Spec/Unix.pm
b465e1
+++ b/lib/File/Spec/Unix.pm
b465e1
@@ -3,7 +3,7 @@ package File::Spec::Unix;
b465e1
 use strict;
b465e1
 use vars qw($VERSION);
b465e1
 
b465e1
-$VERSION = '3.62';
b465e1
+$VERSION = '3.63';
b465e1
 my $xs_version = $VERSION;
b465e1
 $VERSION =~ tr/_//d;
b465e1
 
b465e1
diff --git a/lib/File/Spec/VMS.pm b/lib/File/Spec/VMS.pm
b465e1
index 600c49f..02cc0b0 100644
b465e1
--- a/lib/File/Spec/VMS.pm
b465e1
+++ b/lib/File/Spec/VMS.pm
b465e1
@@ -4,7 +4,7 @@ use strict;
b465e1
 use vars qw(@ISA $VERSION);
b465e1
 require File::Spec::Unix;
b465e1
 
b465e1
-$VERSION = '3.62';
b465e1
+$VERSION = '3.63';
b465e1
 $VERSION =~ tr/_//d;
b465e1
 
b465e1
 @ISA = qw(File::Spec::Unix);
b465e1
@@ -437,15 +437,13 @@ Attempt to convert an absolute file specification to a relative specification.
b465e1
 
b465e1
 sub abs2rel {
b465e1
     my $self = shift;
b465e1
-    return vmspath(File::Spec::Unix::abs2rel( $self, @_ ))
b465e1
-        if ((grep m{/}, @_) && !(grep m{(?
b465e1
-
b465e1
     my($path,$base) = @_;
b465e1
+
b465e1
     $base = $self->_cwd() unless defined $base and length $base;
b465e1
 
b465e1
     # If there is no device or directory syntax on $base, make sure it
b465e1
     # is treated as a directory.
b465e1
-    $base = VMS::Filespec::vmspath($base) unless $base =~ m{(?
b465e1
+    $base = vmspath($base) unless $base =~ m{(?
b465e1
 
b465e1
     for ($path, $base) { $_ = $self->rel2abs($_) }
b465e1
 
b465e1
@@ -461,7 +459,7 @@ sub abs2rel {
b465e1
     
b465e1
     my ($path_volume, $path_directories, $path_file) = $self->splitpath($path);
b465e1
     my ($base_volume, $base_directories, $base_file) = $self->splitpath($base);
b465e1
-    return $path unless lc($path_volume) eq lc($base_volume);
b465e1
+    return $self->canonpath( $path ) unless lc($path_volume) eq lc($base_volume);
b465e1
 
b465e1
     # Now, remove all leading components that are the same
b465e1
     my @pathchunks = $self->splitdir( $path_directories );
b465e1
diff --git a/lib/File/Spec/Win32.pm b/lib/File/Spec/Win32.pm
b465e1
index 6df7ee8..1105b67 100644
b465e1
--- a/lib/File/Spec/Win32.pm
b465e1
+++ b/lib/File/Spec/Win32.pm
b465e1
@@ -5,7 +5,7 @@ use strict;
b465e1
 use vars qw(@ISA $VERSION);
b465e1
 require File::Spec::Unix;
b465e1
 
b465e1
-$VERSION = '3.62';
b465e1
+$VERSION = '3.63';
b465e1
 $VERSION =~ tr/_//d;
b465e1
 
b465e1
 @ISA = qw(File::Spec::Unix);
b465e1
diff --git a/t/abs2rel.t b/t/abs2rel.t
b465e1
index 5e33ab6..b77a1c2 100644
b465e1
--- a/t/abs2rel.t
b465e1
+++ b/t/abs2rel.t
b465e1
@@ -6,7 +6,7 @@ use Test::More;
b465e1
 use Cwd qw(cwd getcwd abs_path);
b465e1
 use File::Spec();
b465e1
 use File::Temp qw(tempdir);
b465e1
-use File::Path qw(make_path);
b465e1
+use File::Path qw(mkpath);
b465e1
 
b465e1
 my $startdir = cwd();
b465e1
 my @files = ( 'anyfile', './anyfile', '../first_sub_dir/anyfile', '../second_sub_dir/second_file' );
b465e1
@@ -25,8 +25,8 @@ sub test_rel2abs {
b465e1
         File::Spec->catdir('first_sub_dir',  'sub_sub_dir'),
b465e1
         'second_sub_dir'
b465e1
     );
b465e1
-    make_path(@subdirs, { mode => 0711 })
b465e1
-        or die "Unable to make_path: $!";
b465e1
+    mkpath(@subdirs, { mode => 0711 })
b465e1
+        or die "Unable to mkpath: $!";
b465e1
 
b465e1
     open my $OUT2, '>',
b465e1
         File::Spec->catfile('second_sub_dir', 'second_file')
b465e1
-- 
b465e1
2.9.3
b465e1