public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:master commit in: dev-octave/quaternion/files/, dev-octave/quaternion/
@ 2022-05-10  7:49 Florian Schmaus
  0 siblings, 0 replies; only message in thread
From: Florian Schmaus @ 2022-05-10  7:49 UTC (permalink / raw
  To: gentoo-commits

commit:     decb9691ca5461e2d6a3386a09947a01044eb6cb
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Tue May 10 00:20:53 2022 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Tue May 10 00:21:30 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=decb9691

dev-octave/quaternion: add patch from debian

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 .../quaternion-2.4.0-build-against-octave-6.patch  | 23 ++++++++++++++++++++++
 dev-octave/quaternion/quaternion-2.4.0.ebuild      |  2 ++
 2 files changed, 25 insertions(+)

diff --git a/dev-octave/quaternion/files/quaternion-2.4.0-build-against-octave-6.patch b/dev-octave/quaternion/files/quaternion-2.4.0-build-against-octave-6.patch
new file mode 100644
index 000000000..756f872dc
--- /dev/null
+++ b/dev-octave/quaternion/files/quaternion-2.4.0-build-against-octave-6.patch
@@ -0,0 +1,23 @@
+Description: Build against Octave 6.1
+ Replace deprecated methods is_numeric_type, is_real_type, and
+ is_bool_type by isnumeric, isreal, and islogical, respectively.
+Author: Rafael Laboissière <rafael@debian.org>
+Origin: other, https://hg.octave.org/mxe-octave/file/tip/src/of-quaternion-2-dev-fixes.patch
+Bug: https://savannah.gnu.org/bugs/?59163
+Bug-Debian: https://bugs.debian.org/976203
+Forwarded: not-needed
+Last-Update: 2020-12-01
+
+--- octave-quaternion-2.4.0.orig/src/is_real_array.cc
++++ octave-quaternion-2.4.0/src/is_real_array.cc
+@@ -46,8 +46,8 @@ Avoid nasty stuff like @code{true = isre
+         {
+             // args(i).ndims () should be always >= 2
+             if (args(i).ndims () < 2
+-                || ! ((args(i).is_numeric_type () && args(i).is_real_type ())
+-                      || args(i).is_bool_type ()))
++                || ! ((args(i).isnumeric () && args(i).isreal ())
++                      || args(i).islogical ()))
+             {
+                 retval = false;
+                 break;

diff --git a/dev-octave/quaternion/quaternion-2.4.0.ebuild b/dev-octave/quaternion/quaternion-2.4.0.ebuild
index d8ef1a095..c84091f9d 100644
--- a/dev-octave/quaternion/quaternion-2.4.0.ebuild
+++ b/dev-octave/quaternion/quaternion-2.4.0.ebuild
@@ -14,3 +14,5 @@ KEYWORDS="~amd64"
 
 DEPEND=">=sci-mathematics/octave-3.8.0"
 RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-build-against-octave-6.patch" )


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-10  7:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-10  7:49 [gentoo-commits] repo/proj/guru:master commit in: dev-octave/quaternion/files/, dev-octave/quaternion/ Florian Schmaus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox