dev-libs/boost: add patch to fix build (a typo) on sparc

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2021-05-31 12:14:56 +00:00
parent 920dd267b3
commit e420d181a0
2 changed files with 22 additions and 0 deletions
+1
View File
@@ -55,6 +55,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-1.73-boost-mpi-python-PEP-328.patch
"${FILESDIR}"/${PN}-1.74-CVE-2012-2677.patch
"${FILESDIR}"/${PN}-1.76-boost-numpy.patch
"${FILESDIR}"/${PN}-1.76-sparc-define.patch
)
python_bindings_needed() {
@@ -0,0 +1,21 @@
https://github.com/boostorg/predef/commit/1be0e4a2d8db15a405f64a6f65507b87c1be7e1a.patch
From 1be0e4a2d8db15a405f64a6f65507b87c1be7e1a Mon Sep 17 00:00:00 2001
From: tkoecker <tkoecker@gmx.net>
Date: Fri, 21 May 2021 16:31:11 +0200
Subject: [PATCH] added missing brackets (#118)
--- a/boost/predef/architecture/sparc.h
+++ b/boost/predef/architecture/sparc.h
@@ -34,10 +34,10 @@ Distributed under the Boost Software License, Version 1.0.
#if defined(__sparc__) || defined(__sparc)
# undef BOOST_ARCH_SPARC
-# if !defined(BOOST_ARCH_SPARC) && (defined(__sparcv9) || defined(__sparc_v9__)
+# if !defined(BOOST_ARCH_SPARC) && (defined(__sparcv9) || defined(__sparc_v9__))
# define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER(9,0,0)
# endif
-# if !defined(BOOST_ARCH_SPARC) && (defined(__sparcv8) || defined(__sparc_v8__)
+# if !defined(BOOST_ARCH_SPARC) && (defined(__sparcv8) || defined(__sparc_v8__))
# define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER(8,0,0)
# endif
# if !defined(BOOST_ARCH_SPARC)