diff --git a/sysutils/triton/Makefile b/sysutils/triton/Makefile index f082fc9346c3..4b2134238812 100644 --- a/sysutils/triton/Makefile +++ b/sysutils/triton/Makefile @@ -1,47 +1,45 @@ PORTNAME= triton DISTVERSIONPREFIX= v DISTVERSION= 0.9-597 PORTREVISION= 3 DISTVERSIONSUFFIX= -gafb28564 CATEGORIES= sysutils MAINTAINER= yuri@FreeBSD.org COMMENT= Dynamic Binary Analysis (DBA) framework WWW= https://triton.quarkslab.com/ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE.txt -BROKEN_armv7= src/libtriton/includes/triton/tritonToZ3.hpp:43:17: error: no type named '__uint' in namespace 'triton', see https://github.com/JonathanSalwan/Triton/issues/1214 BROKEN_i386= compilation fails: conflict of 'namespace i386' and macro '#define i386 1' -BROKEN_riscv64= src/libtriton/includes/triton/tritonToZ3.hpp:43:17: error: no type named '__uint' in namespace 'triton', see https://github.com/JonathanSalwan/Triton/issues/1214 BUILD_DEPENDS= boost-libs>0:devel/boost-libs LIB_DEPENDS= libcapstone.so:devel/capstone4 \ libz3.so:math/z3 USES= cmake:testing compiler:c++17-lang shebangfix USE_LDCONFIG= yes SHEBANG_GLOB= *.py USE_GITHUB= yes GH_ACCOUNT= JonathanSalwan GH_PROJECT= Triton CMAKE_TESTING_ON= ENABLE_TEST OPTIONS_DEFINE= PYTHON OPTIONS_DEFAULT= PYTHON OPTIONS_SUB= yes PYTHON_USES= python PYTHON_USES_OFF= python:build PYTHON_CMAKE_BOOL= PYTHON_BINDINGS PYTHON_CMAKE_ON= -DPYTHON_EXECUTABLE=${PYTHON_CMD} PYTHON_TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lief>0:devel/py-lief@${PY_FLAVOR} post-install-PYTHON-on: @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/triton.so .include diff --git a/sysutils/triton/files/patch-src_libtriton_includes_triton_tritonTypes.hpp b/sysutils/triton/files/patch-src_libtriton_includes_triton_tritonTypes.hpp new file mode 100644 index 000000000000..7a439a97bb08 --- /dev/null +++ b/sysutils/triton/files/patch-src_libtriton_includes_triton_tritonTypes.hpp @@ -0,0 +1,20 @@ +--- src/libtriton/includes/triton/tritonTypes.hpp.orig 2026-08-12 07:47:18 UTC ++++ src/libtriton/includes/triton/tritonTypes.hpp +@@ -105,15 +105,13 @@ namespace triton { + //! unsigned MAX_INT 32 or 64 bits according to the CPU. + typedef std::size_t usize; + +- #if defined(__x86_64__) || defined(_M_X64) || defined(__aarch64__) ++ #if UINTPTR_MAX == UINT64_MAX + //! unsigned long long if the arch is 64-bits. + typedef unsigned long long __uint; + + //! signed long long if the arch is 64-bits. + typedef signed long long __sint; +- #endif +- +- #if defined(__i386) || defined(_M_IX86) ++ #else + //! unsigned int if the arch is 32-bits. + typedef unsigned int __uint; +