sci-ml/caffe2: fix build with glog-0.7.1

Closes: https://bugs.gentoo.org/956629
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone 2025-06-26 12:25:51 +02:00
parent fd316bf4a6
commit ef5f44a910
No known key found for this signature in database
GPG Key ID: FBE5925C5B02CE58
2 changed files with 12 additions and 0 deletions

View File

@ -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() {

View File

@ -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