app-text/po4a: Fix broken library path tweaks re bug #614122
authorKent Fredric <kentnl@gentoo.org>
Tue, 13 Jun 2017 09:34:57 +0000 (21:34 +1200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Fri, 16 Jun 2017 20:29:33 +0000 (22:29 +0200)
The original code already had a "use lib" incantation that clearly
intended to imply ".", but ... did so by quoting it twice:

  q('.')   == "'.''"

That's too much '

Bug: https://bugs.gentoo.org/614122
Package-Manager: Portage-2.3.6, Repoman-2.3.2

app-text/po4a/files/po4a-0.45-614122-no-dot-inc.patch [new file with mode: 0644]
app-text/po4a/po4a-0.45-r3.ebuild
app-text/po4a/po4a-0.47-r1.ebuild

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 (file)
index 0000000..226fa0e
--- /dev/null
@@ -0,0 +1,26 @@
+From: Kent Fredric <kentfredric@gmail.com>
+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
+
index 985f6b206af9e8bc5f3adc42de55c6dd278ddcd0..3523e66bb77ee306d90ca47e7efc61254134d71f 100644 (file)
@@ -55,6 +55,9 @@ src_prepare() {
        einfo "Your LINGUAS lists the following languages: $LINGUAS"
        einfo "Removing locale files not listed in it ..."
 
+       # Fix bad escaping of '.' in @INC modification
+       epatch "${FILESDIR}/${P}-614122-no-dot-inc.patch"
+
        # perl_rm_files also updates the Manifest file
        # and therefore silences Perl as to .po files we're about to clean
        perl_rm_files "${locales_to_remove[@]}"
index a935ce3889449bdd83b517ea24d992254206f41b..87a6be51c2ad6a4fb948b00d3c677466e0fa8cd5 100644 (file)
@@ -35,6 +35,10 @@ DEPEND="${RDEPEND}
 # Running tests in parallel fails
 DIST_TEST="do"
 
+PATCHES=(
+       # Fix bad escaping of '.' in @INC modification
+       "${FILESDIR}/${PN}-0.45-614122-no-dot-inc.patch"
+)
 src_prepare() {
        # Check against locale files in ${S}/pod/bin for mismatches
        # with languages listed in PLOCALES