Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/sundials/
Date: Sat, 27 Feb 2021 05:16:30
Message-Id: 1614402951.ef3b07820955e5152f355d9fd294028aa73e203d.sam@gentoo
1 commit: ef3b07820955e5152f355d9fd294028aa73e203d
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 27 05:14:40 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 27 05:15:51 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef3b0782
7
8 sci-libs/sundials: fix gcc 10 build
9
10 Closes: https://bugs.gentoo.org/707240
11 Package-Manager: Portage-3.0.15, Repoman-3.0.2
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 sci-libs/sundials/sundials-5.2.0.ebuild | 11 +++++++++--
15 1 file changed, 9 insertions(+), 2 deletions(-)
16
17 diff --git a/sci-libs/sundials/sundials-5.2.0.ebuild b/sci-libs/sundials/sundials-5.2.0.ebuild
18 index aa14eeb5320..3d60a524cc2 100644
19 --- a/sci-libs/sundials/sundials-5.2.0.ebuild
20 +++ b/sci-libs/sundials/sundials-5.2.0.ebuild
21 @@ -1,4 +1,4 @@
22 -# Copyright 1999-2020 Gentoo Authors
23 +# Copyright 1999-2021 Gentoo Authors
24 # Distributed under the terms of the GNU General Public License v2
25
26 EAPI=7
27 @@ -8,7 +8,7 @@ FORTRAN_NEEDED=fortran
28 FORTRAN_STANDARD="77 90"
29 # if FFLAGS and FCFLAGS are set then should be equal
30
31 -inherit cmake fortran-2 toolchain-funcs
32 +inherit cmake fortran-2 toolchain-funcs flag-o-matic
33
34 DESCRIPTION="Suite of nonlinear solvers"
35 HOMEPAGE="https://computation.llnl.gov/projects/sundials"
36 @@ -38,6 +38,13 @@ pkg_setup() {
37 fi
38 }
39
40 +src_prepare() {
41 + # bug #707240
42 + append-cflags -fcommon
43 +
44 + cmake_src_prepare
45 +}
46 +
47 src_configure() {
48 mycmakeargs+=(
49 -DBUILD_SHARED_LIBS=ON