apply an errata patch to Boost, from Brad

This commit is contained in:
sthen 2022-11-13 11:42:23 +00:00
parent 273b1c4797
commit 270233cf30
2 changed files with 23 additions and 3 deletions

View File

@ -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

View 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 ---