r45145 - in /packages/nlopt/trunk/debian: changelog patches/01_manpage_fixes.patch patches/02_spelling_fixes.patch patches/03_guile_fix_deprecated_calls.patch patches/series

trophime-guest at users.alioth.debian.org trophime-guest at users.alioth.debian.org
Wed Jun 27 10:06:36 UTC 2012


Author: trophime-guest
Date: Wed Jun 27 10:06:36 2012
New Revision: 45145

URL: http://svn.debian.org/wsvn/debian-science/?sc=1&rev=45145
Log:
add patches from Sergey B Kirpichev to get python/octave bindings to work

Added:
    packages/nlopt/trunk/debian/patches/01_manpage_fixes.patch
    packages/nlopt/trunk/debian/patches/02_spelling_fixes.patch
    packages/nlopt/trunk/debian/patches/03_guile_fix_deprecated_calls.patch
Modified:
    packages/nlopt/trunk/debian/changelog
    packages/nlopt/trunk/debian/patches/series

Modified: packages/nlopt/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/debian-science/packages/nlopt/trunk/debian/changelog?rev=45145&op=diff
==============================================================================
--- packages/nlopt/trunk/debian/changelog (original)
+++ packages/nlopt/trunk/debian/changelog Wed Jun 27 10:06:36 2012
@@ -1,3 +1,10 @@
+nlopt (2.2.4+dfsg-2) UNRELEASED; urgency=low
+
+  [Sergey B Kirpichev]
+  * Add patches to make nlopt bindings to work 
+
+ -- Christophe Trophime <christophe.trophime at lncmi.cnrs.fr>  Wed, 27 Jun 2012 12:05:11 +0200
+
 nlopt (2.2.4+dfsg-1) unstable; urgency=low
 
   * Initial release (Closes: #610623)

Added: packages/nlopt/trunk/debian/patches/01_manpage_fixes.patch
URL: http://svn.debian.org/wsvn/debian-science/packages/nlopt/trunk/debian/patches/01_manpage_fixes.patch?rev=45145&op=file
==============================================================================
--- packages/nlopt/trunk/debian/patches/01_manpage_fixes.patch (added)
+++ packages/nlopt/trunk/debian/patches/01_manpage_fixes.patch Wed Jun 27 10:06:36 2012
@@ -1,0 +1,45 @@
+Description: minor manpage fixes
+Author: Sergey B Kirpichev <skirpichev at gmail.com>
+
+---
+ api/nlopt.3 |    8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+--- a/api/nlopt.3
++++ b/api/nlopt.3
+@@ -23,7 +23,7 @@
+ set parameters of the optimization, constraints, and stopping
+ criteria.  Here, \fBnlopt_set_ftol_rel\fR is merely an example of a
+ possible stopping criterion.  You should link the resulting program
+-with the linker flags -lnlopt -lm on Unix.
++with the linker flags \-lnlopt \-lm on Unix.
+ .fi
+ .SH DESCRIPTION
+ NLopt is a library for nonlinear optimization.  It attempts to
+@@ -177,7 +177,7 @@
+ (unconstrained, i.e. a bound of infinity); it is possible to have
+ lower bounds but not upper bounds or vice versa.  Alternatively, the
+ user can call one of the above functions and explicitly pass a lower
+-bound of -HUGE_VAL and/or an upper bound of +HUGE_VAL for some design
++bound of \-HUGE_VAL and/or an upper bound of +HUGE_VAL for some design
+ variables to make them have no lower/upper bound, respectively.
+ (HUGE_VAL is the standard C constant for a floating-point infinity,
+ found in the math.h header file.)
+@@ -350,7 +350,7 @@
+ .BR NLOPT_GD_STOGO_RAND ,
+ which is a randomized version of the StoGO search scheme.  The StoGO
+ algorithms are only available if NLopt is compiled with C++ code
+-enabled, and should be linked via -lnlopt_cxx instead of -lnlopt (via
++enabled, and should be linked via \-lnlopt_cxx instead of \-lnlopt (via
+ a C++ compiler, in order to link the C++ standard libraries).
+ .TP 
+ .B NLOPT_LN_NELDERMEAD
+@@ -517,7 +517,7 @@
+ .I stopval
+ is found: stop minimizing when a value <= \fIstopval\fR is found, or
+ stop maximizing when a value >= \fIstopval\fR is found.  (Setting
+-\fIstopval\fR to -HUGE_VAL for minimizing or +HUGE_VAL for maximizing
++\fIstopval\fR to \-HUGE_VAL for minimizing or +HUGE_VAL for maximizing
+ disables this stopping criterion.)
+ .TP
+ .BI "nlopt_result nlopt_set_ftol_rel(nlopt_opt " "opt" ,

Added: packages/nlopt/trunk/debian/patches/02_spelling_fixes.patch
URL: http://svn.debian.org/wsvn/debian-science/packages/nlopt/trunk/debian/patches/02_spelling_fixes.patch?rev=45145&op=file
==============================================================================
--- packages/nlopt/trunk/debian/patches/02_spelling_fixes.patch (added)
+++ packages/nlopt/trunk/debian/patches/02_spelling_fixes.patch Wed Jun 27 10:06:36 2012
@@ -1,0 +1,30 @@
+Descriptions: spelling fixes to make lintian happy
+Author: Sergey B Kirpichev
+
+---
+ swig/nlopt-python.cpp |    2 +-
+ swig/numpy.i          |    2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+--- a/swig/nlopt-python.cpp
++++ b/swig/nlopt-python.cpp
+@@ -4491,7 +4491,7 @@
+     if (PyModule_Check(  py_obj)) return "module"      ;
+     if (PyInstance_Check(py_obj)) return "instance"    ;
+ 
+-    return "unkown type";
++    return "unknown type";
+   }
+ 
+   /* Given a NumPy typecode, return a string describing the type.
+--- a/swig/numpy.i
++++ b/swig/numpy.i
+@@ -145,7 +145,7 @@
+     if (PyModule_Check(  py_obj)) return "module"      ;
+     if (PyInstance_Check(py_obj)) return "instance"    ;
+ 
+-    return "unkown type";
++    return "unknown type";
+   }
+ 
+   /* Given a NumPy typecode, return a string describing the type.

Added: packages/nlopt/trunk/debian/patches/03_guile_fix_deprecated_calls.patch
URL: http://svn.debian.org/wsvn/debian-science/packages/nlopt/trunk/debian/patches/03_guile_fix_deprecated_calls.patch?rev=45145&op=file
==============================================================================
--- packages/nlopt/trunk/debian/patches/03_guile_fix_deprecated_calls.patch (added)
+++ packages/nlopt/trunk/debian/patches/03_guile_fix_deprecated_calls.patch Wed Jun 27 10:06:36 2012
@@ -1,0 +1,433 @@
+Description: Fix some deprecated calls in autogenerated nlopt-guile.cpp
+Author: Sergey B Kirpichev <skirpichev at gmail.com>
+
+ SCM_VECTORP is deprecated.  Use scm_is_vector instead.
+ SCM_VECTOR_LENGTH is deprecated.  Use scm_c_vector_length instead.
+
+---
+ swig/nlopt-guile.cpp |  134 +++++++++++++++++++++++++--------------------------
+ 1 file changed, 67 insertions(+), 67 deletions(-)
+
+--- a/swig/nlopt-guile.cpp
++++ b/swig/nlopt-guile.cpp
+@@ -1475,8 +1475,8 @@
+   std::vector< double > *result = 0 ;
+   
+   {
+-    if (SCM_VECTORP(argv[0])) {
+-      unsigned long size = SCM_VECTOR_LENGTH(argv[0]);
++    if (scm_is_vector(argv[0])) {
++      unsigned long size = scm_c_vector_length(argv[0]);
+       temp1 = std::vector<double >(size);
+       arg1 = &temp1;
+       for (unsigned long i=0; i<size; i++) {
+@@ -1491,7 +1491,7 @@
+       arg1 = &temp1;
+     } else if (SCM_CONSP(argv[0])) {
+       SCM v = scm_vector(argv[0]);
+-      unsigned long size = SCM_VECTOR_LENGTH(v);
++      unsigned long size = scm_c_vector_length(v);
+       temp1 = std::vector<double >(size);
+       arg1 = &temp1;
+       for (unsigned long i=0; i<size; i++) {
+@@ -1538,8 +1538,8 @@
+     int _v;
+     {
+       /* native sequence? */
+-      if (SCM_VECTORP(argv[0])) {
+-        unsigned int size = SCM_VECTOR_LENGTH(argv[0]);
++      if (scm_is_vector(argv[0])) {
++        unsigned int size = scm_c_vector_length(argv[0]);
+         if (size == 0) {
+           /* an empty sequence can be of any type */
+           _v = 1;
+@@ -1599,8 +1599,8 @@
+   unsigned int result;
+   
+   {
+-    if (SCM_VECTORP(s_0)) {
+-      unsigned long size = SCM_VECTOR_LENGTH(s_0);
++    if (scm_is_vector(s_0)) {
++      unsigned long size = scm_c_vector_length(s_0);
+       temp1 = std::vector<double >(size);
+       arg1 = &temp1;
+       for (unsigned long i=0; i<size; i++) {
+@@ -1615,7 +1615,7 @@
+       arg1 = &temp1;
+     } else if (SCM_CONSP(s_0)) {
+       SCM v = scm_vector(s_0);
+-      unsigned long size = SCM_VECTOR_LENGTH(v);
++      unsigned long size = scm_c_vector_length(v);
+       temp1 = std::vector<double >(size);
+       arg1 = &temp1;
+       for (unsigned long i=0; i<size; i++) {
+@@ -1651,8 +1651,8 @@
+   bool result;
+   
+   {
+-    if (SCM_VECTORP(s_0)) {
+-      unsigned long size = SCM_VECTOR_LENGTH(s_0);
++    if (scm_is_vector(s_0)) {
++      unsigned long size = scm_c_vector_length(s_0);
+       temp1 = std::vector<double >(size);
+       arg1 = &temp1;
+       for (unsigned long i=0; i<size; i++) {
+@@ -1667,7 +1667,7 @@
+       arg1 = &temp1;
+     } else if (SCM_CONSP(s_0)) {
+       SCM v = scm_vector(s_0);
+-      unsigned long size = SCM_VECTOR_LENGTH(v);
++      unsigned long size = scm_c_vector_length(v);
+       temp1 = std::vector<double >(size);
+       arg1 = &temp1;
+       for (unsigned long i=0; i<size; i++) {
+@@ -2998,8 +2998,8 @@
+     arg1 = (nlopt::opt *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_nlopt__opt, 1, 0);
+   }
+   {
+-    if (SCM_VECTORP(argv[1])) {
+-      unsigned long size = SCM_VECTOR_LENGTH(argv[1]);
++    if (scm_is_vector(argv[1])) {
++      unsigned long size = scm_c_vector_length(argv[1]);
+       temp2 = std::vector<double >(size);
+       arg2 = &temp2;
+       for (unsigned long i=0; i<size; i++) {
+@@ -3014,7 +3014,7 @@
+       arg2 = &temp2;
+     } else if (SCM_CONSP(argv[1])) {
+       SCM v = scm_vector(argv[1]);
+-      unsigned long size = SCM_VECTOR_LENGTH(v);
++      unsigned long size = scm_c_vector_length(v);
+       temp2 = std::vector<double >(size);
+       arg2 = &temp2;
+       for (unsigned long i=0; i<size; i++) {
+@@ -3086,8 +3086,8 @@
+     if (_v) {
+       {
+         /* native sequence? */
+-        if (SCM_VECTORP(argv[1])) {
+-          unsigned int size = SCM_VECTOR_LENGTH(argv[1]);
++        if (scm_is_vector(argv[1])) {
++          unsigned int size = scm_c_vector_length(argv[1]);
+           if (size == 0) {
+             /* an empty sequence can be of any type */
+             _v = 1;
+@@ -3933,8 +3933,8 @@
+     arg3 = (void *)SWIG_MustGetPtr(argv[2], NULL, 3, 0);
+   }
+   {
+-    if (SCM_VECTORP(argv[3])) {
+-      unsigned long size = SCM_VECTOR_LENGTH(argv[3]);
++    if (scm_is_vector(argv[3])) {
++      unsigned long size = scm_c_vector_length(argv[3]);
+       temp4 = std::vector<double >(size);
+       arg4 = &temp4;
+       for (unsigned long i=0; i<size; i++) {
+@@ -3949,7 +3949,7 @@
+       arg4 = &temp4;
+     } else if (SCM_CONSP(argv[3])) {
+       SCM v = scm_vector(argv[3]);
+-      unsigned long size = SCM_VECTOR_LENGTH(v);
++      unsigned long size = scm_c_vector_length(v);
+       temp4 = std::vector<double >(size);
+       arg4 = &temp4;
+       for (unsigned long i=0; i<size; i++) {
+@@ -4221,8 +4221,8 @@
+     arg3 = (void *)SWIG_MustGetPtr(argv[2], NULL, 3, 0);
+   }
+   {
+-    if (SCM_VECTORP(argv[3])) {
+-      unsigned long size = SCM_VECTOR_LENGTH(argv[3]);
++    if (scm_is_vector(argv[3])) {
++      unsigned long size = scm_c_vector_length(argv[3]);
+       temp4 = std::vector<double >(size);
+       arg4 = &temp4;
+       for (unsigned long i=0; i<size; i++) {
+@@ -4237,7 +4237,7 @@
+       arg4 = &temp4;
+     } else if (SCM_CONSP(argv[3])) {
+       SCM v = scm_vector(argv[3]);
+-      unsigned long size = SCM_VECTOR_LENGTH(v);
++      unsigned long size = scm_c_vector_length(v);
+       temp4 = std::vector<double >(size);
+       arg4 = &temp4;
+       for (unsigned long i=0; i<size; i++) {
+@@ -4831,8 +4831,8 @@
+     arg5 = *argp5;
+   }
+   {
+-    if (SCM_VECTORP(argv[5])) {
+-      unsigned long size = SCM_VECTOR_LENGTH(argv[5]);
++    if (scm_is_vector(argv[5])) {
++      unsigned long size = scm_c_vector_length(argv[5]);
+       temp6 = std::vector<double >(size);
+       arg6 = &temp6;
+       for (unsigned long i=0; i<size; i++) {
+@@ -4847,7 +4847,7 @@
+       arg6 = &temp6;
+     } else if (SCM_CONSP(argv[5])) {
+       SCM v = scm_vector(argv[5]);
+-      unsigned long size = SCM_VECTOR_LENGTH(v);
++      unsigned long size = scm_c_vector_length(v);
+       temp6 = std::vector<double >(size);
+       arg6 = &temp6;
+       for (unsigned long i=0; i<size; i++) {
+@@ -4913,8 +4913,8 @@
+         if (_v) {
+           {
+             /* native sequence? */
+-            if (SCM_VECTORP(argv[3])) {
+-              unsigned int size = SCM_VECTOR_LENGTH(argv[3]);
++            if (scm_is_vector(argv[3])) {
++              unsigned int size = scm_c_vector_length(argv[3]);
+               if (size == 0) {
+                 /* an empty sequence can be of any type */
+                 _v = 1;
+@@ -4980,8 +4980,8 @@
+             if (_v) {
+               {
+                 /* native sequence? */
+-                if (SCM_VECTORP(argv[5])) {
+-                  unsigned int size = SCM_VECTOR_LENGTH(argv[5]);
++                if (scm_is_vector(argv[5])) {
++                  unsigned int size = scm_c_vector_length(argv[5]);
+                   if (size == 0) {
+                     /* an empty sequence can be of any type */
+                     _v = 1;
+@@ -5057,8 +5057,8 @@
+     arg5 = *argp5;
+   }
+   {
+-    if (SCM_VECTORP(argv[5])) {
+-      unsigned long size = SCM_VECTOR_LENGTH(argv[5]);
++    if (scm_is_vector(argv[5])) {
++      unsigned long size = scm_c_vector_length(argv[5]);
+       temp6 = std::vector<double >(size);
+       arg6 = &temp6;
+       for (unsigned long i=0; i<size; i++) {
+@@ -5073,7 +5073,7 @@
+       arg6 = &temp6;
+     } else if (SCM_CONSP(argv[5])) {
+       SCM v = scm_vector(argv[5]);
+-      unsigned long size = SCM_VECTOR_LENGTH(v);
++      unsigned long size = scm_c_vector_length(v);
+       temp6 = std::vector<double >(size);
+       arg6 = &temp6;
+       for (unsigned long i=0; i<size; i++) {
+@@ -5139,8 +5139,8 @@
+         if (_v) {
+           {
+             /* native sequence? */
+-            if (SCM_VECTORP(argv[3])) {
+-              unsigned int size = SCM_VECTOR_LENGTH(argv[3]);
++            if (scm_is_vector(argv[3])) {
++              unsigned int size = scm_c_vector_length(argv[3]);
+               if (size == 0) {
+                 /* an empty sequence can be of any type */
+                 _v = 1;
+@@ -5206,8 +5206,8 @@
+             if (_v) {
+               {
+                 /* native sequence? */
+-                if (SCM_VECTORP(argv[5])) {
+-                  unsigned int size = SCM_VECTOR_LENGTH(argv[5]);
++                if (scm_is_vector(argv[5])) {
++                  unsigned int size = scm_c_vector_length(argv[5]);
+                   if (size == 0) {
+                     /* an empty sequence can be of any type */
+                     _v = 1;
+@@ -5386,8 +5386,8 @@
+     arg1 = (nlopt::opt *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_nlopt__opt, 1, 0);
+   }
+   {
+-    if (SCM_VECTORP(argv[1])) {
+-      unsigned long size = SCM_VECTOR_LENGTH(argv[1]);
++    if (scm_is_vector(argv[1])) {
++      unsigned long size = scm_c_vector_length(argv[1]);
+       temp2 = std::vector<double >(size);
+       arg2 = &temp2;
+       for (unsigned long i=0; i<size; i++) {
+@@ -5402,7 +5402,7 @@
+       arg2 = &temp2;
+     } else if (SCM_CONSP(argv[1])) {
+       SCM v = scm_vector(argv[1]);
+-      unsigned long size = SCM_VECTOR_LENGTH(v);
++      unsigned long size = scm_c_vector_length(v);
+       temp2 = std::vector<double >(size);
+       arg2 = &temp2;
+       for (unsigned long i=0; i<size; i++) {
+@@ -5466,8 +5466,8 @@
+     if (_v) {
+       {
+         /* native sequence? */
+-        if (SCM_VECTORP(argv[1])) {
+-          unsigned int size = SCM_VECTOR_LENGTH(argv[1]);
++        if (scm_is_vector(argv[1])) {
++          unsigned int size = scm_c_vector_length(argv[1]);
+           if (size == 0) {
+             /* an empty sequence can be of any type */
+             _v = 1;
+@@ -5642,8 +5642,8 @@
+     arg1 = (nlopt::opt *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_nlopt__opt, 1, 0);
+   }
+   {
+-    if (SCM_VECTORP(argv[1])) {
+-      unsigned long size = SCM_VECTOR_LENGTH(argv[1]);
++    if (scm_is_vector(argv[1])) {
++      unsigned long size = scm_c_vector_length(argv[1]);
+       temp2 = std::vector<double >(size);
+       arg2 = &temp2;
+       for (unsigned long i=0; i<size; i++) {
+@@ -5658,7 +5658,7 @@
+       arg2 = &temp2;
+     } else if (SCM_CONSP(argv[1])) {
+       SCM v = scm_vector(argv[1]);
+-      unsigned long size = SCM_VECTOR_LENGTH(v);
++      unsigned long size = scm_c_vector_length(v);
+       temp2 = std::vector<double >(size);
+       arg2 = &temp2;
+       for (unsigned long i=0; i<size; i++) {
+@@ -5722,8 +5722,8 @@
+     if (_v) {
+       {
+         /* native sequence? */
+-        if (SCM_VECTORP(argv[1])) {
+-          unsigned int size = SCM_VECTOR_LENGTH(argv[1]);
++        if (scm_is_vector(argv[1])) {
++          unsigned int size = scm_c_vector_length(argv[1]);
+           if (size == 0) {
+             /* an empty sequence can be of any type */
+             _v = 1;
+@@ -6118,8 +6118,8 @@
+     arg1 = (nlopt::opt *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_nlopt__opt, 1, 0);
+   }
+   {
+-    if (SCM_VECTORP(argv[1])) {
+-      unsigned long size = SCM_VECTOR_LENGTH(argv[1]);
++    if (scm_is_vector(argv[1])) {
++      unsigned long size = scm_c_vector_length(argv[1]);
+       temp2 = std::vector<double >(size);
+       arg2 = &temp2;
+       for (unsigned long i=0; i<size; i++) {
+@@ -6134,7 +6134,7 @@
+       arg2 = &temp2;
+     } else if (SCM_CONSP(argv[1])) {
+       SCM v = scm_vector(argv[1]);
+-      unsigned long size = SCM_VECTOR_LENGTH(v);
++      unsigned long size = scm_c_vector_length(v);
+       temp2 = std::vector<double >(size);
+       arg2 = &temp2;
+       for (unsigned long i=0; i<size; i++) {
+@@ -6198,8 +6198,8 @@
+     if (_v) {
+       {
+         /* native sequence? */
+-        if (SCM_VECTORP(argv[1])) {
+-          unsigned int size = SCM_VECTOR_LENGTH(argv[1]);
++        if (scm_is_vector(argv[1])) {
++          unsigned int size = scm_c_vector_length(argv[1]);
+           if (size == 0) {
+             /* an empty sequence can be of any type */
+             _v = 1;
+@@ -6674,8 +6674,8 @@
+     arg1 = (nlopt::opt *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_nlopt__opt, 1, 0);
+   }
+   {
+-    if (SCM_VECTORP(argv[1])) {
+-      unsigned long size = SCM_VECTOR_LENGTH(argv[1]);
++    if (scm_is_vector(argv[1])) {
++      unsigned long size = scm_c_vector_length(argv[1]);
+       temp2 = std::vector<double >(size);
+       arg2 = &temp2;
+       for (unsigned long i=0; i<size; i++) {
+@@ -6690,7 +6690,7 @@
+       arg2 = &temp2;
+     } else if (SCM_CONSP(argv[1])) {
+       SCM v = scm_vector(argv[1]);
+-      unsigned long size = SCM_VECTOR_LENGTH(v);
++      unsigned long size = scm_c_vector_length(v);
+       temp2 = std::vector<double >(size);
+       arg2 = &temp2;
+       for (unsigned long i=0; i<size; i++) {
+@@ -6754,8 +6754,8 @@
+     if (_v) {
+       {
+         /* native sequence? */
+-        if (SCM_VECTORP(argv[1])) {
+-          unsigned int size = SCM_VECTOR_LENGTH(argv[1]);
++        if (scm_is_vector(argv[1])) {
++          unsigned int size = scm_c_vector_length(argv[1]);
+           if (size == 0) {
+             /* an empty sequence can be of any type */
+             _v = 1;
+@@ -6805,8 +6805,8 @@
+     arg1 = (nlopt::opt *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_nlopt__opt, 1, 0);
+   }
+   {
+-    if (SCM_VECTORP(s_1)) {
+-      unsigned long size = SCM_VECTOR_LENGTH(s_1);
++    if (scm_is_vector(s_1)) {
++      unsigned long size = scm_c_vector_length(s_1);
+       temp2 = std::vector<double >(size);
+       arg2 = &temp2;
+       for (unsigned long i=0; i<size; i++) {
+@@ -6821,7 +6821,7 @@
+       arg2 = &temp2;
+     } else if (SCM_CONSP(s_1)) {
+       SCM v = scm_vector(s_1);
+-      unsigned long size = SCM_VECTOR_LENGTH(v);
++      unsigned long size = scm_c_vector_length(v);
+       temp2 = std::vector<double >(size);
+       arg2 = &temp2;
+       for (unsigned long i=0; i<size; i++) {
+@@ -6873,8 +6873,8 @@
+     arg1 = (nlopt::opt *)SWIG_MustGetPtr(argv[0], SWIGTYPE_p_nlopt__opt, 1, 0);
+   }
+   {
+-    if (SCM_VECTORP(argv[1])) {
+-      unsigned long size = SCM_VECTOR_LENGTH(argv[1]);
++    if (scm_is_vector(argv[1])) {
++      unsigned long size = scm_c_vector_length(argv[1]);
+       temp2 = std::vector<double >(size);
+       arg2 = &temp2;
+       for (unsigned long i=0; i<size; i++) {
+@@ -6889,7 +6889,7 @@
+       arg2 = &temp2;
+     } else if (SCM_CONSP(argv[1])) {
+       SCM v = scm_vector(argv[1]);
+-      unsigned long size = SCM_VECTOR_LENGTH(v);
++      unsigned long size = scm_c_vector_length(v);
+       temp2 = std::vector<double >(size);
+       arg2 = &temp2;
+       for (unsigned long i=0; i<size; i++) {
+@@ -6962,8 +6962,8 @@
+     if (_v) {
+       {
+         /* native sequence? */
+-        if (SCM_VECTORP(argv[1])) {
+-          unsigned int size = SCM_VECTOR_LENGTH(argv[1]);
++        if (scm_is_vector(argv[1])) {
++          unsigned int size = scm_c_vector_length(argv[1]);
+           if (size == 0) {
+             /* an empty sequence can be of any type */
+             _v = 1;
+@@ -7021,8 +7021,8 @@
+     arg1 = (nlopt::opt *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_nlopt__opt, 1, 0);
+   }
+   {
+-    if (SCM_VECTORP(s_1)) {
+-      unsigned long size = SCM_VECTOR_LENGTH(s_1);
++    if (scm_is_vector(s_1)) {
++      unsigned long size = scm_c_vector_length(s_1);
+       temp2 = std::vector<double >(size);
+       arg2 = &temp2;
+       for (unsigned long i=0; i<size; i++) {
+@@ -7037,7 +7037,7 @@
+       arg2 = &temp2;
+     } else if (SCM_CONSP(s_1)) {
+       SCM v = scm_vector(s_1);
+-      unsigned long size = SCM_VECTOR_LENGTH(v);
++      unsigned long size = scm_c_vector_length(v);
+       temp2 = std::vector<double >(size);
+       arg2 = &temp2;
+       for (unsigned long i=0; i<size; i++) {

Modified: packages/nlopt/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/debian-science/packages/nlopt/trunk/debian/patches/series?rev=45145&op=diff
==============================================================================
--- packages/nlopt/trunk/debian/patches/series (original)
+++ packages/nlopt/trunk/debian/patches/series Wed Jun 27 10:06:36 2012
@@ -1,2 +1,5 @@
 swig.patch
 configure.patch
+02_spelling_fixes.patch
+01_manpage_fixes.patch
+03_guile_fix_deprecated_calls.patch




More information about the debian-science-commits mailing list