summaryrefslogtreecommitdiffstats
path: root/academic/root/root_gsl2.patch
diff options
context:
space:
mode:
author David Spencer <baildon.research@googlemail.com>2016-04-16 14:21:05 +0100
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2016-04-19 22:47:49 +0700
commitf7308a3f13fe61ba6fd3aa3ce6dd1726c761cb0c (patch)
tree45d2e5c0b6fc0908786986621201dc318a20b92a /academic/root/root_gsl2.patch
parentd8957c2de20aa1b68e2c49d5992acb82cb31544f (diff)
downloadslackbuilds-f7308a3f13fe61ba6fd3aa3ce6dd1726c761cb0c.tar.gz
slackbuilds-f7308a3f13fe61ba6fd3aa3ce6dd1726c761cb0c.tar.xz
academic/root: Updated for version 5.34.36.
Fixes build failure with gcc-5.3 on i586. Enabled gsl and fftw by default, since they are both in Slackware. Moved from /usr/ROOT to /opt/ROOT. Script cleanups.
Diffstat (limited to '')
-rw-r--r--academic/root/root_gsl2.patch42
1 files changed, 0 insertions, 42 deletions
diff --git a/academic/root/root_gsl2.patch b/academic/root/root_gsl2.patch
deleted file mode 100644
index 8f049d7e03..0000000000
--- a/academic/root/root_gsl2.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-diff -u -r root/math/mathmore/src/GSLMultiFit.h root-patched/math/mathmore/src/GSLMultiFit.h
---- root/math/mathmore/src/GSLMultiFit.h 2015-06-23 16:56:20.000000000 +0100
-+++ root-patched/math/mathmore/src/GSLMultiFit.h 2015-11-18 22:30:54.300681289 +0000
-@@ -32,6 +32,7 @@
- #include "gsl/gsl_multifit_nlin.h"
- #include "gsl/gsl_blas.h"
- #include "GSLMultiFitFunctionWrapper.h"
-+#include <gsl/gsl_version.h>
-
- #include "Math/IFunction.h"
- #include <string>
-@@ -139,7 +140,14 @@
- /// gradient value at the minimum
- const double * Gradient() const {
- if (fSolver == 0) return 0;
-- gsl_multifit_gradient(fSolver->J, fSolver->f,fVec);
-+#if GSL_MAJOR_VERSION >=2
-+ gsl_matrix *J=gsl_matrix_alloc(fSolver->fdf->n, fSolver->fdf->p);
-+ gsl_multifit_fdfsolver_jac (fSolver, J);
-+ gsl_multifit_gradient(J, fSolver->f, fVec);
-+ gsl_matrix_free(J);
-+#else
-+ gsl_multifit_gradient(fSolver->J, fSolver->f, fVec);
-+#endif
- return fVec->data;
- }
-
-@@ -150,7 +158,14 @@
- unsigned int npar = fSolver->fdf->p;
- fCov = gsl_matrix_alloc( npar, npar );
- static double kEpsrel = 0.0001;
-+#if GSL_MAJOR_VERSION >=2
-+ gsl_matrix *J=gsl_matrix_alloc(fSolver->fdf->n, fSolver->fdf->p);
-+ gsl_multifit_fdfsolver_jac (fSolver, J);
-+ int ret = gsl_multifit_covar(J, kEpsrel, fCov);
-+ gsl_matrix_free(J);
-+#else
- int ret = gsl_multifit_covar(fSolver->J, kEpsrel, fCov);
-+#endif
- if (ret != GSL_SUCCESS) return 0;
- return fCov->data;
- }