summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2021-10-18 11:00:28 +0200
committerUlrich Müller <ulm@gentoo.org>2021-10-18 11:00:28 +0200
commita9bb1eef13332098b181a6b57cd60b695173d163 (patch)
treed58bd833a1594ccab518e954b7611a125dd32141 /sci-visualization
parentsys-block/targetcli-fb: add 2.1.54 (diff)
downloadgentoo-a9bb1eef13332098b181a6b57cd60b695173d163.tar.gz
gentoo-a9bb1eef13332098b181a6b57cd60b695173d163.tar.bz2
gentoo-a9bb1eef13332098b181a6b57cd60b695173d163.zip
sci-visualization/gnuplot: Fix test failure on arm
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 <ulm@gentoo.org>
Diffstat (limited to 'sci-visualization')
-rw-r--r--sci-visualization/gnuplot/files/gnuplot-5.4.2-signed-char.patch27
-rw-r--r--sci-visualization/gnuplot/gnuplot-5.4.2-r1.ebuild (renamed from sci-visualization/gnuplot/gnuplot-5.4.2.ebuild)1
2 files changed, 28 insertions, 0 deletions
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},
diff --git a/sci-visualization/gnuplot/gnuplot-5.4.2.ebuild b/sci-visualization/gnuplot/gnuplot-5.4.2-r1.ebuild
index fb9b802f3333..bc1482bf1048 100644
--- a/sci-visualization/gnuplot/gnuplot-5.4.2.ebuild
+++ b/sci-visualization/gnuplot/gnuplot-5.4.2-r1.ebuild
@@ -80,6 +80,7 @@ TEXMF="${EPREFIX}/usr/share/texmf-site"
PATCHES=(
"${FILESDIR}"/${PN}-5.0.6-no-picins.patch
+ "${FILESDIR}"/${P}-signed-char.patch
)
pkg_setup() {