git: abfb459e089f - main - net-im/libquotient: try to fix build on 12.*, 13.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 06 Mar 2023 21:34:33 UTC
The branch main has been updated by adridg:
URL: https://cgit.FreeBSD.org/ports/commit/?id=abfb459e089f5405e39ffc3f5c5ae7c03bc07779
commit abfb459e089f5405e39ffc3f5c5ae7c03bc07779
Author: Adriaan de Groot <adridg@FreeBSD.org>
AuthorDate: 2023-03-06 19:27:02 +0000
Commit: Adriaan de Groot <adridg@FreeBSD.org>
CommitDate: 2023-03-06 21:34:18 +0000
net-im/libquotient: try to fix build on 12.*, 13.0
This just avoids trying to build tests -- which fail with the error
/usr/include/c++/v1/__functional/perfect_forward.h:77:9: error: no
matching constructor for initialization of 'tuple<void (TestManager::*)(),
TestManager *>'
on 12.* and 13.0 and possibly 13.1 but not my local poudriere host,
which reports that it is 13-STABLE (from a month back or more). The
underlying problem seems to be tied to the LLVM / Clang STL that is
available. Patch from Eric, I tightened the bounds a bit.
Reported by: Eric Camachat
---
net-im/libquotient/Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/net-im/libquotient/Makefile b/net-im/libquotient/Makefile
index 8df660b3e52b..819875219e8b 100644
--- a/net-im/libquotient/Makefile
+++ b/net-im/libquotient/Makefile
@@ -23,4 +23,10 @@ GH_PROJECT= libQuotient
CMAKE_ARGS= -DQuotient_INSTALL_TESTS=OFF
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1301507
+CMAKE_ARGS+= -DBUILD_TESTING=OFF
+.endif
+
+.include <bsd.port.post.mk>