[pkg-boost-devel] Bug#761926: boost1.55: fix libkolabxml test-suite error on ppc64el

Mauricio Faria de Oliveira mauricfo at linux.vnet.ibm.com
Tue Sep 16 21:21:01 UTC 2014


Package: boost1.55
Tags: patch
User: debian-powerpc at lists.debian.org
Usertags: ppc64el

This patch fixes this test-suite error of libkolabxml on ppc64el [1].

It is from the boost library shipped with IBM Advance Toolchain, which
is getting fixes/improvements for the Power architecture (e.g.,ppc64el)
that should be submitted upstream soon.

May you please consider it for an upload meanwhile?

Thank you!

[1] 
https://buildd.debian.org/status/fetch.php?pkg=libkolabxml&arch=ppc64el&ver=1.0.2-1&stamp=1410666021


-- 
Mauricio Faria de Oliveira
IBM Linux Technology Center
-------------- next part --------------
diff -Nru boost1.55-1.55.0+dfsg/debian/changelog boost1.55-1.55.0+dfsg/debian/changelog
--- boost1.55-1.55.0+dfsg/debian/changelog	2014-06-10 06:16:51.000000000 -0300
+++ boost1.55-1.55.0+dfsg/debian/changelog	2014-09-16 17:11:18.000000000 -0300
@@ -1,3 +1,9 @@
+boost1.55 (1.55.0+dfsg-2ppc64el1) UNRELEASED; urgency=medium
+
+  * ppc64el-fp_traits-ibm-long-double.patch: fix libkolabxml FTBFS on ppc64el.
+
+ -- Mauricio Faria de Oliveira <mauricfo at linux.vnet.ibm.com>  Tue, 16 Sep 2014 16:40:22 -0300
+
 boost1.55 (1.55.0+dfsg-2) unstable; urgency=medium
 
   * Disable pch on arm64, to avoid FTBFS. (Closes: #750956)
diff -Nru boost1.55-1.55.0+dfsg/debian/patches/ppc64el-fp_traits-ibm-long-double.patch boost1.55-1.55.0+dfsg/debian/patches/ppc64el-fp_traits-ibm-long-double.patch
--- boost1.55-1.55.0+dfsg/debian/patches/ppc64el-fp_traits-ibm-long-double.patch	1969-12-31 21:00:00.000000000 -0300
+++ boost1.55-1.55.0+dfsg/debian/patches/ppc64el-fp_traits-ibm-long-double.patch	2014-09-16 17:11:24.000000000 -0300
@@ -0,0 +1,45 @@
+Origin: https://github.com/boost-at/boost_1_55_0/commit/4426b41dab6bb8d110ebda00e0b199b640c7896a
+From: Adhemerval Zanella <azanella at linux.vnet.ibm.com>
+Date: Tue, 22 Apr 2014 14:31:19 -0500
+Subject: [PATCH] math: Fix fp_traits for IBM long double
+
+This patch fixes the fp_traits_non_native template specialization for
+IBM long double.  Current interface does not work correctly for the type
+due the fact for some operations (sign manipulation, for instance), both
+double should be manipulated.  For other operations that only require
+the 32 most significand bits (isinf/isnan for instance), the double
+specialization is suffice.
+
+This fixes the issues for getometry test in PPC64LE environment with no
+regreesions on PPC64BE.
+---
+ boost/math/special_functions/detail/fp_traits.hpp | 9 ++++++++-
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/boost/math/special_functions/detail/fp_traits.hpp b/boost/math/special_functions/detail/fp_traits.hpp
+index 50c034d..72ebd4e 100644
+--- a/boost/math/special_functions/detail/fp_traits.hpp
++++ b/boost/math/special_functions/detail/fp_traits.hpp
+@@ -359,6 +359,13 @@ struct fp_traits_non_native<long double, extended_double_precision>
+ 
+ // PowerPC extended double precision format (128 bits)
+ 
++// Current 'fp_traits_non_native' does not work correctly with IBM long double
++// due the fact for some operations, like sign manipulation, the algorithm
++// should manipulate both 'double' value.  For algorithms that only depend on
++// the most significand 32 bits (for instance, isinf or isnan), using the
++// template double especialization is suffice.
++
++#if 0
+ template<>
+ struct fp_traits_non_native<long double, extended_double_precision>
+ {
+@@ -391,7 +398,7 @@ struct fp_traits_non_native<long double, extended_double_precision>
+     BOOST_STATIC_ASSERT(false);
+ #endif
+ };
+-
++#endif
+ 
+ // long double (>64 bits), Motorola 68K ----------------------------------------
+ 
diff -Nru boost1.55-1.55.0+dfsg/debian/patches/series boost1.55-1.55.0+dfsg/debian/patches/series
--- boost1.55-1.55.0+dfsg/debian/patches/series	2013-12-28 21:14:48.000000000 -0200
+++ boost1.55-1.55.0+dfsg/debian/patches/series	2014-09-16 17:11:24.000000000 -0300
@@ -7,3 +7,4 @@
 boost-1.55.0-001-log_fix_dump_avx2.patch
 ELFv2-libboost1.54-dev-context-asm.patch
 boost-python-examples.patch
+ppc64el-fp_traits-ibm-long-double.patch


More information about the pkg-boost-devel mailing list