Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 May 2026 06:25:55 +0000
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Cc:        Chad Jacob Milios <milios@ccsys.com>
Subject:   git: c5ba2c6281e1 - main - math/symengine: fix build with LLVM 20+
Message-ID:  <69f44773.3027a.2c75a984@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by yuri:

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

commit c5ba2c6281e158e600af263b1d6645f7eb29aba0
Author:     Chad Jacob Milios <milios@ccsys.com>
AuthorDate: 2026-05-01 06:25:17 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-05-01 06:25:17 +0000

    math/symengine: fix build with LLVM 20+
    
    PR:     294924
---
 math/symengine/Makefile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/math/symengine/Makefile b/math/symengine/Makefile
index 734790e599e7..ad40b1e56bf0 100644
--- a/math/symengine/Makefile
+++ b/math/symengine/Makefile
@@ -78,6 +78,13 @@ PIRANHA_DESC=		piranha
 PIRANHA_CMAKE_ON=	-DINTEGER_CLASS:STRING=piranha
 PIRANHA_BUILD_DEPENDS=	piranha>0:math/piranha
 
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 1600017 || (${PORT_OPTIONS:MLLVM} && ${LLVM_VERSION} >= 20)
+post-patch:
+	${REINPLACE_CMD} -e s/getDeclaration/getOrInsertDeclaration/ ${WRKSRC}/symengine/llvm_double.cpp
+.endif
+
 do-test: # one test fails: https://github.com/symengine/symengine/issues/1697
 	@cd ${BUILD_WRKSRC} && \
 		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \
@@ -86,4 +93,4 @@ do-test: # one test fails: https://github.com/symengine/symengine/issues/1697
 
 # tests as of 0.14.0: 100% tests passed, 0 tests failed out of 66
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69f44773.3027a.2c75a984>