Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/PDL-Graphics-Gnuplot/, dev-perl/PDL-Graphics-Gnuplot/files/
Date: Tue, 27 Jun 2017 19:21:22
Message-Id: 1498591258.11c654c81c21d89f741b2218932237e9f5267df6.dilfridge@gentoo
1 commit: 11c654c81c21d89f741b2218932237e9f5267df6
2 Author: Andreas K. Huettel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 27 19:20:35 2017 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 27 19:20:58 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11c654c8
7
8 dev-perl/PDL-Graphics-Gnuplot: Add bugfix patch to escape output file name
9
10 See also https://github.com/drzowie/PDL-Graphics-Gnuplot/issues/65
11 See also https://github.com/lab-measurement/lab-measurement/issues/10
12
13 Package-Manager: Portage-2.3.6, Repoman-2.3.2
14
15 .../PDL-Graphics-Gnuplot-2.11.0-r1.ebuild | 35 ++++++++++++++++++++++
16 .../PDL-Graphics-Gnuplot-2.11.0-outputfile.patch | 23 ++++++++++++++
17 2 files changed, 58 insertions(+)
18
19 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
20 new file mode 100644
21 index 00000000000..bc50a70b839
22 --- /dev/null
23 +++ b/dev-perl/PDL-Graphics-Gnuplot/PDL-Graphics-Gnuplot-2.11.0-r1.ebuild
24 @@ -0,0 +1,35 @@
25 +# Copyright 1999-2017 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=6
29 +
30 +DIST_VERSION=2.011
31 +DIST_AUTHOR=ZOWIE
32 +inherit perl-module
33 +
34 +DESCRIPTION="Gnuplot-based plotting for PDL"
35 +
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~x86"
38 +IUSE="test"
39 +
40 +PATCHES=(
41 + "${FILESDIR}/${P}-outputfile.patch"
42 +)
43 +
44 +RDEPEND="
45 + dev-perl/Alien-Gnuplot
46 + virtual/perl-IO
47 + dev-perl/IPC-Run
48 + virtual/perl-Scalar-List-Utils
49 + dev-perl/PDL
50 + dev-perl/PDL-Transform-Color
51 + dev-perl/Safe-Isa
52 + virtual/perl-Storable
53 + virtual/perl-Time-HiRes
54 + || ( sci-visualization/gnuplot[X] sci-visualization/gnuplot[qt4] )
55 +"
56 +DEPEND="${RDEPEND}
57 + >=virtual/perl-ExtUtils-MakeMaker-6.480.0
58 + test? ( virtual/perl-Test-Simple )
59 +"
60
61 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
62 new file mode 100644
63 index 00000000000..7d33370584a
64 --- /dev/null
65 +++ b/dev-perl/PDL-Graphics-Gnuplot/files/PDL-Graphics-Gnuplot-2.11.0-outputfile.patch
66 @@ -0,0 +1,23 @@
67 +From b12c3f5de6340b997e5a2992710828f3e89308a0 Mon Sep 17 00:00:00 2001
68 +From: Simon Reinhardt <simon.reinhardt@×××××××××××××××××××.de>
69 +Date: Mon, 26 Jun 2017 14:57:32 +0200
70 +Subject: [PATCH] Fix #65: No quoting for output filenames.
71 +
72 +Insert missing call to quote_escape (escape backslashes and such for gnuplot
73 +double-quote strings).
74 +---
75 + lib/PDL/Graphics/Gnuplot.pm | 1 +
76 + 1 file changed, 1 insertion(+)
77 +
78 +diff --git a/lib/PDL/Graphics/Gnuplot.pm b/lib/PDL/Graphics/Gnuplot.pm
79 +index 0edf7ef..ff96cc9 100644
80 +--- a/lib/PDL/Graphics/Gnuplot.pm
81 ++++ b/lib/PDL/Graphics/Gnuplot.pm
82 +@@ -5188,6 +5188,7 @@ our $pOptionsTable =
83 + if($vv ne $v) {
84 + carp "INFO: Plotting to '$vv'\n";
85 + }
86 ++ $vv = quote_escape($vv);
87 + return "set $k \"$vv\"\n";
88 + },
89 + undef,3,