diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-02-03 12:15:11 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-02-03 12:15:11 -0500 |
commit | b7f02b9741f313a6d6b96c1829d45fe09a39d0de (patch) | |
tree | 9d504613fe7b4ee55cd4986c58feb2fc47ae22c2 /pcr/lcov/fix-undef-behaviour.patch | |
parent | 20715decf4d41f95876e431d029ef69b89205ffa (diff) | |
download | abslibre-b7f02b9741f313a6d6b96c1829d45fe09a39d0de.tar.gz abslibre-b7f02b9741f313a6d6b96c1829d45fe09a39d0de.tar.bz2 abslibre-b7f02b9741f313a6d6b96c1829d45fe09a39d0de.zip |
add pcr/lcov
Diffstat (limited to 'pcr/lcov/fix-undef-behaviour.patch')
-rw-r--r-- | pcr/lcov/fix-undef-behaviour.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pcr/lcov/fix-undef-behaviour.patch b/pcr/lcov/fix-undef-behaviour.patch new file mode 100644 index 000000000..3621fc898 --- /dev/null +++ b/pcr/lcov/fix-undef-behaviour.patch @@ -0,0 +1,37 @@ +Author: Alastair McKinstry <mckinstry@debian.org> +Description: Fix for undefined behavior in perl5.20 +Origin: http://bugs.debian.org/761308 +Forwarded: no +Last-Updated: 2014-09-13 + +Index: lcov-1.12/bin/lcov +=================================================================== +--- lcov-1.12.orig/bin/lcov ++++ lcov-1.12/bin/lcov +@@ -224,7 +224,9 @@ Getopt::Long::Configure("default"); + # Remove spaces around rc options + my %new_opt_rc; + +- while (my ($key, $value) = each(%opt_rc)) { ++ my @keys = keys %opt_rc; ++ for my $key (@keys) { ++ my $value = $opt_rc{$key}; + $key =~ s/^\s+|\s+$//g; + $value =~ s/^\s+|\s+$//g; + +Index: lcov-1.12/bin/geninfo +=================================================================== +--- lcov-1.12.orig/bin/geninfo ++++ lcov-1.12/bin/geninfo +@@ -284,8 +284,9 @@ Getopt::Long::Configure("default"); + { + # Remove spaces around rc options + my %new_opt_rc; +- +- while (my ($key, $value) = each(%opt_rc)) { ++ my @keys = keys %opt_rc; ++ for my $key (@keys) { ++ my $value = $opt_rc{$key}; + $key =~ s/^\s+|\s+$//g; + $value =~ s/^\s+|\s+$//g; + |