dev-octave/strings: add 1.2.0, drop 1.2.0_p20211128

Closes: https://bugs.gentoo.org/843539
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2022-05-12 14:41:27 +02:00
parent 1c284417dc
commit 66a7c2b1d0
4 changed files with 51 additions and 11 deletions

View File

@@ -0,0 +1,30 @@
Description: Build against Octave 6.1
Replace the calls to the deprecated function toascii by double.
Author: Rafael Laboissière <rafael@debian.org>
Origin: upstream, https://sourceforge.net/p/octave/strings/ci/2db1dbb75557eef94605cb4ac682783ab78ac8d8/
Bug-Debian: https://bugs.debian.org/976200
Forwarded: not-needed
Last-Update: 2020-12-01
--- octave-strings-1.2.0.orig/inst/base64encode.m
+++ octave-strings-1.2.0/inst/base64encode.m
@@ -46,7 +46,7 @@ function Y = base64encode (X, row_vector
endif
if (ischar (X))
- X = toascii (X);
+ X = double (X);
endif
if (any (X != fix (X)) || any (X < 0 | X > 255))
--- octave-strings-1.2.0.orig/inst/base64decode.m
+++ octave-strings-1.2.0/inst/base64decode.m
@@ -60,7 +60,7 @@ function z = base64decode (X, as_string)
Y=[];
end
- X = toascii(X);
+ X = double(X);
Xa= X;
## Work backwards. Starting at step in table,

View File

@@ -0,0 +1,16 @@
Description: Use err_* functions instead of the deprecated gripes_*
Author: Rafael Laboissiere <rafael@debian.org>
Forwarded: https://savannah.gnu.org/bugs/index.php?57000
Last-Update: 2019-10-05
--- octave-strings-1.2.0.orig/src/pcregexp.cc
+++ octave-strings-1.2.0/src/pcregexp.cc
@@ -49,7 +49,7 @@ Check your system's @code{pcre} man page
std::string pattern = args(0).string_value();
std::string input = args(1).string_value();
if (error_state) {
- gripe_wrong_type_arg("pcregexp", args(0));
+ err_wrong_type_arg("pcregexp", args(0));
return retval;
}