[arch-commits] Commit in boost/trunk (PKGBUILD exceptions.patch)

Andrea Scarpino andrea at archlinux.org
Tue Sep 6 09:22:14 UTC 2011


    Date: Tuesday, September 6, 2011 @ 05:22:14
  Author: andrea
Revision: 137179

Apply patch to fix an upstream bug and kdeedu-rocs build

Added:
  boost/trunk/exceptions.patch
Modified:
  boost/trunk/PKGBUILD

------------------+
 PKGBUILD         |   12 +++++++++---
 exceptions.patch |   25 +++++++++++++++++++++++++
 2 files changed, 34 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-09-06 09:14:31 UTC (rev 137178)
+++ PKGBUILD	2011-09-06 09:22:14 UTC (rev 137179)
@@ -8,13 +8,15 @@
 pkgname=('boost-libs' 'boost')
 pkgver=1.47.0
 _boostver=${pkgver//./_}
-pkgrel=1
+pkgrel=2
 arch=('i686' 'x86_64')
 url="http://www.boost.org/"
 makedepends=('icu' 'python' 'python2' 'bzip2' 'zlib' 'openmpi')
-source=(http://downloads.sourceforge.net/sourceforge/${pkgbase}/${pkgbase}_${_boostver}.tar.gz)
+source=(http://downloads.sourceforge.net/${pkgbase}/${pkgbase}_${_boostver}.tar.gz
+        exceptions.patch)
 license=('custom')
-md5sums=('ff180a5276bec773a7625cac7e2288e8')
+md5sums=('ff180a5276bec773a7625cac7e2288e8'
+         '9b44c28b36303152050c8c82469569c5')
 
 _stagedir="${srcdir}/stagedir"
 
@@ -25,6 +27,10 @@
   echo "using python : 3.2 : /usr/bin/python : /usr/include/python3.2mu : /usr/lib ;" >> build/v2/user-config.jam
   echo "using mpi ;" >> build/v2/user-config.jam
 
+  # http://web.archiveorange.com/archive/v/Q0J4VE5bwsy3zxRXqUgd
+  cd "${srcdir}"/${pkgbase}_${_boostver}
+  patch -p0 -i "${srcdir}"/exceptions.patch
+
   # build bjam
   cd "${srcdir}/${pkgbase}_${_boostver}/tools/build/v2/engine"
   ./build.sh cc

Added: exceptions.patch
===================================================================
--- exceptions.patch	                        (rev 0)
+++ exceptions.patch	2011-09-06 09:22:14 UTC (rev 137179)
@@ -0,0 +1,25 @@
+diff -up boost/numeric/conversion/converter_policies.hpp\~ boost/numeric/conversion/converter_policies.hpp
+--- boost/numeric/conversion/converter_policies.hpp~	2008-10-13 11:00:03.000000000 +0200
++++ boost/numeric/conversion/converter_policies.hpp	2011-07-22 11:46:40.961876274 +0200
+@@ -20,6 +20,7 @@
+ 
+ #include "boost/mpl/if.hpp"
+ #include "boost/mpl/integral_c.hpp"
++#include "boost/throw_exception.hpp"
+ 
+ namespace boost { namespace numeric
+ {
+@@ -159,9 +160,9 @@ struct def_overflow_handler
+   void operator() ( range_check_result r ) // throw(negative_overflow,positive_overflow)
+   {
+     if ( r == cNegOverflow )
+-      throw negative_overflow() ;
++      boost::throw_exception( negative_overflow() ) ;
+     else if ( r == cPosOverflow )
+-           throw positive_overflow() ;
++      boost::throw_exception( positive_overflow() ) ;
+   }
+ } ;
+ 
+
+Diff finished.  Fri Jul 22 11:46:49 2011




More information about the arch-commits mailing list