The same build error as reported with Solaris occurred on a Fedora 35
machine. The problem is already fixed upstream.
Related PR:
 https://github.com/boostorg/thread/pull/297
Related commit:
 
https://github.com/boostorg/thread/commit/e54f7e39606b807b8f9fc84fbd58cafeabea6562

Since the patch only deals with a build warning, it seems safe to apply
it always not just for native builds.

Signed-off-by: Adrian Freihofer <[email protected]>
---
 meta/recipes-support/boost/boost_1.72.0.bb    |  1 +
 ...-elide-a-warning-that-caused-Solaris.patch | 26 +++++++++++++++++++
 2 files changed, 27 insertions(+)
 create mode 100644 
meta/recipes-support/boost/files/0001-Revert-change-to-elide-a-warning-that-caused-Solaris.patch

diff --git a/meta/recipes-support/boost/boost_1.72.0.bb 
b/meta/recipes-support/boost/boost_1.72.0.bb
index df1cc16937..23595da930 100644
--- a/meta/recipes-support/boost/boost_1.72.0.bb
+++ b/meta/recipes-support/boost/boost_1.72.0.bb
@@ -9,4 +9,5 @@ SRC_URI += " \
            file://0001-dont-setup-compiler-flags-m32-m64.patch \
            file://0001-revert-cease-dependence-on-range.patch \
            file://0001-added-typedef-executor_type.patch \
+           
file://0001-Revert-change-to-elide-a-warning-that-caused-Solaris.patch \
            "
diff --git 
a/meta/recipes-support/boost/files/0001-Revert-change-to-elide-a-warning-that-caused-Solaris.patch
 
b/meta/recipes-support/boost/files/0001-Revert-change-to-elide-a-warning-that-caused-Solaris.patch
new file mode 100644
index 0000000000..97111ce2f8
--- /dev/null
+++ 
b/meta/recipes-support/boost/files/0001-Revert-change-to-elide-a-warning-that-caused-Solaris.patch
@@ -0,0 +1,26 @@
+From 019dd7cea49659e45e12d2b44480c133372ab401 Mon Sep 17 00:00:00 2001
+From: Rob Boehne <[email protected]>
+Date: Wed, 20 Nov 2019 11:25:20 -0600
+Subject: [PATCH] Revert change to elide a warning that caused Solaris builds
+ to fail.
+
+---
+ boost/thread/pthread/thread_data.hpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/boost/thread/pthread/thread_data.hpp 
b/boost/thread/pthread/thread_data.hpp
+index aefbeb43c..bc9b1367a 100644
+--- a/boost/thread/pthread/thread_data.hpp
++++ b/boost/thread/pthread/thread_data.hpp
+@@ -57,7 +57,7 @@ namespace boost
+ #else
+           std::size_t page_size = ::sysconf( _SC_PAGESIZE);
+ #endif
+-#if PTHREAD_STACK_MIN > 0
++#ifdef PTHREAD_STACK_MIN
+           if (size<PTHREAD_STACK_MIN) size=PTHREAD_STACK_MIN;
+ #endif
+           size = ((size+page_size-1)/page_size)*page_size;
+-- 
+2.35.1
+
-- 
2.35.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163960): 
https://lists.openembedded.org/g/openembedded-core/message/163960
Mute This Topic: https://lists.openembedded.org/mt/90221152/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to