[libgit-pureperl-perl] 01/03: Add patch to fix 'Can't redeclare "my" in "my" ...' error in perl 5.24.

gregor herrmann gregoa at debian.org
Sat Jun 4 23:18:16 UTC 2016


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libgit-pureperl-perl.

commit 142a0774299545a828963551d9afcf09ae4703cc
Author: gregor herrmann <gregoa at debian.org>
Date:   Sun Jun 5 01:14:12 2016 +0200

    Add patch to fix 'Can't redeclare "my" in "my" ...' error in perl 5.24.
    
    Closes: #825525
---
 debian/patches/my-oh-my.patch | 28 ++++++++++++++++++++++++++++
 debian/patches/series         |  1 +
 2 files changed, 29 insertions(+)

diff --git a/debian/patches/my-oh-my.patch b/debian/patches/my-oh-my.patch
new file mode 100644
index 0000000..5a420e6
--- /dev/null
+++ b/debian/patches/my-oh-my.patch
@@ -0,0 +1,28 @@
+Description: fix 'Can't redeclare "my" in "my" ...' error in 5.24
+Origin: vendor
+Bug-Debian: https://bugs.debian.org/825525
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2016-06-05
+Forwarded: https://rt.cpan.org/Ticket/Display.html?id=106772
+Bug: https://rt.cpan.org/Ticket/Display.html?id=106772
+
+--- a/lib/Git/PurePerl.pm
++++ b/lib/Git/PurePerl.pm
+@@ -156,7 +156,7 @@
+         foreach my $line ( $packed_refs->slurp( chomp => 1 ) ) {
+             next if $line =~ /^#/;
+             next if $line =~ /^\^/;
+-            my ( $sha1, my $name ) = split ' ', $line;
++            my ( $sha1, $name ) = split ' ', $line;
+             push @names, $name;
+         }
+     }
+@@ -202,7 +202,7 @@
+         my $last_sha1;
+         foreach my $line ( $packed_refs->slurp( chomp => 1 ) ) {
+             next if $line =~ /^#/;
+-            my ( $sha1, my $name ) = split ' ', $line;
++            my ( $sha1, $name ) = split ' ', $line;
+             $sha1 =~ s/^\^//;
+             $name ||= $last_name;
+ 
diff --git a/debian/patches/series b/debian/patches/series
index cf4be3a..57724d0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 disable_test.patch
+my-oh-my.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libgit-pureperl-perl.git



More information about the Pkg-perl-cvs-commits mailing list