commit:     c09487df79c0be8952761253c6b66dbe848b01ea
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Apr  9 08:08:34 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Apr  9 08:08:59 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c09487df

dev-libs/boost: fix typo in thread

Closes: https://bugs.gentoo.org/945916
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...ost-1.87.0-r2.ebuild => boost-1.87.0-r3.ebuild} |  1 +
 .../boost/files/boost-1.87.0-thread-typo.patch     | 28 ++++++++++++++++++++++
 2 files changed, 29 insertions(+)

diff --git a/dev-libs/boost/boost-1.87.0-r2.ebuild 
b/dev-libs/boost/boost-1.87.0-r3.ebuild
similarity index 99%
rename from dev-libs/boost/boost-1.87.0-r2.ebuild
rename to dev-libs/boost/boost-1.87.0-r3.ebuild
index 355e0ba1f85c..fd197c65f52f 100644
--- a/dev-libs/boost/boost-1.87.0-r2.ebuild
+++ b/dev-libs/boost/boost-1.87.0-r3.ebuild
@@ -52,6 +52,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-1.79.0-build-auto_index-tool.patch
        "${FILESDIR}"/${PN}-1.87.0-move.patch
        "${FILESDIR}"/${PN}-1.87.0-smart_ptr-operator.patch
+       "${FILESDIR}"/${PN}-1.87.0-thread-typo.patch
 )
 
 create_user-config.jam() {

diff --git a/dev-libs/boost/files/boost-1.87.0-thread-typo.patch 
b/dev-libs/boost/files/boost-1.87.0-thread-typo.patch
new file mode 100644
index 000000000000..2674cffe9367
--- /dev/null
+++ b/dev-libs/boost/files/boost-1.87.0-thread-typo.patch
@@ -0,0 +1,28 @@
+https://bugs.gentoo.org/945916
+https://github.com/boostorg/thread/pull/408
+
+From 49ccf9c30a0ca556873dbf64b12b0d741d1b3e66 Mon Sep 17 00:00:00 2001
+From: Arvid Norlander <[email protected]>
+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;
+

Reply via email to