File: no-gsl_xxmatrix_uchar.patch

package info (click to toggle)
libmath-gsl-perl 0.49-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 192,040 kB
  • sloc: ansic: 895,452; perl: 24,787; makefile: 12
file content (103 lines) | stat: -rw-r--r-- 4,306 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
Description: remove missing function gsl_matrix_uchar_norm1
 causes failure on architectures with unsigned char
Author: Damyan Ivanov <dmn@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=994736

--- a/inc/Ver2Func.pm
+++ b/inc/Ver2Func.pm
@@ -413,22 +413,15 @@
               ^gsl_vector_float_sum$
               ^gsl_matrix_norm1$
               ^gsl_matrix_int_norm1$
-              ^gsl_matrix_uchar_norm1$
-              ^gsl_matrix_ushort_norm1$
-              ^gsl_matrix_ulong_norm1$
-              ^gsl_matrix_char_norm1$
               ^gsl_matrix_float_norm1$
               ^gsl_matrix_short_norm1$
               ^gsl_matrix_long_double_norm1$
               ^gsl_matrix_long_norm1$
-              ^gsl_matrix_uint_norm1$
               ^gsl_matrix_scale_rows$
               ^gsl_matrix_complex_float_scale_rows$
               ^gsl_matrix_complex_scale_rows$
-              ^gsl_matrix_uchar_scale_rows$
               ^gsl_matrix_ushort_scale_rows$
               ^gsl_matrix_ulong_scale_rows$
-              ^gsl_matrix_char_scale_rows$
               ^gsl_matrix_float_scale_rows$
               ^gsl_matrix_short_scale_rows$
               ^gsl_matrix_complex_long_double_scale_rows$
@@ -437,10 +430,8 @@
               ^gsl_matrix_int_scale_rows$
               ^gsl_matrix_scale_columns$
               ^gsl_matrix_complex_scale_columns$
-              ^gsl_matrix_uchar_scale_columns$
               ^gsl_matrix_ushort_scale_columns$
               ^gsl_matrix_ulong_scale_columns$
-              ^gsl_matrix_char_scale_columns$
               ^gsl_matrix_float_scale_columns$
               ^gsl_matrix_short_scale_columns$
               ^gsl_matrix_complex_long_double_scale_columns$
@@ -456,8 +447,6 @@
               ^gsl_spmatrix_float_dense_add$
               ^gsl_spmatrix_long_dense_add$
               ^gsl_spmatrix_complex_float_dense_add$
-              ^gsl_spmatrix_char_dense_add$
-              ^gsl_spmatrix_uchar_dense_add$
               ^gsl_spmatrix_ulong_dense_add$
               ^gsl_spmatrix_short_dense_add$
               ^gsl_spmatrix_ushort_dense_add$
@@ -471,8 +460,6 @@
               ^gsl_spmatrix_float_dense_sub$
               ^gsl_spmatrix_long_dense_sub$
               ^gsl_spmatrix_complex_float_dense_sub$
-              ^gsl_spmatrix_char_dense_sub$
-              ^gsl_spmatrix_uchar_dense_sub$
               ^gsl_spmatrix_ulong_dense_sub$
               ^gsl_spmatrix_short_dense_sub$
               ^gsl_spmatrix_ushort_dense_sub$
@@ -483,13 +470,8 @@
               ^gsl_spmatrix_int_norm1$
               ^gsl_spmatrix_float_norm1$
               ^gsl_spmatrix_long_norm1$
-              ^gsl_spmatrix_char_norm1$
-              ^gsl_spmatrix_ulong_norm1$
               ^gsl_spmatrix_short_norm1$
-              ^gsl_spmatrix_ushort_norm1$
               ^gsl_spmatrix_long_double_norm1$
-              ^gsl_spmatrix_uint_norm1$
-              ^gsl_spmatrix_uchar_norm1$
               ^gsl_linalg_complex_QR_solve_r$
               ^gsl_linalg_complex_QR_solve$
               ^gsl_linalg_complex_QR_svx$
--- a/swig/SparseMatrix.i
+++ b/swig/SparseMatrix.i
@@ -11,7 +11,11 @@
 
 #if MG_GSL_NUM_VERSION >= 2006
 // ignore gsl_spmatrix_uchar_norm1, gsl_spmatrix_char_norm1, ...
-  %rename("%(regex:/^gsl_spmatrix_u.*_norm1$/$ignore/)s") "";
+  %rename ("%(regex:/^gsl_spmatrix_char.*/$ignore/)s") "";
+  %rename ("%(regex:/^gsl_spmatrix_uchar.*/$ignore/)s") "";
+  %rename ("%(regex:/^gsl_spmatrix_uint.*/$ignore/)s") "";
+  %rename ("%(regex:/^gsl_spmatrix_ulong.*/$ignore/)s") "";
+  %rename ("%(regex:/^gsl_spmatrix_ushort.*/$ignore/)s") "";
   %include "gsl/gsl_spmatrix.h"
   %include "gsl/gsl_spmatrix_double.h"
   %include "gsl/gsl_spmatrix_complex_long_double.h"
--- a/swig/Matrix.i
+++ b/swig/Matrix.i
@@ -5,6 +5,12 @@
 %include "gsl_typemaps.i"
 %include "renames.i"
 
+%rename ("%(regex:/^gsl_matrix_char.*/$ignore/)s") "";
+%rename ("%(regex:/^gsl_matrix_uchar.*/$ignore/)s") "";
+%rename ("%(regex:/^gsl_matrix_uint.*/$ignore/)s") "";
+%rename ("%(regex:/^gsl_matrix_ulong.*/$ignore/)s") "";
+%rename ("%(regex:/^gsl_matrix_ushort.*/$ignore/)s") "";
+
 %apply int *OUTPUT { size_t *imin, size_t *imax, size_t *jmin, size_t *jmax };
 %apply double *OUTPUT { double * min_out, double * max_out };