git: 0436a1dc5352 - main - misc/py-onnxruntime: fix build on powerpc64le

Piotr Kubaj <[email protected]> Sun, 02 Aug 2026 07:09:31 +0000
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0436a1dc5352d64a191d5be88220a8a0eeb1776f

commit 0436a1dc5352d64a191d5be88220a8a0eeb1776f
Author:     Piotr Kubaj <[email protected]>
AuthorDate: 2026-07-22 10:21:14 +0000
Commit:     Piotr Kubaj <[email protected]>
CommitDate: 2026-08-02 07:09:17 +0000

    misc/py-onnxruntime: fix build on powerpc64le
    
    /wrkdirs/usr/ports/misc/py-onnxruntime/work-py312/build/Release/_deps/eigen3-src/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/AltiVec/PacketMath.h:119:35: error: 'vec_lvsl' is deprecated: use assignment for unaligned little endian loads/stores [-Werror,-Wdeprecated-declarations]
---
 misc/py-onnxruntime/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/misc/py-onnxruntime/Makefile b/misc/py-onnxruntime/Makefile
index 9e9cd34aec4e..26de783fe7d7 100644
--- a/misc/py-onnxruntime/Makefile
+++ b/misc/py-onnxruntime/Makefile
@@ -44,6 +44,7 @@ GH_TUPLE=	emscripten-core:emsdk:0742117:emsdk/cmake/external/emsdk \
 
 CXXFLAGS+=	-Wno-array-bounds # workaround for https://github.com/microsoft/onnxruntime/issues/23410
 CXXFLAGS+=	-I${WRKSRC}/include/onnxruntime/core/common/logging # otherwise logging.h isn't found
+CXXFLAGS_powerpc64le=	-Wno-error=deprecated-declarations
 
 DEPS_FILE=	${WRKSRC}/cmake/deps.txt