commit:     1ae3d189873e66680973fbe35176357b9b98fff8
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Wed Aug 21 18:26:51 2024 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sat Aug 24 19:45:45 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ae3d189

sci-libs/ceres-solver: fix build with GCC 15

Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/38270
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 sci-libs/ceres-solver/ceres-solver-2.2.0-r1.ebuild     |  1 +
 .../files/ceres-solver-2.2.0-include-algorithm.patch   | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+)

diff --git a/sci-libs/ceres-solver/ceres-solver-2.2.0-r1.ebuild 
b/sci-libs/ceres-solver/ceres-solver-2.2.0-r1.ebuild
index eb2f320fe9bc..191c4845525f 100644
--- a/sci-libs/ceres-solver/ceres-solver-2.2.0-r1.ebuild
+++ b/sci-libs/ceres-solver/ceres-solver-2.2.0-r1.ebuild
@@ -45,6 +45,7 @@ DOCS=( README.md VERSION )
 
 PATCHES=(
        "${FILESDIR}/${PN}-2.0.0-system-mathjax.patch"
+       "${FILESDIR}/${PN}-2.2.0-include-algorithm.patch"
 )
 
 src_prepare() {

diff --git 
a/sci-libs/ceres-solver/files/ceres-solver-2.2.0-include-algorithm.patch 
b/sci-libs/ceres-solver/files/ceres-solver-2.2.0-include-algorithm.patch
new file mode 100644
index 000000000000..4f5887eec6e4
--- /dev/null
+++ b/sci-libs/ceres-solver/files/ceres-solver-2.2.0-include-algorithm.patch
@@ -0,0 +1,18 @@
+From: Paul Zander <[email protected]>
+Date: Wed, 21 Aug 2024 20:19:25 +0200
+Subject: [PATCH] include algorithm
+
+Signed-off-by: Paul Zander <[email protected]>
+
+--- a/internal/ceres/cuda_streamed_buffer.h
++++ b/internal/ceres/cuda_streamed_buffer.h
+@@ -34,6 +34,9 @@
+ #include "ceres/internal/config.h"
+ 
+ #ifndef CERES_NO_CUDA
++
++#include <algorithm>
++
+ #include "ceres/cuda_buffer.h"
+ 
+ namespace ceres::internal {

Reply via email to