public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-visualization/gnuplot/files/, sci-visualization/gnuplot/
Date: Mon, 18 Oct 2021 09:01:17 +0000 (UTC)	[thread overview]
Message-ID: <1634547628.a9bb1eef13332098b181a6b57cd60b695173d163.ulm@gentoo> (raw)

commit:     a9bb1eef13332098b181a6b57cd60b695173d163
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 18 09:00:28 2021 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Oct 18 09:00:28 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9bb1eef

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 <AT> gentoo.org>

 .../gnuplot/files/gnuplot-5.4.2-signed-char.patch  | 27 ++++++++++++++++++++++
 ...nuplot-5.4.2.ebuild => gnuplot-5.4.2-r1.ebuild} |  1 +
 2 files changed, 28 insertions(+)

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 00000000000..091dbbc88d8
--- /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
similarity index 99%
rename from sci-visualization/gnuplot/gnuplot-5.4.2.ebuild
rename to sci-visualization/gnuplot/gnuplot-5.4.2-r1.ebuild
index fb9b802f333..bc1482bf104 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() {


             reply	other threads:[~2021-10-18  9:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-18  9:01 Ulrich Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-03  9:57 [gentoo-commits] repo/gentoo:master commit in: sci-visualization/gnuplot/files/, sci-visualization/gnuplot/ Ulrich Müller
2023-10-09 19:31 Ulrich Müller
2023-05-29 16:56 Ulrich Müller
2021-08-03  6:08 Ulrich Müller
2020-12-23 11:10 Ulrich Müller
2020-11-07  4:07 Ulrich Müller
2020-11-06 12:57 Ulrich Müller
2019-07-23  7:19 Ulrich Müller
2018-01-12  8:37 Ulrich Müller
2017-11-19 11:46 Ulrich Müller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1634547628.a9bb1eef13332098b181a6b57cd60b695173d163.ulm@gentoo \
    --to=ulm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox