Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:master commit in: patches/boost/1.75.0/, patches/boost-build/1.75.0/, patches/boost/1.76.0/, ...
Date: Tue, 06 Jul 2021 01:55:48
Message-Id: 1625534120.5e3406541f08d5d69ab6eee06f0978d6cd840fa5.whissi@gentoo
1 commit: 5e3406541f08d5d69ab6eee06f0978d6cd840fa5
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 6 00:39:57 2021 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 6 01:15:20 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=5e340654
7
8 Bump boost to v1.76.0
9
10 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
11
12 gkbuilds/boost-build.gkbuild | 20 +---
13 gkbuilds/boost.gkbuild | 10 +-
14 .../boost-build-1.71.0-respect-c_ld-flags.patch | 9 --
15 .../boost-build-1.71.0-disable_python_rpath.patch | 0
16 ...ost-build-1.73.0-add-none-feature-options.patch | 0
17 ...oost-build-1.74.0-no-implicit-march-flags.patch | 0
18 .../1.76.0/boost-build-1.76.0-python-numpy.patch | 24 ++++
19 .../boost-build-1.76.0-respect-user-flags.patch | 11 ++
20 .../1.75.0/boost-1.73-property-tree-include.patch | 45 --------
21 .../boost-1.71.0-context-x32.patch | 0
22 .../boost-1.71.0-disable_icu_rpath.patch | 0
23 .../boost-1.73-boost-mpi-python-PEP-328.patch | 17 +++
24 .../boost/1.76.0/boost-1.74-CVE-2012-2677.patch | 125 +++++++++++++++++++++
25 patches/boost/1.76.0/boost-1.76-boost-numpy.patch | 23 ++++
26 patches/boost/1.76.0/boost-1.76-sparc-define.patch | 21 ++++
27 15 files changed, 234 insertions(+), 71 deletions(-)
28
29 diff --git a/gkbuilds/boost-build.gkbuild b/gkbuilds/boost-build.gkbuild
30 index baf1811..5d470c1 100644
31 --- a/gkbuilds/boost-build.gkbuild
32 +++ b/gkbuilds/boost-build.gkbuild
33 @@ -1,4 +1,4 @@
34 -# Copyright 1999-2019 Gentoo Authors
35 +# Copyright 2019-2021 Gentoo Authors
36 # Distributed under the terms of the GNU General Public License v2
37
38 # distcc is known to fail compiling boost and will fallback
39 @@ -9,31 +9,19 @@ MY_PV="${PV//./_}"
40 S="${WORKDIR}/boost_${MY_PV}/tools/build/src"
41 QA_IGNORE_DYNAMICALLY_LINKED_PROGRAM='(bjam|b2)$'
42
43 -src_prepare() {
44 - default
45 -
46 - # remove default -march/-mcpu definitions
47 - # bjam is trying to be clever and injects -march= in order to
48 - # optimize code for you. This breaks on 32-bit builds, because
49 - # -march=i686 will not work on an i486 CHOST.
50 - # https://bugs.gentoo.org/624616
51 - sed -e '/^cpu-flags\s*gcc\s*OPTIONS/d' \
52 - -e '/toolset\.flags\s*gcc\s*OPTIONS/d' \
53 - -e "/cpu_flags('gcc',\s*'OPTIONS'/d" \
54 - -i tools/gcc.{jam,py} || die "Failed removing -march/-mcpu"
55 -}
56 -
57 src_compile() {
58 cd engine || die "Failed to chdir to '${S}/engine'!"
59
60 local myargs=(
61 ./build.sh
62 cxx
63 + --cxx="$(tc-getCXX)"
64 + --cxxflags="${CXXFLAGS}"
65 -d+2
66 --without-python
67 )
68
69 - CC=$(tc-getBUILD_CC) CXX=$(tc-getBUILD_CXX) gkexec "${myargs[*]}"
70 + gkexec "${myargs[*]}"
71 }
72
73 src_install() {
74
75 diff --git a/gkbuilds/boost.gkbuild b/gkbuilds/boost.gkbuild
76 index a796e0f..9b7c1b5 100644
77 --- a/gkbuilds/boost.gkbuild
78 +++ b/gkbuilds/boost.gkbuild
79 @@ -1,4 +1,4 @@
80 -# Copyright 1999-2019 Gentoo Authors
81 +# Copyright 2019-2021 Gentoo Authors
82 # Distributed under the terms of the GNU General Public License v2
83
84 # distcc is known to fail compiling boost and will fallback
85 @@ -18,6 +18,14 @@ create_user-config.jam() {
86 cat > "${user_config_jam}" <<- __EOF__ || die
87 using ${compiler} : ${compiler_version} : ${compiler_executable} : <cflags>"${CFLAGS}" <cxxflags>"${CXXFLAGS}" <linkflags>"${LDFLAGS}" ;
88 __EOF__
89 +
90 + # Boost.Build does not allow for disabling of numpy
91 + # extensions, thereby leading to automagic numpy
92 + # https://github.com/boostorg/python/issues/111#issuecomment-280447482
93 + sed \
94 + -e 's/\[ unless \[ python\.numpy \] : <build>no \]/<build>no/g' \
95 + -i "${S}"/libs/python/build/Jamfile \
96 + || die
97 }
98
99 ejam() {
100
101 diff --git a/patches/boost-build/1.75.0/boost-build-1.71.0-respect-c_ld-flags.patch b/patches/boost-build/1.75.0/boost-build-1.71.0-respect-c_ld-flags.patch
102 deleted file mode 100644
103 index f51abea..0000000
104 --- a/patches/boost-build/1.75.0/boost-build-1.71.0-respect-c_ld-flags.patch
105 +++ /dev/null
106 @@ -1,9 +0,0 @@
107 ---- a/engine/build.sh
108 -+++ b/engine/build.sh
109 -@@ -439,5 +439,5 @@
110 - if check_debug_build "$@" ; then B2_CXXFLAGS="${B2_CXXFLAGS_DEBUG}"
111 - else B2_CXXFLAGS="${B2_CXXFLAGS_RELEASE} -DNDEBUG"
112 - fi
113 --echo_run ${B2_CXX} ${CXXFLAGS} ${B2_CXXFLAGS} ${B2_SOURCES} -o b2
114 -+echo_run ${B2_CXX} ${CPPFLAGS} ${CXXFLAGS} ${LDFLAGS} ${B2_CXXFLAGS} ${B2_SOURCES} -o b2
115 - echo_run cp b2 bjam
116
117 diff --git a/patches/boost-build/1.75.0/boost-build-1.71.0-disable_python_rpath.patch b/patches/boost-build/1.76.0/boost-build-1.71.0-disable_python_rpath.patch
118 similarity index 100%
119 rename from patches/boost-build/1.75.0/boost-build-1.71.0-disable_python_rpath.patch
120 rename to patches/boost-build/1.76.0/boost-build-1.71.0-disable_python_rpath.patch
121
122 diff --git a/patches/boost-build/1.75.0/boost-build-1.73.0-add-none-feature-options.patch b/patches/boost-build/1.76.0/boost-build-1.73.0-add-none-feature-options.patch
123 similarity index 100%
124 rename from patches/boost-build/1.75.0/boost-build-1.73.0-add-none-feature-options.patch
125 rename to patches/boost-build/1.76.0/boost-build-1.73.0-add-none-feature-options.patch
126
127 diff --git a/patches/boost-build/1.75.0/boost-build-1.74.0-no-implicit-march-flags.patch b/patches/boost-build/1.76.0/boost-build-1.74.0-no-implicit-march-flags.patch
128 similarity index 100%
129 rename from patches/boost-build/1.75.0/boost-build-1.74.0-no-implicit-march-flags.patch
130 rename to patches/boost-build/1.76.0/boost-build-1.74.0-no-implicit-march-flags.patch
131
132 diff --git a/patches/boost-build/1.76.0/boost-build-1.76.0-python-numpy.patch b/patches/boost-build/1.76.0/boost-build-1.76.0-python-numpy.patch
133 new file mode 100644
134 index 0000000..ed04d54
135 --- /dev/null
136 +++ b/patches/boost-build/1.76.0/boost-build-1.76.0-python-numpy.patch
137 @@ -0,0 +1,24 @@
138 +From 61adb508853be1fa2c01a0c3a0c55fbd16cb9a52 Mon Sep 17 00:00:00 2001
139 +From: Peter Dimov <pdimov@×××××.com>
140 +Date: Mon, 24 May 2021 22:11:23 +0300
141 +Subject: [PATCH] Declare the /python//numpy target to hold the include path
142 + (fixes #725)
143 +
144 +---
145 + tools/python.jam | 3 +++
146 + 1 file changed, 3 insertions(+)
147 +
148 +diff --git a/tools/python.jam b/tools/python.jam
149 +index 00706932d2..0dfc750a22 100644
150 +--- a/tools/python.jam
151 ++++ b/tools/python.jam
152 +@@ -1052,6 +1052,9 @@ local rule configure ( version ? : cmd-or-prefix ? : includes * : libraries ? :
153 + ;
154 + }
155 +
156 ++ # Declare the numpy target, which contains the NumPy include directory
157 ++
158 ++ alias numpy : : $(target-requirements) : : <include>$(.numpy-include) ;
159 + }
160 +
161 + # Conditional rule specification that will prevent building of a target
162
163 diff --git a/patches/boost-build/1.76.0/boost-build-1.76.0-respect-user-flags.patch b/patches/boost-build/1.76.0/boost-build-1.76.0-respect-user-flags.patch
164 new file mode 100644
165 index 0000000..2289e70
166 --- /dev/null
167 +++ b/patches/boost-build/1.76.0/boost-build-1.76.0-respect-user-flags.patch
168 @@ -0,0 +1,11 @@
169 +--- a/engine/build.sh
170 ++++ b/engine/build.sh
171 +@@ -496,7 +496,7 @@
172 + if test_true ${B2_DEBUG_OPT} ; then B2_CXXFLAGS="${B2_CXXFLAGS_DEBUG}"
173 + else B2_CXXFLAGS="${B2_CXXFLAGS_RELEASE} -DNDEBUG"
174 + fi
175 +- ( B2_VERBOSE_OPT=${TRUE} echo_run ${B2_CXX} ${B2_CXXFLAGS} ${B2_SOURCES} -o b2 )
176 ++ ( B2_VERBOSE_OPT=${TRUE} echo_run ${B2_CXX} ${CPPFLAGS} ${B2_CXXFLAGS} ${LDFLAGS} ${B2_SOURCES} -o b2 )
177 + ( B2_VERBOSE_OPT=${TRUE} echo_run cp b2 bjam )
178 + }
179 +
180
181 diff --git a/patches/boost/1.75.0/boost-1.73-property-tree-include.patch b/patches/boost/1.75.0/boost-1.73-property-tree-include.patch
182 deleted file mode 100644
183 index 5393882..0000000
184 --- a/patches/boost/1.75.0/boost-1.73-property-tree-include.patch
185 +++ /dev/null
186 @@ -1,45 +0,0 @@
187 -From d1c8825a45a0717e1ad79583d3283b0e5e32831e Mon Sep 17 00:00:00 2001
188 -From: Andrey Semashev <Lastique@××××××××××××××××××××.com>
189 -Date: Tue, 28 Apr 2020 22:03:04 +0300
190 -Subject: [PATCH] Fix usage of deprecated Boost.Bind features
191 -
192 -This fixes deprecation warnings generated by boost/bind.hpp.
193 -
194 -Also, use a more actual include path for ref.hpp.
195 ----
196 - boost/property_tree/json_parser/detail/parser.hpp | 8 ++++----
197 - 1 file changed, 4 insertions(+), 4 deletions(-)
198 -
199 -diff --git a/boost/property_tree/json_parser/detail/parser.hpp b/boost/property_tree/json_parser/detail/parser.hpp
200 -index 5554990fb..6cf636394 100644
201 ---- a/boost/property_tree/json_parser/detail/parser.hpp
202 -+++ b/boost/property_tree/json_parser/detail/parser.hpp
203 -@@ -3,8 +3,8 @@
204 -
205 - #include <boost/property_tree/json_parser/error.hpp>
206 -
207 --#include <boost/ref.hpp>
208 --#include <boost/bind.hpp>
209 -+#include <boost/core/ref.hpp>
210 -+#include <boost/bind/bind.hpp>
211 - #include <boost/format.hpp>
212 -
213 - #include <iterator>
214 -@@ -214,7 +214,7 @@ namespace boost { namespace property_tree {
215 - void process_codepoint(Sentinel end, EncodingErrorFn error_fn) {
216 - encoding.transcode_codepoint(cur, end,
217 - boost::bind(&Callbacks::on_code_unit,
218 -- boost::ref(callbacks), _1),
219 -+ boost::ref(callbacks), boost::placeholders::_1),
220 - error_fn);
221 - }
222 -
223 -@@ -517,7 +517,7 @@ namespace boost { namespace property_tree {
224 - void feed(unsigned codepoint) {
225 - encoding.feed_codepoint(codepoint,
226 - boost::bind(&Callbacks::on_code_unit,
227 -- boost::ref(callbacks), _1));
228 -+ boost::ref(callbacks), boost::placeholders::_1));
229 - }
230 -
231 - Callbacks& callbacks;
232
233 diff --git a/patches/boost/1.75.0/boost-1.71.0-context-x32.patch b/patches/boost/1.76.0/boost-1.71.0-context-x32.patch
234 similarity index 100%
235 rename from patches/boost/1.75.0/boost-1.71.0-context-x32.patch
236 rename to patches/boost/1.76.0/boost-1.71.0-context-x32.patch
237
238 diff --git a/patches/boost/1.75.0/boost-1.71.0-disable_icu_rpath.patch b/patches/boost/1.76.0/boost-1.71.0-disable_icu_rpath.patch
239 similarity index 100%
240 rename from patches/boost/1.75.0/boost-1.71.0-disable_icu_rpath.patch
241 rename to patches/boost/1.76.0/boost-1.71.0-disable_icu_rpath.patch
242
243 diff --git a/patches/boost/1.76.0/boost-1.73-boost-mpi-python-PEP-328.patch b/patches/boost/1.76.0/boost-1.73-boost-mpi-python-PEP-328.patch
244 new file mode 100644
245 index 0000000..444db2b
246 --- /dev/null
247 +++ b/patches/boost/1.76.0/boost-1.73-boost-mpi-python-PEP-328.patch
248 @@ -0,0 +1,17 @@
249 +--- a/libs/mpi/build/__init__.py
250 ++++ b/libs/mpi/build/__init__.py
251 +@@ -1,10 +1,12 @@
252 ++from __future__ import absolute_import
253 ++
254 + import sys
255 + if sys.platform == 'linux2':
256 + import DLFCN as dl
257 + flags = sys.getdlopenflags()
258 + sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL)
259 +- import mpi
260 ++ from . import mpi
261 + sys.setdlopenflags(flags)
262 + else:
263 +- import mpi
264 ++ from . import mpi
265 +
266
267 diff --git a/patches/boost/1.76.0/boost-1.74-CVE-2012-2677.patch b/patches/boost/1.76.0/boost-1.74-CVE-2012-2677.patch
268 new file mode 100644
269 index 0000000..ff947f7
270 --- /dev/null
271 +++ b/patches/boost/1.76.0/boost-1.74-CVE-2012-2677.patch
272 @@ -0,0 +1,125 @@
273 +https://src.fedoraproject.org/rpms/boost/raw/master/f/boost-1.58.0-pool.patch
274 +https://bugzilla.redhat.com/show_bug.cgi?id=828856
275 +https://bugs.gentoo.org/620468
276 +https://svn.boost.org/trac10/ticket/6701
277 +
278 +Index: boost/pool/pool.hpp
279 +===================================================================
280 +--- a/boost/pool/pool.hpp (revision 78317)
281 ++++ b/boost/pool/pool.hpp (revision 78326)
282 +@@ -27,4 +27,6 @@
283 + #include <boost/pool/poolfwd.hpp>
284 +
285 ++// std::numeric_limits
286 ++#include <boost/limits.hpp>
287 + // boost::integer::static_lcm
288 + #include <boost/integer/common_factor_ct.hpp>
289 +@@ -358,4 +360,11 @@
290 + }
291 +
292 ++ size_type max_chunks() const
293 ++ { //! Calculated maximum number of memory chunks that can be allocated in a single call by this Pool.
294 ++ size_type partition_size = alloc_size();
295 ++ size_type POD_size = integer::static_lcm<sizeof(size_type), sizeof(void *)>::value + sizeof(size_type);
296 ++ return (std::numeric_limits<size_type>::max() - POD_size) / alloc_size();
297 ++ }
298 ++
299 + static void * & nextof(void * const ptr)
300 + { //! \returns Pointer dereferenced.
301 +@@ -377,5 +388,7 @@
302 + //! the first time that object needs to allocate system memory.
303 + //! The default is 32. This parameter may not be 0.
304 +- //! \param nmax_size is the maximum number of chunks to allocate in one block.
305 ++ //! \param nmax_size is the maximum number of chunks to allocate in one block.
306 ++ set_next_size(nnext_size);
307 ++ set_max_size(nmax_size);
308 + }
309 +
310 +@@ -400,7 +413,7 @@
311 + }
312 + void set_next_size(const size_type nnext_size)
313 +- { //! Set number of chunks to request from the system the next time that object needs to allocate system memory. This value should never be set to 0.
314 +- //! \returns nnext_size.
315 +- next_size = start_size = nnext_size;
316 ++ { //! Set number of chunks to request from the system the next time that object needs to allocate system memory. This value should never be set to 0.
317 ++ BOOST_USING_STD_MIN();
318 ++ next_size = start_size = min BOOST_PREVENT_MACRO_SUBSTITUTION(nnext_size, max_chunks());
319 + }
320 + size_type get_max_size() const
321 +@@ -410,5 +423,6 @@
322 + void set_max_size(const size_type nmax_size)
323 + { //! Set max_size.
324 +- max_size = nmax_size;
325 ++ BOOST_USING_STD_MIN();
326 ++ max_size = min BOOST_PREVENT_MACRO_SUBSTITUTION(nmax_size, max_chunks());
327 + }
328 + size_type get_requested_size() const
329 +@@ -713,7 +727,7 @@
330 + BOOST_USING_STD_MIN();
331 + if(!max_size)
332 +- next_size <<= 1;
333 ++ set_next_size(next_size << 1);
334 + else if( next_size*partition_size/requested_size < max_size)
335 +- next_size = min BOOST_PREVENT_MACRO_SUBSTITUTION(next_size << 1, max_size*requested_size/ partition_size);
336 ++ set_next_size(min BOOST_PREVENT_MACRO_SUBSTITUTION(next_size << 1, max_size * requested_size / partition_size));
337 +
338 + // initialize it,
339 +@@ -753,7 +767,7 @@
340 + BOOST_USING_STD_MIN();
341 + if(!max_size)
342 +- next_size <<= 1;
343 ++ set_next_size(next_size << 1);
344 + else if( next_size*partition_size/requested_size < max_size)
345 +- next_size = min BOOST_PREVENT_MACRO_SUBSTITUTION(next_size << 1, max_size*requested_size/ partition_size);
346 ++ set_next_size(min BOOST_PREVENT_MACRO_SUBSTITUTION(next_size << 1, max_size * requested_size / partition_size));
347 +
348 + // initialize it,
349 +@@ -797,4 +811,6 @@
350 + //! \returns Address of chunk n if allocated ok.
351 + //! \returns 0 if not enough memory for n chunks.
352 ++ if (n > max_chunks())
353 ++ return 0;
354 +
355 + const size_type partition_size = alloc_size();
356 +@@ -845,7 +861,7 @@
357 + BOOST_USING_STD_MIN();
358 + if(!max_size)
359 +- next_size <<= 1;
360 ++ set_next_size(next_size << 1);
361 + else if( next_size*partition_size/requested_size < max_size)
362 +- next_size = min BOOST_PREVENT_MACRO_SUBSTITUTION(next_size << 1, max_size*requested_size/ partition_size);
363 ++ set_next_size(min BOOST_PREVENT_MACRO_SUBSTITUTION(next_size << 1, max_size * requested_size / partition_size));
364 +
365 + // insert it into the list,
366 +Index: libs/pool/test/test_bug_6701.cpp
367 +===================================================================
368 +--- a/libs/pool/test/test_bug_6701.cpp (revision 78326)
369 ++++ b/libs/pool/test/test_bug_6701.cpp (revision 78326)
370 +@@ -0,0 +1,27 @@
371 ++/* Copyright (C) 2012 Étienne Dupuis
372 ++*
373 ++* Use, modification and distribution is subject to the
374 ++* Boost Software License, Version 1.0. (See accompanying
375 ++* file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
376 ++*/
377 ++
378 ++// Test of bug #6701 (https://svn.boost.org/trac/boost/ticket/6701)
379 ++
380 ++#include <boost/pool/object_pool.hpp>
381 ++#include <boost/limits.hpp>
382 ++
383 ++int main()
384 ++{
385 ++ boost::pool<> p(1024, std::numeric_limits<size_t>::max() / 768);
386 ++
387 ++ void *x = p.malloc();
388 ++ BOOST_ASSERT(!x);
389 ++
390 ++ BOOST_ASSERT(std::numeric_limits<size_t>::max() / 1024 >= p.get_next_size());
391 ++ BOOST_ASSERT(std::numeric_limits<size_t>::max() / 1024 >= p.get_max_size());
392 ++
393 ++ void *y = p.ordered_malloc(std::numeric_limits<size_t>::max() / 768);
394 ++ BOOST_ASSERT(!y);
395 ++
396 ++ return 0;
397 ++}
398
399 diff --git a/patches/boost/1.76.0/boost-1.76-boost-numpy.patch b/patches/boost/1.76.0/boost-1.76-boost-numpy.patch
400 new file mode 100644
401 index 0000000..d9af132
402 --- /dev/null
403 +++ b/patches/boost/1.76.0/boost-1.76-boost-numpy.patch
404 @@ -0,0 +1,23 @@
405 +From 0796305c863804a2b31610507c531da5c0408422 Mon Sep 17 00:00:00 2001
406 +From: Peter Dimov <pdimov@×××××.com>
407 +Date: Mon, 24 May 2021 22:14:55 +0300
408 +Subject: [PATCH] Use the /python//numpy target instead of [ numpy.include ]
409 + (fixes #361)
410 +
411 +---
412 + libs/python/build/Jamfile | 2 +-
413 + 1 file changed, 1 insertion(+), 1 deletion(-)
414 +
415 +diff --git a/libs/python/build/Jamfile b/libs/python/build/Jamfile
416 +index dbc9fb203..03b69a25d 100644
417 +--- a/libs/python/build/Jamfile
418 ++++ b/libs/python/build/Jamfile
419 +@@ -117,7 +117,7 @@ lib boost_numpy
420 + <define>BOOST_NUMPY_SOURCE
421 + [ cond [ python.numpy ] : <library>/python//python_for_extensions ]
422 + [ unless [ python.numpy ] : <build>no ]
423 +- <include>$(numpy-include)
424 ++ <library>/python//numpy
425 + <library>boost_python
426 + <python-debugging>on:<define>BOOST_DEBUG_PYTHON
427 + -<tag>@$(BOOST_JAMROOT_MODULE)%$(BOOST_JAMROOT_MODULE).tag
428
429 diff --git a/patches/boost/1.76.0/boost-1.76-sparc-define.patch b/patches/boost/1.76.0/boost-1.76-sparc-define.patch
430 new file mode 100644
431 index 0000000..b3909ee
432 --- /dev/null
433 +++ b/patches/boost/1.76.0/boost-1.76-sparc-define.patch
434 @@ -0,0 +1,21 @@
435 +https://github.com/boostorg/predef/commit/1be0e4a2d8db15a405f64a6f65507b87c1be7e1a.patch
436 +
437 +From 1be0e4a2d8db15a405f64a6f65507b87c1be7e1a Mon Sep 17 00:00:00 2001
438 +From: tkoecker <tkoecker@×××.net>
439 +Date: Fri, 21 May 2021 16:31:11 +0200
440 +Subject: [PATCH] added missing brackets (#118)
441 +--- a/boost/predef/architecture/sparc.h
442 ++++ b/boost/predef/architecture/sparc.h
443 +@@ -34,10 +34,10 @@ Distributed under the Boost Software License, Version 1.0.
444 +
445 + #if defined(__sparc__) || defined(__sparc)
446 + # undef BOOST_ARCH_SPARC
447 +-# if !defined(BOOST_ARCH_SPARC) && (defined(__sparcv9) || defined(__sparc_v9__)
448 ++# if !defined(BOOST_ARCH_SPARC) && (defined(__sparcv9) || defined(__sparc_v9__))
449 + # define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER(9,0,0)
450 + # endif
451 +-# if !defined(BOOST_ARCH_SPARC) && (defined(__sparcv8) || defined(__sparc_v8__)
452 ++# if !defined(BOOST_ARCH_SPARC) && (defined(__sparcv8) || defined(__sparc_v8__))
453 + # define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER(8,0,0)
454 + # endif
455 + # if !defined(BOOST_ARCH_SPARC)