diff --git a/devel/boost/Makefile b/devel/boost/Makefile index 65c6bb1965d..22759a11945 100644 --- a/devel/boost/Makefile +++ b/devel/boost/Makefile @@ -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 diff --git a/devel/boost/patches/patch-boost_config_stdlib_libcpp_hpp b/devel/boost/patches/patch-boost_config_stdlib_libcpp_hpp new file mode 100644 index 00000000000..cc29e779432 --- /dev/null +++ b/devel/boost/patches/patch-boost_config_stdlib_libcpp_hpp @@ -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 ---