From: "Andrew Savchenko" <bircoph@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-physics/root/, sci-physics/root/files/
Date: Sun, 19 Jun 2016 09:55:44 +0000 (UTC) [thread overview]
Message-ID: <1466330136.683a1377d8de799d4e190229c131bd95dad9f1c0.bircoph@gentoo> (raw)
commit: 683a1377d8de799d4e190229c131bd95dad9f1c0
Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 19 09:55:12 2016 +0000
Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
CommitDate: Sun Jun 19 09:55:36 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=683a1377
sci-physics/root: fix bug 575686
Apply upstream patch to support gsl-2.
Package-Manager: portage-2.3.0_rc1
Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
sci-physics/root/files/root-6.04.06-gsl2.patch | 58 ++++++++++++++++++++++++++
sci-physics/root/root-6.04.06.ebuild | 3 +-
2 files changed, 60 insertions(+), 1 deletion(-)
diff --git a/sci-physics/root/files/root-6.04.06-gsl2.patch b/sci-physics/root/files/root-6.04.06-gsl2.patch
new file mode 100644
index 0000000..5d9fb10
--- /dev/null
+++ b/sci-physics/root/files/root-6.04.06-gsl2.patch
@@ -0,0 +1,58 @@
+commit ee9964210c56e7c1868618a4434c5340fef38fe4
+Author: Pere Mato <pere.mato@cern.ch>
+Date: Tue Dec 15 11:58:24 2015 +0100
+
+ Fix for ROOT-7776 - Integrate GSL 2.0 in ROOT. Changed the version used when option builtin_gsl=ON to 2.1 (latest production).
+
+diff --git a/cmake/modules/SearchInstalledSoftware.cmake b/cmake/modules/SearchInstalledSoftware.cmake
+index 6f04dad..309a8de 100644
+--- a/cmake/modules/SearchInstalledSoftware.cmake
++++ b/cmake/modules/SearchInstalledSoftware.cmake
+@@ -332,7 +332,7 @@ if(mathmore OR builtin_gsl)
+ endif()
+ endif()
+ else()
+- set(gsl_version 1.15)
++ set(gsl_version 2.1)
+ message(STATUS "Downloading and building GSL version ${gsl_version}")
+ ExternalProject_Add(
+ GSL
+diff --git a/math/mathmore/src/GSLMultiFit.h b/math/mathmore/src/GSLMultiFit.h
+index 1d86da5..5b5a887 100644
+--- a/math/mathmore/src/GSLMultiFit.h
++++ b/math/mathmore/src/GSLMultiFit.h
+@@ -31,6 +31,7 @@
+ #include "gsl/gsl_matrix.h"
+ #include "gsl/gsl_multifit_nlin.h"
+ #include "gsl/gsl_blas.h"
++#include "gsl/gsl_version.h"
+ #include "GSLMultiFitFunctionWrapper.h"
+
+ #include "Math/IFunction.h"
+@@ -143,7 +144,11 @@ public:
+ /// gradient value at the minimum
+ const double * Gradient() const {
+ if (fSolver == 0) return 0;
++#if GSL_MAJOR_VERSION > 1
++ fType->gradient(fSolver->state, fVec);
++#else
+ gsl_multifit_gradient(fSolver->J, fSolver->f,fVec);
++#endif
+ return fVec->data;
+ }
+
+@@ -154,7 +159,14 @@ public:
+ unsigned int npar = fSolver->fdf->p;
+ fCov = gsl_matrix_alloc( npar, npar );
+ static double kEpsrel = 0.0001;
++#if GSL_MAJOR_VERSION > 1
++ gsl_matrix* J = gsl_matrix_alloc(npar,npar);
++ 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;
+ }
diff --git a/sci-physics/root/root-6.04.06.ebuild b/sci-physics/root/root-6.04.06.ebuild
index 38e6f29..9cfe322 100644
--- a/sci-physics/root/root-6.04.06.ebuild
+++ b/sci-physics/root/root-6.04.06.ebuild
@@ -241,7 +241,8 @@ src_prepare() {
"${FILESDIR}"/${PN}-6.00.01-dotfont.patch \
"${FILESDIR}"/${PN}-6.00.01-llvm.patch \
"${FILESDIR}"/${PN}-6.00.01-nobyte-compile.patch \
- "${FILESDIR}"/${P}-prop-flags.patch
+ "${FILESDIR}"/${P}-prop-flags.patch \
+ "${FILESDIR}"/${P}-gsl2.patch
# "${FILESDIR}"/${PN}-6.02.05-xrootd4.patch
# "${FILESDIR}"/${PN}-6.02.05-dictpch.patch \
next reply other threads:[~2016-06-19 9:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-19 9:55 Andrew Savchenko [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-06-20 17:52 [gentoo-commits] repo/gentoo:master commit in: sci-physics/root/, sci-physics/root/files/ Guilherme Amadio
2019-03-23 2:35 Benda XU
2018-11-19 16:25 Guilherme Amadio
2018-07-05 11:15 Guilherme Amadio
2018-07-05 11:15 Guilherme Amadio
2018-03-22 14:24 Guilherme Amadio
2018-03-22 14:24 Guilherme Amadio
2018-03-20 14:15 Benda XU
2018-03-06 14:43 Guilherme Amadio
2017-12-18 13:13 Guilherme Amadio
2017-12-15 12:01 Guilherme Amadio
2015-10-29 10:44 Justin Lecher
2015-09-26 8:45 Andrew Savchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1466330136.683a1377d8de799d4e190229c131bd95dad9f1c0.bircoph@gentoo \
--to=bircoph@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox