commit: 86a2a61ea2d9b680f7e29512f596bfb829351760 Author: Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com> AuthorDate: Tue May 6 21:27:18 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed May 7 10:50:14 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86a2a61e
dev-libs/boost: fix algorithm tests Signed-off-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com> Part-of: https://github.com/gentoo/gentoo/pull/41966 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-libs/boost/boost-1.88.0.ebuild | 3 +-- .../boost-1.88.0-algorithm-reverse_copy.patch | 24 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/dev-libs/boost/boost-1.88.0.ebuild b/dev-libs/boost/boost-1.88.0.ebuild index 705275155321..e1d6bd11e216 100644 --- a/dev-libs/boost/boost-1.88.0.ebuild +++ b/dev-libs/boost/boost-1.88.0.ebuild @@ -49,6 +49,7 @@ PATCHES=( "${FILESDIR}"/${PN}-1.81.0-disable_icu_rpath.patch "${FILESDIR}"/${PN}-1.79.0-build-auto_index-tool.patch "${FILESDIR}"/${PN}-1.87.0-process-error-alpha.patch + "${FILESDIR}"/${PN}-1.88.0-algorithm-reverse_copy.patch "${FILESDIR}"/${PN}-1.88.0-beast-network-sandbox.patch "${FILESDIR}"/${PN}-1.88.0-bind-no-Werror.patch "${FILESDIR}"/${PN}-1.88.0-yap-cstdint.patch @@ -254,8 +255,6 @@ multilib_src_test() { # The following libraries do not compile or fail their tests: local libs_excluded=( - # fails to use std::reverse_copy - "algorithm" # is_invocable.cpp:35:58: error: static assertion failed: (std::is_invocable<Callable, Args...>() == boost::callable_traits::is_invocable<Callable, Args...>()) "callable_traits" # test output comparison failure diff --git a/dev-libs/boost/files/boost-1.88.0-algorithm-reverse_copy.patch b/dev-libs/boost/files/boost-1.88.0-algorithm-reverse_copy.patch new file mode 100644 index 000000000000..78e7d47dd270 --- /dev/null +++ b/dev-libs/boost/files/boost-1.88.0-algorithm-reverse_copy.patch @@ -0,0 +1,24 @@ +Patch from: https://github.com/boostorg/algorithm/pull/124 +Fixed patch paths to match boost distribution. + +From 7012619c8056b1b30f88bc57dd39c80c0018214f Mon Sep 17 00:00:00 2001 +From: Yuriy Chernyshov <[email protected]> +Date: Mon, 5 May 2025 18:01:59 +0200 +Subject: [PATCH] Add missing include + +--- + include/boost/algorithm/searching/boyer_moore.hpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/boost/algorithm/searching/boyer_moore.hpp b/include/boost/algorithm/searching/boyer_moore.hpp +index 80a5a4474..e3c00105c 100644 +--- a/boost/algorithm/searching/boyer_moore.hpp ++++ b/boost/algorithm/searching/boyer_moore.hpp +@@ -10,6 +10,7 @@ + #ifndef BOOST_ALGORITHM_BOYER_MOORE_SEARCH_HPP + #define BOOST_ALGORITHM_BOYER_MOORE_SEARCH_HPP + ++#include <algorithm> // for std::reverse_copy + #include <iterator> // for std::iterator_traits + + #include <boost/config.hpp>
