Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Aug 2023 20:10:18 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 5c4690ed8e2e - main - science/py-hoomd-blue: Fix build with llvm16
Message-ID:  <202308052010.375KAIN9003314@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

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

commit 5c4690ed8e2edfac10b5d59b1fa2e628797cebc0
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-05 20:03:14 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-05 20:03:14 +0000

    science/py-hoomd-blue: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 science/py-hoomd-blue/Makefile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/science/py-hoomd-blue/Makefile b/science/py-hoomd-blue/Makefile
index f63f63be2e9f..c391fd84371b 100644
--- a/science/py-hoomd-blue/Makefile
+++ b/science/py-hoomd-blue/Makefile
@@ -57,4 +57,12 @@ TBB_LIB_DEPENDS=	libtbb.so:devel/onetbb
 
 # the test mpi-test_communication requires excessive resources, see https://github.com/glotzerlab/hoomd-blue/issues/1396
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+post-patch:
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+	@${REINPLACE_CMD} -e 's|std::unary_function|std::__unary_function|' \
+		${WRKSRC}/hoomd/ParticleData.cc
+.endif
+
+.include <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308052010.375KAIN9003314>