1 |
commit: e420d181a07a0dcfef293eb85dc299511daf85cd |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 31 12:13:58 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 31 12:14:56 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e420d181 |
7 |
|
8 |
dev-libs/boost: add patch to fix build (a typo) on sparc |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-libs/boost/boost-1.76.0-r1.ebuild | 1 + |
13 |
dev-libs/boost/files/boost-1.76-sparc-define.patch | 21 +++++++++++++++++++++ |
14 |
2 files changed, 22 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/boost/boost-1.76.0-r1.ebuild b/dev-libs/boost/boost-1.76.0-r1.ebuild |
17 |
index 16bc039e226..88835738818 100644 |
18 |
--- a/dev-libs/boost/boost-1.76.0-r1.ebuild |
19 |
+++ b/dev-libs/boost/boost-1.76.0-r1.ebuild |
20 |
@@ -55,6 +55,7 @@ PATCHES=( |
21 |
"${FILESDIR}"/${PN}-1.73-boost-mpi-python-PEP-328.patch |
22 |
"${FILESDIR}"/${PN}-1.74-CVE-2012-2677.patch |
23 |
"${FILESDIR}"/${PN}-1.76-boost-numpy.patch |
24 |
+ "${FILESDIR}"/${PN}-1.76-sparc-define.patch |
25 |
) |
26 |
|
27 |
python_bindings_needed() { |
28 |
|
29 |
diff --git a/dev-libs/boost/files/boost-1.76-sparc-define.patch b/dev-libs/boost/files/boost-1.76-sparc-define.patch |
30 |
new file mode 100644 |
31 |
index 00000000000..b3909ee3137 |
32 |
--- /dev/null |
33 |
+++ b/dev-libs/boost/files/boost-1.76-sparc-define.patch |
34 |
@@ -0,0 +1,21 @@ |
35 |
+https://github.com/boostorg/predef/commit/1be0e4a2d8db15a405f64a6f65507b87c1be7e1a.patch |
36 |
+ |
37 |
+From 1be0e4a2d8db15a405f64a6f65507b87c1be7e1a Mon Sep 17 00:00:00 2001 |
38 |
+From: tkoecker <tkoecker@×××.net> |
39 |
+Date: Fri, 21 May 2021 16:31:11 +0200 |
40 |
+Subject: [PATCH] added missing brackets (#118) |
41 |
+--- a/boost/predef/architecture/sparc.h |
42 |
++++ b/boost/predef/architecture/sparc.h |
43 |
+@@ -34,10 +34,10 @@ Distributed under the Boost Software License, Version 1.0. |
44 |
+ |
45 |
+ #if defined(__sparc__) || defined(__sparc) |
46 |
+ # undef BOOST_ARCH_SPARC |
47 |
+-# if !defined(BOOST_ARCH_SPARC) && (defined(__sparcv9) || defined(__sparc_v9__) |
48 |
++# if !defined(BOOST_ARCH_SPARC) && (defined(__sparcv9) || defined(__sparc_v9__)) |
49 |
+ # define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER(9,0,0) |
50 |
+ # endif |
51 |
+-# if !defined(BOOST_ARCH_SPARC) && (defined(__sparcv8) || defined(__sparc_v8__) |
52 |
++# if !defined(BOOST_ARCH_SPARC) && (defined(__sparcv8) || defined(__sparc_v8__)) |
53 |
+ # define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER(8,0,0) |
54 |
+ # endif |
55 |
+ # if !defined(BOOST_ARCH_SPARC) |