apply an errata patch to Boost, from Brad
This commit is contained in:
parent
273b1c4797
commit
270233cf30
@ -1,13 +1,15 @@
|
||||
NOT_FOR_ARCHS-md = alpha hppa sparc64
|
||||
|
||||
DPB_PROPERTIES= parallel
|
||||
|
||||
COMMENT-main= free peer-reviewed portable C++ source libraries
|
||||
COMMENT-md= machine-dependent libraries for boost
|
||||
REVISION-main= 0
|
||||
|
||||
VERSION= 1.80.0
|
||||
EPOCH = 0
|
||||
DISTNAME= boost_${VERSION:S/./_/g}
|
||||
PKGNAME= boost-${VERSION}
|
||||
REVISION-main= 1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= https://boostorg.jfrog.io/artifactory/main/release/${VERSION}/source/
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
@ -121,8 +123,6 @@ CONFIGURE_STYLE= none
|
||||
CONFIGURE_ENV= BJAM_CONFIG="${BJAM_CONFIG}" \
|
||||
CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
|
||||
|
||||
DPB_PROPERTIES= parallel
|
||||
|
||||
NO_TEST= Yes
|
||||
|
||||
SUBST_VARS+= SO_VERSION
|
||||
|
20
devel/boost/patches/patch-boost_config_stdlib_libcpp_hpp
Normal file
20
devel/boost/patches/patch-boost_config_stdlib_libcpp_hpp
Normal file
@ -0,0 +1,20 @@
|
||||
The std lib unary/binary_function base classes are deprecated/removed from libcpp15.
|
||||
https://github.com/boostorg/container_hash/issues/24
|
||||
|
||||
Index: boost/config/stdlib/libcpp.hpp
|
||||
--- boost/config/stdlib/libcpp.hpp.orig
|
||||
+++ boost/config/stdlib/libcpp.hpp
|
||||
@@ -168,4 +168,13 @@
|
||||
# define BOOST_NO_CXX14_HDR_SHARED_MUTEX
|
||||
#endif
|
||||
|
||||
+#if _LIBCPP_VERSION >= 15000
|
||||
+//
|
||||
+// Unary function is now deprecated in C++11 and later:
|
||||
+//
|
||||
+#if __cplusplus >= 201103L
|
||||
+#define BOOST_NO_CXX98_FUNCTION_BASE
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
// --- end ---
|
Loading…
x
Reference in New Issue
Block a user