mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 13:03:31 -04:00
dev-octave/quaternion: add patch from debian
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -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;
|
||||||
@@ -14,3 +14,5 @@ KEYWORDS="~amd64"
|
|||||||
|
|
||||||
DEPEND=">=sci-mathematics/octave-3.8.0"
|
DEPEND=">=sci-mathematics/octave-3.8.0"
|
||||||
RDEPEND="${DEPEND}"
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
PATCHES=( "${FILESDIR}/${P}-build-against-octave-6.patch" )
|
||||||
|
|||||||
Reference in New Issue
Block a user