mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
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:
parent
fd316bf4a6
commit
ef5f44a910
@ -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() {
|
||||
|
||||
11
sci-ml/caffe2/files/caffe2-2.7.0-glog-0.7.1.patch
Normal file
11
sci-ml/caffe2/files/caffe2-2.7.0-glog-0.7.1.patch
Normal 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user