[med-svn] r20518 - trunk/packages/amide/trunk/debian/patches

Gert Wollny gert-guest at moszumanska.debian.org
Sun Nov 22 14:08:51 UTC 2015


Author: gert-guest
Date: 2015-11-22 14:08:41 +0000 (Sun, 22 Nov 2015)
New Revision: 20518

Modified:
   trunk/packages/amide/trunk/debian/patches/gsl_2x.patch
Log:

Update GSL patch to not bail out on gauss_fit if not enough 
data points are available.



Modified: trunk/packages/amide/trunk/debian/patches/gsl_2x.patch
===================================================================
--- trunk/packages/amide/trunk/debian/patches/gsl_2x.patch	2015-11-22 13:32:46 UTC (rev 20517)
+++ trunk/packages/amide/trunk/debian/patches/gsl_2x.patch	2015-11-22 14:08:41 UTC (rev 20518)
@@ -4,7 +4,7 @@
 Bug-Debian: http://bugs.debian.org/805748
 
 --- amide-1.0.5.old/src/tb_profile.c	2015-11-22 14:00:16.361526795 +0100
-+++ amide-1.0.5/src/tb_profile.c	2015-11-22 14:14:58.993881660 +0100
++++ amide-1.0.5/src/tb_profile.c	2015-11-22 15:00:09.250887330 +0100
 @@ -32,6 +32,7 @@
  #include "ui_common.h"
  #ifdef AMIDE_LIBGSL_SUPPORT
@@ -21,7 +21,16 @@
    gsl_multifit_function_fdf fdf;
    gsl_vector * init_p;
    gint iter;
-@@ -668,8 +670,16 @@
+@@ -644,6 +646,8 @@
+       gsl_vector_set(init_p, j++, result->min_y); /* b - DC val */
+ 
+     /* alloc the solver */
++    g_return_if_fail(result->line->len < num_p); 
++
+     solver = gsl_multifit_fdfsolver_alloc (gsl_multifit_fdfsolver_lmder,result->line->len, num_p);
+     g_return_if_fail(solver != NULL);
+ 
+@@ -668,8 +672,16 @@
      }
      while ((status == GSL_CONTINUE) && (iter < 100));
  




More information about the debian-med-commit mailing list