From 1ff7447aecf663d3245d10a02c68e5170468cad9 Mon Sep 17 00:00:00 2001 From: Patrick Palka Date: Fri, 17 Apr 2026 10:56:11 -0400 Subject: [PATCH] Fix build with clang-19 (and newer) for boost thread Resolves: RHEL-154173 --- ...-1.75-fix-no-member-named_that_error.patch | 24 +++++++++++++++++++ boost.spec | 11 ++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 boost-1.75-fix-no-member-named_that_error.patch diff --git a/boost-1.75-fix-no-member-named_that_error.patch b/boost-1.75-fix-no-member-named_that_error.patch new file mode 100644 index 0000000..e3efd01 --- /dev/null +++ b/boost-1.75-fix-no-member-named_that_error.patch @@ -0,0 +1,24 @@ +From 49ccf9c30a0ca556873dbf64b12b0d741d1b3e66 Mon Sep 17 00:00:00 2001 +From: Arvid Norlander +Date: Fri, 8 Nov 2024 16:48:43 +0100 +Subject: [PATCH] Fix build on clang-19 (which checks more things in + uninstantiated templates) + +Fixes issue #402 +--- + include/boost/thread/future.hpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/boost/thread/future.hpp b/include/boost/thread/future.hpp +index 00f504b9b..d15d7ffa5 100644 +--- a/boost/thread/future.hpp ++++ b/boost/thread/future.hpp +@@ -4668,7 +4668,7 @@ namespace detail + } + run_it& operator=(BOOST_THREAD_RV_REF(run_it) x) BOOST_NOEXCEPT { + if (this != &x) { +- that_=x.that; ++ that_=x.that_; + x.that_.reset(); + } + return *this; diff --git a/boost.spec b/boost.spec index 571d431..aad09fb 100644 --- a/boost.spec +++ b/boost.spec @@ -42,7 +42,7 @@ Name: boost %global real_name boost Summary: The free peer-reviewed portable C++ source libraries Version: 1.75.0 -Release: 13%{?dist} +Release: 14%{?dist} License: Boost and MIT and Python # Replace each . with _ in %%{version} @@ -169,6 +169,10 @@ Patch99: boost-1.75.0-copy_file-exdev.patch # https://github.com/boostorg/json/issues/717 Patch100: boost-1.75.0-json-endian.patch +# https://redhat.atlassian.net/browse/RHEL-154173 +# https://github.com/boostorg/thread/pull/408 +Patch101: boost-1.75-fix-no-member-named_that_error.patch + %bcond_with tests %bcond_with docs_generated @@ -696,6 +700,7 @@ find ./boost -name '*.hpp' -perm /111 | xargs chmod a-x %patch -P98 -p1 %patch -P99 -p1 %patch -P100 -p1 +%patch -P101 -p1 %build %set_build_flags @@ -1301,6 +1306,10 @@ fi %{_mandir}/man1/b2.1* %changelog +* Fri Apr 17 2026 Patrick Palka - 1.75.0-14 +- Backport patch to fix build of boost thread on Clang19 and later + Resolves: RHEL-154173 + * Thu Oct 9 2025 Patrick Palka - 1.75.0-13 - Add Boost.JSON patch for detecting endianness (RHEL-116553)