commit: ef5f44a9103abd57cc5b568d9de39496d28f016b Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Thu Jun 26 10:25:51 2025 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Thu Jun 26 10:26:26 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef5f44a9
sci-ml/caffe2: fix build with glog-0.7.1 Closes: https://bugs.gentoo.org/956629 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> sci-ml/caffe2/caffe2-2.7.0-r2.ebuild | 1 + sci-ml/caffe2/files/caffe2-2.7.0-glog-0.7.1.patch | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/sci-ml/caffe2/caffe2-2.7.0-r2.ebuild b/sci-ml/caffe2/caffe2-2.7.0-r2.ebuild index 9c49aacddb11..3e0bdbbb2574 100644 --- a/sci-ml/caffe2/caffe2-2.7.0-r2.ebuild +++ b/sci-ml/caffe2/caffe2-2.7.0-r2.ebuild @@ -127,6 +127,7 @@ PATCHES=( "${FILESDIR}"/${PN}-2.5.1-newfix-functorch-install.patch "${FILESDIR}"/${PN}-2.6.0-rocm-fix-std-cpp17.patch "${FILESDIR}"/${P}-cmake.patch + "${FILESDIR}"/${P}-glog-0.7.1.patch ) src_prepare() { diff --git a/sci-ml/caffe2/files/caffe2-2.7.0-glog-0.7.1.patch b/sci-ml/caffe2/files/caffe2-2.7.0-glog-0.7.1.patch new file mode 100644 index 000000000000..7d4b5ba0244a --- /dev/null +++ b/sci-ml/caffe2/files/caffe2-2.7.0-glog-0.7.1.patch @@ -0,0 +1,11 @@ +--- a/c10/util/Logging.cpp 2025-06-26 11:47:58.901240691 +0200 ++++ b/c10/util/Logging.cpp 2025-06-26 11:51:56.959290731 +0200 +@@ -352,7 +352,7 @@ + + void ShowLogInfoToStderr() { + FLAGS_logtostderr = 1; +- FLAGS_minloglevel = std::min(FLAGS_minloglevel, google::GLOG_INFO); ++ FLAGS_minloglevel = std::min(FLAGS_minloglevel, int(google::GLOG_INFO)); + } + } // namespace c10 +
