Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/boost/, dev-libs/boost/files/
Date: Wed, 30 Mar 2016 22:50:09
Message-Id: 1459378193.c1046df9aeef2b48b34953947275210872ec424c.soap@gentoo
1 commit: c1046df9aeef2b48b34953947275210872ec424c
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 30 22:49:39 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 30 22:49:53 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1046df9
7
8 dev-libs/boost: Add boost::graph patch
9
10 * Modify patches such that all apply with -p1
11 * Move patches into PATCHES variable, avoid epatch
12 * Fix unquoted variable
13
14 Package-Manager: portage-2.2.28
15
16 dev-libs/boost/boost-1.60.0.ebuild | 26 +++++++-------
17 .../files/boost-1.48.0-disable_icu_rpath.patch | 4 +--
18 .../boost-1.48.0-disable_libboost_python3.patch | 4 +--
19 .../boost-1.48.0-no_strict_aliasing_python2.patch | 4 +--
20 .../boost/files/boost-1.48.0-python_linking.patch | 4 +--
21 .../boost-1.51.0-respect_python-buildid.patch | 12 +++----
22 ...ost-1.51.0-support_dots_in_python-buildid.patch | 8 ++---
23 .../files/boost-1.56.0-build-auto_index-tool.patch | 4 +--
24 .../boost-1.60.0-deprecated-header-ice_not.patch | 42 ++++++++++++++++++++++
25 9 files changed, 76 insertions(+), 32 deletions(-)
26
27 diff --git a/dev-libs/boost/boost-1.60.0.ebuild b/dev-libs/boost/boost-1.60.0.ebuild
28 index ea0fdc1..1a95c5e 100644
29 --- a/dev-libs/boost/boost-1.60.0.ebuild
30 +++ b/dev-libs/boost/boost-1.60.0.ebuild
31 @@ -42,6 +42,18 @@ S="${WORKDIR}/${MY_P}"
32 # there is no point in having them in the ebuild to begin with.
33 RESTRICT="test"
34
35 +PATCHES=(
36 + "${FILESDIR}/${PN}-1.51.0-respect_python-buildid.patch"
37 + "${FILESDIR}/${PN}-1.51.0-support_dots_in_python-buildid.patch"
38 + "${FILESDIR}/${PN}-1.48.0-no_strict_aliasing_python2.patch"
39 + "${FILESDIR}/${PN}-1.48.0-disable_libboost_python3.patch"
40 + "${FILESDIR}/${PN}-1.48.0-python_linking.patch"
41 + "${FILESDIR}/${PN}-1.48.0-disable_icu_rpath.patch"
42 + "${FILESDIR}/${PN}-1.55.0-context-x32.patch"
43 + "${FILESDIR}/${PN}-1.56.0-build-auto_index-tool.patch"
44 + "${FILESDIR}/${PN}-1.60.0-deprecated-header-ice_not.patch"
45 +)
46 +
47 python_bindings_needed() {
48 multilib_is_native_abi && use python
49 }
50 @@ -111,22 +123,12 @@ pkg_setup() {
51 }
52
53 src_prepare() {
54 - epatch \
55 - "${FILESDIR}/${PN}-1.51.0-respect_python-buildid.patch" \
56 - "${FILESDIR}/${PN}-1.51.0-support_dots_in_python-buildid.patch" \
57 - "${FILESDIR}/${PN}-1.48.0-no_strict_aliasing_python2.patch" \
58 - "${FILESDIR}/${PN}-1.48.0-disable_libboost_python3.patch" \
59 - "${FILESDIR}/${PN}-1.48.0-python_linking.patch" \
60 - "${FILESDIR}/${PN}-1.48.0-disable_icu_rpath.patch" \
61 - "${FILESDIR}/${PN}-1.55.0-context-x32.patch" \
62 - "${FILESDIR}/${PN}-1.56.0-build-auto_index-tool.patch"
63 + default
64
65 # Do not try to build missing 'wave' tool, bug #522682
66 # Upstream bugreport - https://svn.boost.org/trac/boost/ticket/10507
67 sed -i -e 's:wave/build//wave::' tools/Jamfile.v2 || die
68
69 - eapply_user
70 -
71 multilib_copy_sources
72 }
73
74 @@ -172,7 +174,7 @@ src_configure() {
75 use context || OPTIONS+=" --without-context --without-coroutine"
76
77 OPTIONS+=" pch=off"
78 - OPTIONS+=" --boost-build=${EPREFIX}/usr/share/boost-build --prefix=\"${ED}usr\""
79 + OPTIONS+=" --boost-build=\"${EPREFIX}\"/usr/share/boost-build --prefix=\"${ED}usr\""
80 OPTIONS+=" --layout=system"
81 OPTIONS+=" threading=$(usex threads multi single) link=$(usex static-libs shared,static shared)"
82
83
84 diff --git a/dev-libs/boost/files/boost-1.48.0-disable_icu_rpath.patch b/dev-libs/boost/files/boost-1.48.0-disable_icu_rpath.patch
85 index a902d61..23a8783 100644
86 --- a/dev-libs/boost/files/boost-1.48.0-disable_icu_rpath.patch
87 +++ b/dev-libs/boost/files/boost-1.48.0-disable_icu_rpath.patch
88 @@ -1,5 +1,5 @@
89 ---- libs/locale/build/Jamfile.v2
90 -+++ libs/locale/build/Jamfile.v2
91 +--- a/libs/locale/build/Jamfile.v2
92 ++++ b/libs/locale/build/Jamfile.v2
93 @@ -58,8 +58,8 @@
94
95 if $(ICU_LINK)
96
97 diff --git a/dev-libs/boost/files/boost-1.48.0-disable_libboost_python3.patch b/dev-libs/boost/files/boost-1.48.0-disable_libboost_python3.patch
98 index c24a56c..d456040 100644
99 --- a/dev-libs/boost/files/boost-1.48.0-disable_libboost_python3.patch
100 +++ b/dev-libs/boost/files/boost-1.48.0-disable_libboost_python3.patch
101 @@ -1,5 +1,5 @@
102 ---- libs/python/build/Jamfile.v2
103 -+++ libs/python/build/Jamfile.v2
104 +--- a/libs/python/build/Jamfile.v2
105 ++++ b/libs/python/build/Jamfile.v2
106 @@ -39,23 +39,6 @@
107 PYTHON_ID = [ regex.replace $(python-id) "[*\\/:\"\']" "_" ] ;
108 }
109
110 diff --git a/dev-libs/boost/files/boost-1.48.0-no_strict_aliasing_python2.patch b/dev-libs/boost/files/boost-1.48.0-no_strict_aliasing_python2.patch
111 index 89f8109..cb26792 100644
112 --- a/dev-libs/boost/files/boost-1.48.0-no_strict_aliasing_python2.patch
113 +++ b/dev-libs/boost/files/boost-1.48.0-no_strict_aliasing_python2.patch
114 @@ -1,5 +1,5 @@
115 ---- libs/python/build/Jamfile.v2
116 -+++ libs/python/build/Jamfile.v2
117 +--- a/libs/python/build/Jamfile.v2
118 ++++ b/libs/python/build/Jamfile.v2
119 @@ -85,6 +85,12 @@
120 rule lib_boost_python ( is-py3 ? )
121 {
122
123 diff --git a/dev-libs/boost/files/boost-1.48.0-python_linking.patch b/dev-libs/boost/files/boost-1.48.0-python_linking.patch
124 index e7f4e7c..330cbb1 100644
125 --- a/dev-libs/boost/files/boost-1.48.0-python_linking.patch
126 +++ b/dev-libs/boost/files/boost-1.48.0-python_linking.patch
127 @@ -1,5 +1,5 @@
128 ---- libs/python/build/Jamfile.v2
129 -+++ libs/python/build/Jamfile.v2
130 +--- a/libs/python/build/Jamfile.v2
131 ++++ b/libs/python/build/Jamfile.v2
132 @@ -109,20 +109,7 @@
133 <link>static:<define>BOOST_PYTHON_STATIC_LIB
134 <define>BOOST_PYTHON_SOURCE
135
136 diff --git a/dev-libs/boost/files/boost-1.51.0-respect_python-buildid.patch b/dev-libs/boost/files/boost-1.51.0-respect_python-buildid.patch
137 index 327429e..17a6816 100644
138 --- a/dev-libs/boost/files/boost-1.51.0-respect_python-buildid.patch
139 +++ b/dev-libs/boost/files/boost-1.51.0-respect_python-buildid.patch
140 @@ -1,7 +1,7 @@
141 https://svn.boost.org/trac/boost/ticket/6286
142
143 ---- boostcpp.jam
144 -+++ boostcpp.jam
145 +--- a/boostcpp.jam
146 ++++ b/boostcpp.jam
147 @@ -99,13 +99,6 @@
148 BUILD_ID = [ regex.replace $(build-id) "[*\\/:.\"\' ]" _ ] ;
149 }
150 @@ -16,8 +16,8 @@ https://svn.boost.org/trac/boost/ticket/6286
151
152 ################################################################################
153 #
154 ---- libs/mpi/build/Jamfile.v2
155 -+++ libs/mpi/build/Jamfile.v2
156 +--- a/libs/mpi/build/Jamfile.v2
157 ++++ b/libs/mpi/build/Jamfile.v2
158 @@ -8,6 +8,8 @@
159 # Authors: Douglas Gregor
160 # Andrew Lumsdaine
161 @@ -41,8 +41,8 @@ https://svn.boost.org/trac/boost/ticket/6286
162 rule tag ( name : type ? : property-set )
163 {
164 local result = $(name) ;
165 ---- libs/python/build/Jamfile.v2
166 -+++ libs/python/build/Jamfile.v2
167 +--- a/libs/python/build/Jamfile.v2
168 ++++ b/libs/python/build/Jamfile.v2
169 @@ -2,6 +2,8 @@
170 # Software License, Version 1.0. (See accompanying
171 # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
172
173 diff --git a/dev-libs/boost/files/boost-1.51.0-support_dots_in_python-buildid.patch b/dev-libs/boost/files/boost-1.51.0-support_dots_in_python-buildid.patch
174 index c8dc6e1..a8912eb5 100644
175 --- a/dev-libs/boost/files/boost-1.51.0-support_dots_in_python-buildid.patch
176 +++ b/dev-libs/boost/files/boost-1.51.0-support_dots_in_python-buildid.patch
177 @@ -1,5 +1,5 @@
178 ---- libs/mpi/build/Jamfile.v2
179 -+++ libs/mpi/build/Jamfile.v2
180 +--- a/libs/mpi/build/Jamfile.v2
181 ++++ b/libs/mpi/build/Jamfile.v2
182 @@ -30,7 +30,7 @@
183 python-id = [ option.get "python-buildid" ] ;
184 if $(python-id)
185 @@ -9,8 +9,8 @@
186 }
187
188 rule tag ( name : type ? : property-set )
189 ---- libs/python/build/Jamfile.v2
190 -+++ libs/python/build/Jamfile.v2
191 +--- a/libs/python/build/Jamfile.v2
192 ++++ b/libs/python/build/Jamfile.v2
193 @@ -36,7 +36,7 @@
194 python-id = [ option.get "python-buildid" ] ;
195 if $(python-id)
196
197 diff --git a/dev-libs/boost/files/boost-1.56.0-build-auto_index-tool.patch b/dev-libs/boost/files/boost-1.56.0-build-auto_index-tool.patch
198 index 5175800..48ca513 100644
199 --- a/dev-libs/boost/files/boost-1.56.0-build-auto_index-tool.patch
200 +++ b/dev-libs/boost/files/boost-1.56.0-build-auto_index-tool.patch
201 @@ -1,8 +1,8 @@
202 Build auto_index tool with USE="tools"
203 Gentoo bug report: https://bugs.gentoo.org/show_bug.cgi?id=529066
204
205 ---- tools/Jamfile.v2.orig 2014-12-24 12:57:32.290880067 +0300
206 -+++ tools/Jamfile.v2 2014-12-24 12:58:38.403883250 +0300
207 +--- a/tools/Jamfile.v2.orig 2014-12-24 12:57:32.290880067 +0300
208 ++++ b/tools/Jamfile.v2 2014-12-24 12:58:38.403883250 +0300
209 @@ -20,6 +20,7 @@
210 use-project /boost/regression : regression/build ;
211
212
213 diff --git a/dev-libs/boost/files/boost-1.60.0-deprecated-header-ice_not.patch b/dev-libs/boost/files/boost-1.60.0-deprecated-header-ice_not.patch
214 new file mode 100644
215 index 0000000..624dc64
216 --- /dev/null
217 +++ b/dev-libs/boost/files/boost-1.60.0-deprecated-header-ice_not.patch
218 @@ -0,0 +1,42 @@
219 +From: jzmaddock <john@××××××××××××××.uk>
220 +Date: Tue, 21 Jul 2015 18:54:48 +0100
221 +Subject: [PATCH] Remove deprecated type_traits usage.
222 +
223 +---
224 + include/boost/graph/adjacency_matrix.hpp | 2 +-
225 + 1 file changed, 1 insertion(+), 1 deletion(-)
226 +
227 +diff --git a/include/boost/graph/adjacency_matrix.hpp b/include/boost/graph/adjacency_matrix.hpp
228 +index b1078d9..ade7351 100644
229 +--- a/boost/graph/adjacency_matrix.hpp
230 ++++ b/boost/graph/adjacency_matrix.hpp
231 +@@ -443,7 +443,7 @@ namespace boost {
232 + // graph type. Instead, use directedS, which also provides the
233 + // functionality required for a Bidirectional Graph (in_edges,
234 + // in_degree, etc.).
235 +- BOOST_STATIC_ASSERT(type_traits::ice_not<(is_same<Directed, bidirectionalS>::value)>::value);
236 ++ BOOST_STATIC_ASSERT(!(is_same<Directed, bidirectionalS>::value));
237 +
238 + typedef typename mpl::if_<is_directed,
239 + bidirectional_tag, undirected_tag>::type
240 +From: Vladimir Prus <vladimir.prus@×××××.com>
241 +Date: Mon, 7 Dec 2015 13:55:07 +0300
242 +Subject: [PATCH] Add missing include of <list>.
243 +
244 +Thanks to Amit Prakash Ambasta for the report.
245 +---
246 + include/boost/graph/r_c_shortest_paths.hpp | 1 +
247 + 1 file changed, 1 insertion(+)
248 +
249 +diff --git a/include/boost/graph/r_c_shortest_paths.hpp b/include/boost/graph/r_c_shortest_paths.hpp
250 +index afa50cf..7e490fc 100644
251 +--- a/boost/graph/r_c_shortest_paths.hpp
252 ++++ b/boost/graph/r_c_shortest_paths.hpp
253 +@@ -11,6 +11,7 @@
254 + #include <map>
255 + #include <queue>
256 + #include <vector>
257 ++#include <list>
258 +
259 + #include <boost/graph/graph_traits.hpp>
260 + #include <boost/graph/iteration_macros.hpp>