commit: 66a50d0bc56076ae2d2403769427c3587319978f
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 8 20:52:25 2025 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Dec 8 20:53:27 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66a50d0b
sci-ml/onnx: export c++ symbols, fix for caffe2 build
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
.../files/onnx-1.18.0-don-t-hide-symbols-in-object-files.patch | 10 ++++++++++
sci-ml/onnx/{onnx-1.18.0.ebuild => onnx-1.18.0-r1.ebuild} | 3 ++-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git
a/sci-ml/onnx/files/onnx-1.18.0-don-t-hide-symbols-in-object-files.patch
b/sci-ml/onnx/files/onnx-1.18.0-don-t-hide-symbols-in-object-files.patch
new file mode 100644
index 000000000000..8c9abb872a89
--- /dev/null
+++ b/sci-ml/onnx/files/onnx-1.18.0-don-t-hide-symbols-in-object-files.patch
@@ -0,0 +1,10 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -520,7 +520,6 @@
+ else()
+ add_library(onnx ${ONNX_SRCS})
+ endif()
+-set_target_properties(onnx PROPERTIES CXX_VISIBILITY_PRESET hidden)
+ set_target_properties(onnx PROPERTIES VISIBILITY_INLINES_HIDDEN ON)
+
+ target_include_directories(onnx PUBLIC
diff --git a/sci-ml/onnx/onnx-1.18.0.ebuild b/sci-ml/onnx/onnx-1.18.0-r1.ebuild
similarity index 93%
rename from sci-ml/onnx/onnx-1.18.0.ebuild
rename to sci-ml/onnx/onnx-1.18.0-r1.ebuild
index 4b42678fbd58..90867f9579b5 100644
--- a/sci-ml/onnx/onnx-1.18.0.ebuild
+++ b/sci-ml/onnx/onnx-1.18.0-r1.ebuild
@@ -29,7 +29,8 @@ DEPEND="${RDEPEND}"
src_prepare() {
eapply "${FILESDIR}"/${PN}-1.15.0-hidden.patch \
- "${FILESDIR}"/${PN}-1.18.0-cmake.patch
+ "${FILESDIR}"/${PN}-1.18.0-cmake.patch \
+ "${FILESDIR}"/${P}-don-t-hide-symbols-in-object-files.patch
cmake_src_prepare
distutils-r1_src_prepare
}