[boost] The second half of long double support
Petr Machata
pmachata at fedoraproject.org
Wed Jan 25 01:22:43 UTC 2012
commit 0f5140e4c14564d2b1267be0672240874edae1ac
Author: Petr Machata <pmachata at redhat.com>
Date: Wed Jan 25 02:17:46 2012 +0100
The second half of long double support
boost-1.48.0-long-double.patch | 14 ++++++++++++++
boost.spec | 14 +++++++++++++-
2 files changed, 27 insertions(+), 1 deletions(-)
---
diff --git a/boost-1.48.0-long-double.patch b/boost-1.48.0-long-double.patch
new file mode 100644
index 0000000..20f0c9b
--- /dev/null
+++ b/boost-1.48.0-long-double.patch
@@ -0,0 +1,14 @@
+diff -up boost_1_48_0/boost/math/tools/config.hpp\~ boost_1_48_0/boost/math/tools/config.hpp
+--- boost_1_48_0/boost/math/tools/config.hpp~ 2011-10-16 20:57:30.000000000 +0200
++++ boost_1_48_0/boost/math/tools/config.hpp 2012-01-25 01:50:44.446832172 +0100
+@@ -24,7 +24,7 @@
+ #include <boost/math/special_functions/detail/round_fwd.hpp>
+
+ #if (defined(__CYGWIN__) || defined(__FreeBSD__) || defined(__NetBSD__) \
+- || (defined(__hppa) && !defined(__OpenBSD__)) || defined(__NO_LONG_DOUBLE_MATH)) && !defined(BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS)
++ || (defined(__hppa) && !defined(__OpenBSD__))) && !defined(BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS)
+ # define BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
+ #endif
+ #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
+
+Diff finished. Wed Jan 25 01:50:49 2012
diff --git a/boost.spec b/boost.spec
index b7096dc..30f15f3 100644
--- a/boost.spec
+++ b/boost.spec
@@ -28,7 +28,7 @@ Name: boost
Summary: The free peer-reviewed portable C++ source libraries
Version: 1.48.0
%define version_enc 1_48_0
-Release: 8%{?dist}
+Release: 9%{?dist}
License: Boost and MIT and Python
# The CMake build framework (set of CMakeLists.txt and module.cmake files) is
@@ -128,6 +128,9 @@ Patch8: boost-1.48.0-gcc47-pthreads.patch
# https://svn.boost.org/trac/boost/ticket/6416
Patch9: boost-1.48.0-attribute.patch
+# https://bugzilla.redhat.com/show_bug.cgi?id=783660
+Patch10: boost-1.48.0-long-double.patch
+
%bcond_with tests
%bcond_with docs_generated
@@ -495,6 +498,7 @@ sed 's/_FEDORA_SONAME/%{sonamever}/' %{PATCH1} | %{__patch} -p0 --fuzz=0
%patch7 -p2
%patch8 -p0
%patch9 -p1
+%patch10 -p1
%build
# Support for building tests.
@@ -998,6 +1002,14 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/bjam.1*
%changelog
+* Wed Jan 25 2012 Petr Machata <pmachata at redhat.com> - 1.48.0-9
+- Only build the long double math libraries on arches that support
+ long double.
+- ARM was considered unsupporting, because libc defines
+ __NO_LONG_DOUBLE_MATH. Ignore this setting, ARM has perfectly
+ working long double that just happens to be only as long as double.
+- Resolves: #783660
+
* Mon Jan 16 2012 Petr Machata <pmachata at redhat.com> - 1.48.0-8
- Add underscores around several uses of __attribute__((X)) to prevent
interactions with user-defined macro X
More information about the scm-commits
mailing list