commit:     fad944f5c745adb8b2f682ce6701263f489e68a3
Author:     Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com>
AuthorDate: Wed May  7 10:28:48 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May  7 10:50:15 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fad944f5

dev-libs/boost: add include for add_const to range library

Closes: https://bugs.gentoo.org/955526
Signed-off-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com>
Part-of: https://github.com/gentoo/gentoo/pull/41966
Closes: https://github.com/gentoo/gentoo/pull/41966
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...{boost-1.88.0.ebuild => boost-1.88.0-r1.ebuild} |  1 +
 .../files/boost-1.88.0-range-any_iterator.patch    | 27 ++++++++++++++++++++++
 2 files changed, 28 insertions(+)

diff --git a/dev-libs/boost/boost-1.88.0.ebuild 
b/dev-libs/boost/boost-1.88.0-r1.ebuild
similarity index 99%
rename from dev-libs/boost/boost-1.88.0.ebuild
rename to dev-libs/boost/boost-1.88.0-r1.ebuild
index 3cee5989aa80..e0c8d16770a0 100644
--- a/dev-libs/boost/boost-1.88.0.ebuild
+++ b/dev-libs/boost/boost-1.88.0-r1.ebuild
@@ -53,6 +53,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-1.88.0-beast-network-sandbox.patch
        "${FILESDIR}"/${PN}-1.88.0-bind-no-Werror.patch
        "${FILESDIR}"/${PN}-1.88.0-mysql-cstdint.patch
+       "${FILESDIR}"/${PN}-1.88.0-range-any_iterator.patch
        "${FILESDIR}"/${PN}-1.88.0-yap-cstdint.patch
 )
 

diff --git a/dev-libs/boost/files/boost-1.88.0-range-any_iterator.patch 
b/dev-libs/boost/files/boost-1.88.0-range-any_iterator.patch
new file mode 100644
index 000000000000..a147f1f23a69
--- /dev/null
+++ b/dev-libs/boost/files/boost-1.88.0-range-any_iterator.patch
@@ -0,0 +1,27 @@
+
+From: 
https://github.com/boostorg/range/commit/1d124e8869a9eb17a235f33d8a7a9f203d09d44b
+Patch paths adapted for boost distribution.
+Bug: https://bugs.gentoo.org/955526
+
+From 9ac89e9936b826c13e90611cb9a81a7aa0508d20 Mon Sep 17 00:00:00 2001
+From: Michael Cho <[email protected]>
+Date: Sun, 30 Mar 2025 21:45:49 -0400
+Subject: [PATCH] Add include for add_const
+
+Signed-off-by: Michael Cho <[email protected]>
+---
+ include/boost/range/detail/any_iterator_interface.hpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/boost/range/detail/any_iterator_interface.hpp 
b/include/boost/range/detail/any_iterator_interface.hpp
+index 1103be6c..79e71dbd 100644
+--- a/boost/range/detail/any_iterator_interface.hpp
++++ b/boost/range/detail/any_iterator_interface.hpp
+@@ -13,6 +13,7 @@
+ #include <boost/mpl/if.hpp>
+ #include <boost/range/detail/any_iterator_buffer.hpp>
+ #include <boost/iterator/iterator_categories.hpp>
++#include <boost/type_traits/add_const.hpp>
+ #include <boost/type_traits/is_convertible.hpp>
+ #include <boost/type_traits/is_reference.hpp>
+ #include <boost/type_traits/remove_const.hpp>

Reply via email to