[pkg-boost-commits] r14230 - in boost/trunk/debian: . patches

smr at alioth.debian.org smr at alioth.debian.org
Mon May 19 05:44:53 UTC 2008


Author: smr
Date: 2008-05-19 05:44:52 +0000 (Mon, 19 May 2008)
New Revision: 14230

Added:
   boost/trunk/debian/patches/serialization-intrinsic64.patch
Modified:
   boost/trunk/debian/changelog
   boost/trunk/debian/patches/series
Log:
Fix build problem with boost/archive/polymorphic_iarchive.hpp and _oarchive.hpp

Modified: boost/trunk/debian/changelog
===================================================================
--- boost/trunk/debian/changelog	2008-05-17 13:45:21 UTC (rev 14229)
+++ boost/trunk/debian/changelog	2008-05-19 05:44:52 UTC (rev 14230)
@@ -1,3 +1,10 @@
+boost1.35 (1.35.0-3) unstable; urgency=low
+
+  * debian/patches/serialization-intrinsic64.patch: New.  Patch from
+    upstream to fix build problem with GCC 4.3 on 64-bit systems.
+
+ -- Steve M. Robbins <smr at debian.org>  Mon, 19 May 2008 00:18:12 -0500
+
 boost1.35 (1.35.0-2) unstable; urgency=low
 
   * debian/control: Add missing dependencies.  Closes: #480948.

Added: boost/trunk/debian/patches/serialization-intrinsic64.patch
===================================================================
--- boost/trunk/debian/patches/serialization-intrinsic64.patch	                        (rev 0)
+++ boost/trunk/debian/patches/serialization-intrinsic64.patch	2008-05-19 05:44:52 UTC (rev 14230)
@@ -0,0 +1,77 @@
+Fixes build error on some architectures, likely 64-bit ones that use
+GCC 4.3.
+
+Reported upstream http://svn.boost.org/trac/boost/ticket/1715
+Patch pulled from upstream SVN, changesets 
+
+------------------------------------------------------------------------
+r43958 | ramey | 2008-03-31 11:49:53 -0500 (Mon, 31 Mar 2008) | 1 line
+
+correction of error which prevented compilation on gcc 43 - again
+------------------------------------------------------------------------
+r43955 | ramey | 2008-03-31 10:46:48 -0500 (Mon, 31 Mar 2008) | 1 line
+
+Corrected error in detection of 64 bit support
+------------------------------------------------------------------------
+
+
+--- boost1.35-1.35.0.orig/boost/archive/polymorphic_iarchive.hpp
++++ boost1.35-1.35.0/boost/archive/polymorphic_iarchive.hpp
+@@ -17,6 +17,7 @@
+ //  See http://www.boost.org for updates, documentation, and revision history.
+ 
+ #include <cstddef> // std::size_t
++#include <climits> // ULONG_MAX 
+ #include <boost/config.hpp>
+ 
+ #if defined(BOOST_NO_STDC_NAMESPACE)
+@@ -38,9 +39,16 @@
+ // i.e. that its not a synonym for (unsigned) long
+ // if there is no 64 bit int or if its the same as a long
+ // we shouldn't define separate functions for int64 data types.
+-#if defined(BOOST_NO_INT64_T) \
+-    || (ULONG_MAX != 0xffffffff && ULONG_MAX == 18446744073709551615u) // 2**64 - 1
+-#   define BOOST_NO_INTRINSIC_INT64_T
++#if defined(BOOST_NO_INT64_T)
++    #define BOOST_NO_INTRINSIC_INT64_T
++#else 
++    #if defined(ULONG_MAX)
++        #if(ULONG_MAX != 0xffffffff && ULONG_MAX == 18446744073709551615u) // 2**64 - 1
++            #define BOOST_NO_INTRINSIC_INT64_T
++        #endif
++    #else 
++        #define BOOST_NO_INTRINSIC_INT64_T
++    #endif
+ #endif
+ 
+ namespace boost {
+--- boost1.35-1.35.0.orig/boost/archive/polymorphic_oarchive.hpp
++++ boost1.35-1.35.0/boost/archive/polymorphic_oarchive.hpp
+@@ -17,6 +17,7 @@
+ //  See http://www.boost.org for updates, documentation, and revision history.
+ 
+ #include <cstddef> // size_t
++#include <climits> // ULONG_MAX 
+ #include <string>
+ 
+ #include <boost/config.hpp>
+@@ -37,9 +38,16 @@
+ // i.e. that its not a synonym for (unsigned) long
+ // if there is no 64 bit int or if its the same as a long
+ // we shouldn't define separate functions for int64 data types.
+-#if defined(BOOST_NO_INT64_T) \
+-    || (ULONG_MAX != 0xffffffff && ULONG_MAX == 18446744073709551615u) // 2**64 - 1
+-#   define BOOST_NO_INTRINSIC_INT64_T
++#if defined(BOOST_NO_INT64_T)
++    #define BOOST_NO_INTRINSIC_INT64_T
++#else 
++    #if defined(ULONG_MAX)
++        #if(ULONG_MAX != 0xffffffff && ULONG_MAX == 18446744073709551615u) // 2**64 - 1
++            #define BOOST_NO_INTRINSIC_INT64_T
++        #endif
++    #else 
++        #define BOOST_NO_INTRINSIC_INT64_T
++    #endif
+ #endif
+ 
+ namespace boost {

Modified: boost/trunk/debian/patches/series
===================================================================
--- boost/trunk/debian/patches/series	2008-05-17 13:45:21 UTC (rev 14229)
+++ boost/trunk/debian/patches/series	2008-05-19 05:44:52 UTC (rev 14230)
@@ -1,3 +1,4 @@
+serialization-intrinsic64.patch
 library-naming.patch
 suppress-compiler-warnings.patch
 gcc-4.3.patch




More information about the pkg-boost-commits mailing list