diff --git a/boost-1.77-Fix-Wsign-compare-warning-with-glibc-2.34-on-Linux.patch b/boost-1.77-Fix-Wsign-compare-warning-with-glibc-2.34-on-Linux.patch new file mode 100644 index 0000000000000000000000000000000000000000..f517a49ef3a9d0ceee32ea2e7b90722b8436b4d6 --- /dev/null +++ b/boost-1.77-Fix-Wsign-compare-warning-with-glibc-2.34-on-Linux.patch @@ -0,0 +1,30 @@ +From f9d0e594d43afcb4ab0043117249feb266ba4515 Mon Sep 17 00:00:00 2001 +From: Romain Geissler +Date: Tue, 10 Aug 2021 14:22:28 +0000 +Subject: [PATCH] Fix -Wsign-compare warning with glibc 2.34 on Linux + platforms. + +In file included from /data/mwrep/res/osp/Boost/21-0-0-0/include/boost/thread/thread_only.hpp:17, + from /data/mwrep/res/osp/Boost/21-0-0-0/include/boost/thread/thread.hpp:12, + from src/GetTest.cpp:12: +/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)': +/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] + 61 | if (size(PTHREAD_STACK_MIN)) size=PTHREAD_STACK_MIN; + #endif + size = ((size+page_size-1)/page_size)*page_size; + int res = pthread_attr_setstacksize(&val_, size); diff --git a/boost.spec b/boost.spec index e761791a44f12841c7508008bab9190a649a088c..8fdb02e7aec97732eb3c4d841b5e4fde86ee3fba 100644 --- a/boost.spec +++ b/boost.spec @@ -18,7 +18,7 @@ Name: boost Version: 1.77.0 -Release: 4 +Release: 5 Summary: The free peer-reviewed portable C++ source libraries License: Boost Software License 1.0 URL: http://www.boost.org @@ -44,6 +44,9 @@ Patch4: boost-1.77-locale-remove-linking-with-boost-system.patch # https://github.com/boostorg/type_erasure/pull/19 Patch5: boost-1.77-type_erasure-remove-boost-system-linkage.patch +# https://github.com/boostorg/thread/pull/354 +Patch6: boost-1.77-Fix-Wsign-compare-warning-with-glibc-2.34-on-Linux.patch + Requires: %{name}-atomic%{?_isa} = %{version}-%{release} Requires: %{name}-chrono%{?_isa} = %{version}-%{release} Requires: %{name}-container%{?_isa} = %{version}-%{release} @@ -1073,6 +1076,9 @@ fi %{_mandir}/man1/bjam.1* %changelog +* Thu Dec 02 2021 sdlzx - 1.77.0-5 +- Cleancode: Fix sign compare build warnings in boost-thread + * Wed Oct 06 2021 Liu Zixian - 1.77.0-4 - Remove dependencies on header-only libraries