summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-support/boost/boost/0001-The-std-lib-unary-binary_function-base-classes-are-d.patch34
-rw-r--r--meta/recipes-support/boost/boost_1.79.0.bb1
2 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-support/boost/boost/0001-The-std-lib-unary-binary_function-base-classes-are-d.patch b/meta/recipes-support/boost/boost/0001-The-std-lib-unary-binary_function-base-classes-are-d.patch
new file mode 100644
index 0000000000..49603348ee
--- /dev/null
+++ b/meta/recipes-support/boost/boost/0001-The-std-lib-unary-binary_function-base-classes-are-d.patch
@@ -0,0 +1,34 @@
1From f9b55f5a1fab85bf73c95e6372779d6f50f75e84 Mon Sep 17 00:00:00 2001
2From: jzmaddock <john@johnmaddock.co.uk>
3Date: Mon, 11 Jul 2022 18:26:07 +0100
4Subject: [PATCH] The std lib unary/binary_function base classes are
5 deprecated/removed from libcpp15. Fixes
6 https://github.com/boostorg/container_hash/issues/24.
7
8Upstream-Status: Backport [https://github.com/boostorg/config/pull/440/commits/f0af4a9184457939b89110795ae2d293582c5f66]
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 boost/config/stdlib/libcpp.hpp | 9 +++++++++
12 1 file changed, 9 insertions(+)
13
14diff --git a/boost/config/stdlib/libcpp.hpp b/boost/config/stdlib/libcpp.hpp
15index bc8536ead..0e9f2445e 100644
16--- a/boost/config/stdlib/libcpp.hpp
17+++ b/boost/config/stdlib/libcpp.hpp
18@@ -168,4 +168,13 @@
19 # define BOOST_NO_CXX14_HDR_SHARED_MUTEX
20 #endif
21
22+#if _LIBCPP_VERSION >= 15000
23+//
24+// Unary function is now deprecated in C++11 and later:
25+//
26+#if __cplusplus >= 201103L
27+#define BOOST_NO_CXX98_FUNCTION_BASE
28+#endif
29+#endif
30+
31 // --- end ---
32--
332.37.2
34
diff --git a/meta/recipes-support/boost/boost_1.79.0.bb b/meta/recipes-support/boost/boost_1.79.0.bb
index dd5d6eadd6..09e2556790 100644
--- a/meta/recipes-support/boost/boost_1.79.0.bb
+++ b/meta/recipes-support/boost/boost_1.79.0.bb
@@ -5,4 +5,5 @@ SRC_URI += "file://boost-CVE-2012-2677.patch \
5 file://boost-math-disable-pch-for-gcc.patch \ 5 file://boost-math-disable-pch-for-gcc.patch \
6 file://0001-Don-t-set-up-arch-instruction-set-flags-we-do-that-o.patch \ 6 file://0001-Don-t-set-up-arch-instruction-set-flags-we-do-that-o.patch \
7 file://0001-dont-setup-compiler-flags-m32-m64.patch \ 7 file://0001-dont-setup-compiler-flags-m32-m64.patch \
8 file://0001-The-std-lib-unary-binary_function-base-classes-are-d.patch \
8 " 9 "