Gentoo Archives: gentoo-commits

From: "Ryan Hill (dirtyepic)" <dirtyepic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/boost/files: boost-1.42.0-template_arity-gcc45.patch
Date: Sun, 30 May 2010 06:51:50
Message-Id: 20100530065142.54A8F2CAD8@corvid.gentoo.org
1 dirtyepic 10/05/30 06:51:42
2
3 Added: boost-1.42.0-template_arity-gcc45.patch
4 Log:
5 Add patch from upstream to fix broken MPL library when built with
6 GCC 4.5. Revision bumped due to this being a runtime error.
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 dev-libs/boost/files/boost-1.42.0-template_arity-gcc45.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/boost/files/boost-1.42.0-template_arity-gcc45.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/boost/files/boost-1.42.0-template_arity-gcc45.patch?rev=1.1&content-type=text/plain
14
15 Index: boost-1.42.0-template_arity-gcc45.patch
16 ===================================================================
17 MPL is broken with GCC 4.5.
18
19 https://bugs.gentoo.org/317969
20 https://svn.boost.org/trac/boost/ticket/4061
21 https://svn.boost.org/trac/boost/changeset/61467
22
23 --- a/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp
24 +++ b/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp
25 @@ -83,7 +81,7 @@ template< typename F, int N >
26 struct template_arity_impl
27 {
28 BOOST_STATIC_CONSTANT(int, value =
29 - sizeof(arity_helper(type_wrapper<F>(), arity_tag<N>())) - 1
30 + sizeof(::boost::mpl::aux::arity_helper(type_wrapper<F>(), arity_tag<N>())) - 1
31 );
32 };
33
34 --- a/boost/mpl/aux_/template_arity.hpp
35 +++ b/boost/mpl/aux_/template_arity.hpp
36 @@ -98,7 +98,7 @@ template< typename F, BOOST_MPL_AUX_NTTP_DECL(int, N) >
37 struct template_arity_impl
38 {
39 BOOST_STATIC_CONSTANT(int, value =
40 - sizeof(arity_helper(type_wrapper<F>(),arity_tag<N>())) - 1
41 + sizeof(::boost::mpl::aux::arity_helper(type_wrapper<F>(),arity_tag<N>())) - 1
42 );
43 };