From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- .../po4a/files/po4a-0.45-614122-no-dot-inc.patch | 26 +++++++++++++ .../po4a-0.45-port-our-regex-to-perl-5.22.patch | 44 ++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 app-text/po4a/files/po4a-0.45-614122-no-dot-inc.patch create mode 100644 app-text/po4a/files/po4a-0.45-port-our-regex-to-perl-5.22.patch (limited to 'app-text/po4a/files') diff --git a/app-text/po4a/files/po4a-0.45-614122-no-dot-inc.patch b/app-text/po4a/files/po4a-0.45-614122-no-dot-inc.patch new file mode 100644 index 000000000000..226fa0e9b6e2 --- /dev/null +++ b/app-text/po4a/files/po4a-0.45-614122-no-dot-inc.patch @@ -0,0 +1,26 @@ +From: Kent Fredric +Date: Tue, 13 Jun 2017 21:10:34 +1200 +Subject: [PATCH] Fix broken use of lib '.' + + "'.'" is not "." + +Bug: https://bugs.gentoo.org/614122 +--- + Build.PL | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Build.PL b/Build.PL +index 43c6f80..9ee443b 100644 +--- a/Build.PL ++++ b/Build.PL +@@ -1,6 +1,6 @@ + #!/usr/bin/perl + +-use lib q('.'); ++use lib q(.); + use Po4aBuilder; + + my $build = Po4aBuilder->new +-- +2.13.1 + diff --git a/app-text/po4a/files/po4a-0.45-port-our-regex-to-perl-5.22.patch b/app-text/po4a/files/po4a-0.45-port-our-regex-to-perl-5.22.patch new file mode 100644 index 000000000000..a204d5e97217 --- /dev/null +++ b/app-text/po4a/files/po4a-0.45-port-our-regex-to-perl-5.22.patch @@ -0,0 +1,44 @@ +Fix sgml and tex regex against perl-5.22. See Gentoo-bug: 604428. +Based on a patch from upstream git. Original commit info: +From 44e5c2f02b3166536257bc9d6384d41dda386648 Mon Sep 17 00:00:00 2001 +From: Martin Quinson +Date: Fri, 28 Aug 2015 19:01:17 +0200 +Subject: [PATCH] Port our regex to Perl 5.22 (patch by Roderich Schupp) + +--- + lib/Locale/Po4a/Sgml.pm | 4 ++-- + lib/Locale/Po4a/TeX.pm | 2 +- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/lib/Locale/Po4a/Sgml.pm b/lib/Locale/Po4a/Sgml.pm +index 742e003..3ad5e8d 100644 +--- a/lib/Locale/Po4a/Sgml.pm ++++ b/lib/Locale/Po4a/Sgml.pm +@@ -672,9 +672,9 @@ sub parse_file { + } + } + } +- $prolog =~ s///g; ++ $prolog =~ s///g; + # Unprotect undefined inclusions, and die of them +- $prolog =~ s/{PO4A-percent}/%/sg; ++ $prolog =~ s/\{PO4A-percent\}/%/sg; + if ($prolog =~ /%([^;\s]*);/) { + die wrap_mod("po4a::sgml", + dgettext("po4a", +diff --git a/lib/Locale/Po4a/TeX.pm b/lib/Locale/Po4a/TeX.pm +index a78f94b..0faa465 100644 +--- a/lib/Locale/Po4a/TeX.pm ++++ b/lib/Locale/Po4a/TeX.pm +@@ -1168,7 +1168,7 @@ sub parse { + # environment contains an un-closed bracket) + if ( ($closed and ($line =~ /^\s*$/ or + $line =~ /^\s*$RE_VERBATIM\s*$/)) +- or (in_verbatim(@env) and $line =~ /^\s*\Q$ESCAPE\Eend{$env[-1]}\s*$/) ++ or (in_verbatim(@env) and $line =~ /^\s*\Q$ESCAPE\Eend\{$env[-1]\}\s*$/) + ) { + # An empty line. This indicates the end of the current + # paragraph. +-- +2.10.2 + -- cgit v1.2.3