www-apache/passenger: bug#580078 isnan compile fix.
authorRobin H. Johnson <robbat2@gentoo.org>
Sat, 4 Feb 2017 06:43:23 +0000 (22:43 -0800)
committerRobin H. Johnson <robbat2@gentoo.org>
Sat, 4 Feb 2017 06:44:03 +0000 (22:44 -0800)
Fixes: https://bugs.gentoo.org/show_bug.cgi?id=580078
Package-Manager: portage-2.3.2
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
www-apache/passenger/files/passenger-5.1.1-isnan.patch [new file with mode: 0644]
www-apache/passenger/passenger-5.0.30.ebuild
www-apache/passenger/passenger-5.1.0.ebuild
www-apache/passenger/passenger-5.1.1.ebuild
www-apache/passenger/passenger-5.1.2.ebuild

diff --git a/www-apache/passenger/files/passenger-5.1.1-isnan.patch b/www-apache/passenger/files/passenger-5.1.1-isnan.patch
new file mode 100644 (file)
index 0000000..02f7fe7
--- /dev/null
@@ -0,0 +1,14 @@
+diff -uNr passenger-5.1.1.orig/src/cxx_supportlib/vendor-modified/boost/math/special_functions/fpclassify.hpp passenger-5.1.1/src/cxx_supportlib/vendor-modified/boost/math/special_functions/fpclassify.hpp
+--- passenger-5.1.1.orig/src/cxx_supportlib/vendor-modified/boost/math/special_functions/fpclassify.hpp        2013-10-26 15:00:00.000000000 -0700
++++ passenger-5.1.1/src/cxx_supportlib/vendor-modified/boost/math/special_functions/fpclassify.hpp     2017-01-12 19:21:39.696285758 -0800
+@@ -134,8 +134,8 @@
+ inline bool is_nan_helper(__float128 f, const boost::true_type&) { return ::isnanq(f); }
+ inline bool is_nan_helper(__float128 f, const boost::false_type&) { return ::isnanq(f); }
+ #else
+-inline bool is_nan_helper(__float128 f, const boost::true_type&) { return ::isnan(static_cast<double>(f)); }
+-inline bool is_nan_helper(__float128 f, const boost::false_type&) { return ::isnan(static_cast<double>(f)); }
++inline bool is_nan_helper(__float128 f, const boost::true_type&) { return std::isnan(static_cast<double>(f)); }
++inline bool is_nan_helper(__float128 f, const boost::false_type&) { return std::isnan(static_cast<double>(f)); }
+ #endif
+ #endif
+ }
index f40d4a1bcbde2c3461c48bea0df91b0002282772..c78c9630620798993cdf72d795b89a7dbeb9a6d7 100644 (file)
@@ -43,6 +43,7 @@ pkg_setup() {
 
 all_ruby_prepare() {
        epatch "${FILESDIR}"/${PN}-5.0.20-gentoo.patch
+       epatch "${FILESDIR}"/${PN}-5.1.1-isnan.patch
 
        # Change these with sed instead of a patch so that we can easily use
        # the toolchain-funcs methods.
index e230887dc8c6bb1a8f075eab5c6909afc73f9d27..ed1c2645c8fecda1b7a90d20bfbf0664319b48ec 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -43,6 +43,7 @@ pkg_setup() {
 
 all_ruby_prepare() {
        epatch "${FILESDIR}"/${PN}-5.0.20-gentoo.patch
+       epatch "${FILESDIR}"/${PN}-5.1.1-isnan.patch
 
        # Change these with sed instead of a patch so that we can easily use
        # the toolchain-funcs methods.
index 4d3390bcfb5142aea68f5425a49b0ad999803e83..ed1c2645c8fecda1b7a90d20bfbf0664319b48ec 100644 (file)
@@ -43,6 +43,7 @@ pkg_setup() {
 
 all_ruby_prepare() {
        epatch "${FILESDIR}"/${PN}-5.0.20-gentoo.patch
+       epatch "${FILESDIR}"/${PN}-5.1.1-isnan.patch
 
        # Change these with sed instead of a patch so that we can easily use
        # the toolchain-funcs methods.
index 12ff286c38c18dba70580b30165d4e384644495b..07eca2ff1204fb12e4a2619a03aabceaa7735828 100644 (file)
@@ -43,6 +43,7 @@ pkg_setup() {
 
 all_ruby_prepare() {
        epatch "${FILESDIR}"/${PN}-5.0.20-gentoo.patch
+       epatch "${FILESDIR}"/${PN}-5.1.1-isnan.patch
 
        # Change these with sed instead of a patch so that we can easily use
        # the toolchain-funcs methods.