commit:     11c654c81c21d89f741b2218932237e9f5267df6
Author:     Andreas K. Huettel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 27 19:20:35 2017 +0000
Commit:     Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Tue Jun 27 19:20:58 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11c654c8

dev-perl/PDL-Graphics-Gnuplot: Add bugfix patch to escape output file name

See also https://github.com/drzowie/PDL-Graphics-Gnuplot/issues/65
See also https://github.com/lab-measurement/lab-measurement/issues/10

Package-Manager: Portage-2.3.6, Repoman-2.3.2

 .../PDL-Graphics-Gnuplot-2.11.0-r1.ebuild          | 35 ++++++++++++++++++++++
 .../PDL-Graphics-Gnuplot-2.11.0-outputfile.patch   | 23 ++++++++++++++
 2 files changed, 58 insertions(+)

diff --git 
a/dev-perl/PDL-Graphics-Gnuplot/PDL-Graphics-Gnuplot-2.11.0-r1.ebuild 
b/dev-perl/PDL-Graphics-Gnuplot/PDL-Graphics-Gnuplot-2.11.0-r1.ebuild
new file mode 100644
index 00000000000..bc50a70b839
--- /dev/null
+++ b/dev-perl/PDL-Graphics-Gnuplot/PDL-Graphics-Gnuplot-2.11.0-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_VERSION=2.011
+DIST_AUTHOR=ZOWIE
+inherit perl-module
+
+DESCRIPTION="Gnuplot-based plotting for PDL"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+PATCHES=(
+       "${FILESDIR}/${P}-outputfile.patch"
+)
+
+RDEPEND="
+       dev-perl/Alien-Gnuplot
+       virtual/perl-IO
+       dev-perl/IPC-Run
+       virtual/perl-Scalar-List-Utils
+       dev-perl/PDL
+       dev-perl/PDL-Transform-Color
+       dev-perl/Safe-Isa
+       virtual/perl-Storable
+       virtual/perl-Time-HiRes
+       || ( sci-visualization/gnuplot[X] sci-visualization/gnuplot[qt4] )
+"
+DEPEND="${RDEPEND}
+       >=virtual/perl-ExtUtils-MakeMaker-6.480.0
+       test? ( virtual/perl-Test-Simple )
+"

diff --git 
a/dev-perl/PDL-Graphics-Gnuplot/files/PDL-Graphics-Gnuplot-2.11.0-outputfile.patch
 
b/dev-perl/PDL-Graphics-Gnuplot/files/PDL-Graphics-Gnuplot-2.11.0-outputfile.patch
new file mode 100644
index 00000000000..7d33370584a
--- /dev/null
+++ 
b/dev-perl/PDL-Graphics-Gnuplot/files/PDL-Graphics-Gnuplot-2.11.0-outputfile.patch
@@ -0,0 +1,23 @@
+From b12c3f5de6340b997e5a2992710828f3e89308a0 Mon Sep 17 00:00:00 2001
+From: Simon Reinhardt <[email protected]>
+Date: Mon, 26 Jun 2017 14:57:32 +0200
+Subject: [PATCH] Fix #65: No quoting for output filenames.
+
+Insert missing call to quote_escape (escape backslashes and such for gnuplot
+double-quote strings).
+---
+ lib/PDL/Graphics/Gnuplot.pm | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lib/PDL/Graphics/Gnuplot.pm b/lib/PDL/Graphics/Gnuplot.pm
+index 0edf7ef..ff96cc9 100644
+--- a/lib/PDL/Graphics/Gnuplot.pm
++++ b/lib/PDL/Graphics/Gnuplot.pm
+@@ -5188,6 +5188,7 @@ our $pOptionsTable =
+                         if($vv ne $v) {
+                             carp "INFO: Plotting to '$vv'\n";
+                         }
++                        $vv = quote_escape($vv);
+                         return "set $k \"$vv\"\n";
+                   },
+                   undef,3,

Reply via email to