From a9bb1eef13332098b181a6b57cd60b695173d163 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Mon, 18 Oct 2021 11:00:28 +0200 Subject: sci-visualization/gnuplot: Fix test failure on arm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/811927 Bug: https://sourceforge.net/p/gnuplot/bugs/2467/ Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Ulrich Müller --- .../gnuplot/files/gnuplot-5.4.2-signed-char.patch | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 sci-visualization/gnuplot/files/gnuplot-5.4.2-signed-char.patch (limited to 'sci-visualization/gnuplot/files/gnuplot-5.4.2-signed-char.patch') diff --git a/sci-visualization/gnuplot/files/gnuplot-5.4.2-signed-char.patch b/sci-visualization/gnuplot/files/gnuplot-5.4.2-signed-char.patch new file mode 100644 index 000000000000..091dbbc88d8a --- /dev/null +++ b/sci-visualization/gnuplot/files/gnuplot-5.4.2-signed-char.patch @@ -0,0 +1,27 @@ +char defaults to unsigned on ARM, causing a test failure. +Patch from upstream. +https://bugs.gentoo.org/811927 +https://sourceforge.net/p/gnuplot/bugs/2467/ + +--- a/src/marching_cubes.h ++++ b/src/marching_cubes.h +@@ -58,7 +58,7 @@ static const short cube_edge_flags[256]= + First official public domain release + Version 3.00 dated 8-6-94 + */ +-static char triangle_table[256][13]= ++static signed char triangle_table[256][13]= + { + {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, + { 8, 3, 0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, +--- a/src/qt_table.h ++++ b/src/qt_table.h +@@ -10,7 +10,7 @@ + * collapsed them into quadrangles. + * So there is room for improvement in this table. + */ +-static char qt_table[256][13] = ++static signed char qt_table[256][13] = + { + { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, + { 8, 3, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, -- cgit v1.2.3-65-gdbad