diff --git a/sci-libs/onnxruntime/files/onnxruntime-1.24.4-no-werror.patch b/sci-libs/onnxruntime/files/onnxruntime-1.24.4-no-werror.patch new file mode 100644 index 0000000000..d8da986ac7 --- /dev/null +++ b/sci-libs/onnxruntime/files/onnxruntime-1.24.4-no-werror.patch @@ -0,0 +1,11 @@ +diff '--color=auto' -rdu onnxruntime-1.24.4.orig/cmake/CMakeLists.txt onnxruntime-1.24.4/cmake/CMakeLists.txt +--- onnxruntime-1.24.4.orig/cmake/CMakeLists.txt 2026-03-16 23:52:22.000000000 +0100 ++++ onnxruntime-1.24.4/cmake/CMakeLists.txt 2026-04-17 18:31:40.823920137 +0200 +@@ -1081,7 +1081,6 @@ + target_compile_definitions(${target_name} PRIVATE USE_KLEIDIAI) + endif() + +- set_target_properties(${target_name} PROPERTIES COMPILE_WARNING_AS_ERROR ON) + if (onnxruntime_USE_CUDA) + # Suppress a "conversion_function_not_usable" warning in gsl/span + target_compile_options(${target_name} PRIVATE "$<$:SHELL:-Xcudafe \"--diag_suppress=conversion_function_not_usable\">") diff --git a/sci-libs/onnxruntime/onnxruntime-1.24.4.ebuild b/sci-libs/onnxruntime/onnxruntime-1.24.4.ebuild index 48979af06d..13dd8115b2 100644 --- a/sci-libs/onnxruntime/onnxruntime-1.24.4.ebuild +++ b/sci-libs/onnxruntime/onnxruntime-1.24.4.ebuild @@ -71,6 +71,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}/${PN}-1.22.2-relax-the-dependency-on-flatbuffers.patch" "${FILESDIR}/${PN}-1.24.3-use-system-libraries.patch" + "${FILESDIR}/${PN}-1.24.4-no-werror.patch" ) CMAKE_USE_DIR="${S}/cmake"