summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2022-04-01 21:08:21 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-09 08:27:11 +0100
commit6b6d412f590ef65d9f5ad246f8983fdc6d7c6e1c (patch)
treefefbde732bd8426919c305f72d418f848c06011a
parent331a9f9068cdc2983a3e59b5a3d74eeab1820d5e (diff)
downloadpoky-6b6d412f590ef65d9f5ad246f8983fdc6d7c6e1c.tar.gz
boost: fix native build with glibc-2.34
(From OE-Core rev: 64ba0d40a4c77a23778c51511f2d167e2056eea3) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-support/boost/boost/0001-Fix-Wsign-compare-warning-with-glibc-2.34-on-Linux-p.patch32
-rw-r--r--meta/recipes-support/boost/boost/0001-Revert-change-to-elide-a-warning-that-caused-Solaris.patch24
-rw-r--r--meta/recipes-support/boost/boost_1.72.0.bb2
3 files changed, 58 insertions, 0 deletions
diff --git a/meta/recipes-support/boost/boost/0001-Fix-Wsign-compare-warning-with-glibc-2.34-on-Linux-p.patch b/meta/recipes-support/boost/boost/0001-Fix-Wsign-compare-warning-with-glibc-2.34-on-Linux-p.patch
new file mode 100644
index 0000000000..46c706931b
--- /dev/null
+++ b/meta/recipes-support/boost/boost/0001-Fix-Wsign-compare-warning-with-glibc-2.34-on-Linux-p.patch
@@ -0,0 +1,32 @@
1From f9d0e594d43afcb4ab0043117249feb266ba4515 Mon Sep 17 00:00:00 2001
2From: Romain Geissler <romain.geissler@amadeus.com>
3Date: Tue, 10 Aug 2021 14:22:28 +0000
4Subject: [PATCH] Fix -Wsign-compare warning with glibc 2.34 on Linux
5 platforms.
6
7In file included from /data/mwrep/res/osp/Boost/21-0-0-0/include/boost/thread/thread_only.hpp:17,
8 from /data/mwrep/res/osp/Boost/21-0-0-0/include/boost/thread/thread.hpp:12,
9 from src/GetTest.cpp:12:
10/data/mwrep/res/osp/Boost/21-0-0-0/include/boost/thread/pthread/thread_data.hpp: In member function 'void boost::thread_attributes::set_stack_size(std::size_t)':
11/data/mwrep/res/osp/Boost/21-0-0-0/include/boost/thread/pthread/thread_data.hpp:61:19: error: comparison of integer expressions of different signedness: 'std::size_t' {aka 'long unsigned int'} and 'long int' [-Werror=sign-compare]
12 61 | if (size<PTHREAD_STACK_MIN) size=PTHREAD_STACK_MIN;
13 | ^
14
15Upstream-Status: Backport [1.78.0 https://github.com/boostorg/thread/commit/f9d0e594d43afcb4ab0043117249feb266ba4515]
16---
17 boost/thread/pthread/thread_data.hpp | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/boost/thread/pthread/thread_data.hpp b/boost/thread/pthread/thread_data.hpp
21index bc9b1367..c43b276d 100644
22--- a/boost/thread/pthread/thread_data.hpp
23+++ b/boost/thread/pthread/thread_data.hpp
24@@ -58,7 +58,7 @@ namespace boost
25 std::size_t page_size = ::sysconf( _SC_PAGESIZE);
26 #endif
27 #ifdef PTHREAD_STACK_MIN
28- if (size<PTHREAD_STACK_MIN) size=PTHREAD_STACK_MIN;
29+ if (size<static_cast<std::size_t>(PTHREAD_STACK_MIN)) size=PTHREAD_STACK_MIN;
30 #endif
31 size = ((size+page_size-1)/page_size)*page_size;
32 int res = pthread_attr_setstacksize(&val_, size);
diff --git a/meta/recipes-support/boost/boost/0001-Revert-change-to-elide-a-warning-that-caused-Solaris.patch b/meta/recipes-support/boost/boost/0001-Revert-change-to-elide-a-warning-that-caused-Solaris.patch
new file mode 100644
index 0000000000..3784cf9165
--- /dev/null
+++ b/meta/recipes-support/boost/boost/0001-Revert-change-to-elide-a-warning-that-caused-Solaris.patch
@@ -0,0 +1,24 @@
1From 74fb0a26099bc51d717f5f154b37231ce7df3e98 Mon Sep 17 00:00:00 2001
2From: Rob Boehne <robb@datalogics.com>
3Date: Wed, 20 Nov 2019 11:25:20 -0600
4Subject: [PATCH] Revert change to elide a warning that caused Solaris builds
5 to fail.
6
7Upstream-Status: Backport [1.73.0 https://github.com/boostorg/thread/commit/74fb0a26099bc51d717f5f154b37231ce7df3e98]
8---
9 boost/thread/pthread/thread_data.hpp | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/boost/thread/pthread/thread_data.hpp b/boost/thread/pthread/thread_data.hpp
13index aefbeb43..bc9b1367 100644
14--- a/boost/thread/pthread/thread_data.hpp
15+++ b/boost/thread/pthread/thread_data.hpp
16@@ -57,7 +57,7 @@ namespace boost
17 #else
18 std::size_t page_size = ::sysconf( _SC_PAGESIZE);
19 #endif
20-#if PTHREAD_STACK_MIN > 0
21+#ifdef PTHREAD_STACK_MIN
22 if (size<PTHREAD_STACK_MIN) size=PTHREAD_STACK_MIN;
23 #endif
24 size = ((size+page_size-1)/page_size)*page_size;
diff --git a/meta/recipes-support/boost/boost_1.72.0.bb b/meta/recipes-support/boost/boost_1.72.0.bb
index df1cc16937..b3ec11933c 100644
--- a/meta/recipes-support/boost/boost_1.72.0.bb
+++ b/meta/recipes-support/boost/boost_1.72.0.bb
@@ -9,4 +9,6 @@ SRC_URI += " \
9 file://0001-dont-setup-compiler-flags-m32-m64.patch \ 9 file://0001-dont-setup-compiler-flags-m32-m64.patch \
10 file://0001-revert-cease-dependence-on-range.patch \ 10 file://0001-revert-cease-dependence-on-range.patch \
11 file://0001-added-typedef-executor_type.patch \ 11 file://0001-added-typedef-executor_type.patch \
12 file://0001-Revert-change-to-elide-a-warning-that-caused-Solaris.patch \
13 file://0001-Fix-Wsign-compare-warning-with-glibc-2.34-on-Linux-p.patch \
12 " 14 "