From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-physics/geant/, sci-physics/geant/files/
Date: Thu, 5 May 2016 21:11:16 +0000 (UTC) [thread overview]
Message-ID: <1462482663.43524c9b7983800ae991b5d295d2588e3db50c2e.soap@gentoo> (raw)
commit: 43524c9b7983800ae991b5d295d2588e3db50c2e
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Thu May 5 20:38:39 2016 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu May 5 21:11:03 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43524c9b
sci-physics/geant: Add std:: qualifier to isnan for C++11
Gentoo-Bug: 581322
Package-Manager: portage-2.2.28
sci-physics/geant/files/geant-4.10.02-std-isnan.patch | 17 +++++++++++++++++
sci-physics/geant/geant-4.10.02.ebuild | 1 +
2 files changed, 18 insertions(+)
diff --git a/sci-physics/geant/files/geant-4.10.02-std-isnan.patch b/sci-physics/geant/files/geant-4.10.02-std-isnan.patch
new file mode 100644
index 0000000..6d26a6c
--- /dev/null
+++ b/sci-physics/geant/files/geant-4.10.02-std-isnan.patch
@@ -0,0 +1,17 @@
+Fully qualify isnan:
+* /var/tmp/portage/sci-physics/geant-4.10.02/work/geant4.10.02/source/processes/hadronic/models/lend/src/nf_utilities.cc:61:22: error: ‘isnan’ was not declared in this scope
+* return( isnan( d ) );
+See also:
+https://bugs.gentoo.org/show_bug.cgi?id=581322
+
+--- geant4.10.02/source/processes/hadronic/models/lend/src/nf_utilities.cc
++++ geant4.10.02/source/processes/hadronic/models/lend/src/nf_utilities.cc
+@@ -58,7 +58,7 @@
+ */
+ int nfu_isNAN( double d ) {
+
+- return( isnan( d ) );
++ return( std::isnan( d ) );
+ }
+ /*
+ ************************************************************
diff --git a/sci-physics/geant/geant-4.10.02.ebuild b/sci-physics/geant/geant-4.10.02.ebuild
index 5dd41ee..89b1e12 100644
--- a/sci-physics/geant/geant-4.10.02.ebuild
+++ b/sci-physics/geant/geant-4.10.02.ebuild
@@ -41,6 +41,7 @@ PDEPEND="
S="${WORKDIR}/${MYP}"
src_prepare() {
+ epatch -p1 "${FILESDIR}/${P}-std-isnan.patch"
use examples || epatch "${FILESDIR}"/${PN}-${PV1}.${PV2}.${SPV3}-no-examples.patch
}
next reply other threads:[~2016-05-05 21:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-05 21:11 David Seifert [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-25 15:32 [gentoo-commits] repo/gentoo:master commit in: sci-physics/geant/, sci-physics/geant/files/ Andreas Sturmlechner
2024-04-08 17:59 Guilherme Amadio
2020-03-16 16:59 Guilherme Amadio
2018-01-19 18:40 Andreas Sturmlechner
2016-01-13 17:41 Guilherme Amadio
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=1462482663.43524c9b7983800ae991b5d295d2588e3db50c2e.soap@gentoo \
--to=soap@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