commit:     f3d19697e96e0ce4d32484dc6ebf88c139ac710c
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Sep  5 07:06:30 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Sep  5 07:07:06 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3d19697

sci-libs/caffe2: fix for gcc-15

Closes: https://bugs.gentoo.org/939069
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 sci-libs/caffe2/caffe2-2.4.0-r1.ebuild           |  1 +
 sci-libs/caffe2/files/caffe2-2.4.0-cstdint.patch | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/sci-libs/caffe2/caffe2-2.4.0-r1.ebuild 
b/sci-libs/caffe2/caffe2-2.4.0-r1.ebuild
index d8e42de52185..e990c18926b2 100644
--- a/sci-libs/caffe2/caffe2-2.4.0-r1.ebuild
+++ b/sci-libs/caffe2/caffe2-2.4.0-r1.ebuild
@@ -126,6 +126,7 @@ PATCHES=(
        ../patches/${PN}-2.3.0-fix-libcpp.patch
        "${FILESDIR}"/${PN}-2.4.0-libfmt-11.patch
        "${FILESDIR}"/${P}-cpp-httplib.patch
+       "${FILESDIR}"/${P}-cstdint.patch
 )
 
 src_prepare() {

diff --git a/sci-libs/caffe2/files/caffe2-2.4.0-cstdint.patch 
b/sci-libs/caffe2/files/caffe2-2.4.0-cstdint.patch
new file mode 100644
index 000000000000..f248ab031eb0
--- /dev/null
+++ b/sci-libs/caffe2/files/caffe2-2.4.0-cstdint.patch
@@ -0,0 +1,10 @@
+--- a/caffe2/utils/string_utils.cc     2024-09-05 08:29:06.930438069 +0200
++++ b/caffe2/utils/string_utils.cc     2024-09-05 08:29:28.398137596 +0200
+@@ -3,6 +3,7 @@
+ #include <algorithm>
+ #include <sstream>
+ #include <vector>
++#include <cstdint>
+ 
+ namespace caffe2 {
+ 

Reply via email to