git: ddcc71ca2065 - main - databases/arrow: Fix build on 14
Yuri Victorovich
yuri at FreeBSD.org
Sun May 9 08:39:29 UTC 2021
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ddcc71ca2065fc1561b3090362e01712668c0981
commit ddcc71ca2065fc1561b3090362e01712668c0981
Author: Yuri Victorovich <yuri at FreeBSD.org>
AuthorDate: 2021-05-09 08:38:12 +0000
Commit: Yuri Victorovich <yuri at FreeBSD.org>
CommitDate: 2021-05-09 08:39:26 +0000
databases/arrow: Fix build on 14
clang-11 crashes on 14, so use clang-10 instead.
Reported by: fallout
---
databases/arrow/Makefile | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/databases/arrow/Makefile b/databases/arrow/Makefile
index 732243266ae5..2862a156f9e4 100644
--- a/databases/arrow/Makefile
+++ b/databases/arrow/Makefile
@@ -1,5 +1,6 @@
PORTNAME= arrow
DISTVERSION= 4.0.0
+PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= https://mirrors.advancedhosters.com/apache/${PORTNAME}/${PORTNAME}-${DISTVERSION}/ \
https://github.com/apache/orc/archive/rel/:orc
@@ -167,6 +168,16 @@ OPTIONS_DEFAULT+= ${opt}
. endif
.endfor
+.include <bsd.port.pre.mk>
+
+.if ${CHOSEN_COMPILER_TYPE} == clang && ${OPSYS} == FreeBSD
+LLVM_VER= 10 # clang-11 crashes on FreeBSD 14: https://bugs.llvm.org/show_bug.cgi?id=50277
+
+BUILD_DEPENDS+= clang${LLVM_VER}:devel/llvm${LLVM_VER}
+CC= ${LOCALBASE}/bin/clang${LLVM_VER}
+CXX= ${LOCALBASE}/bin/clang++${LLVM_VER}
+.endif
+
pre-configure-PYTHON-on:
@${REINPLACE_CMD} -e ' \
s|arrow_python|arrow_python${PYTHON_SUFFIX}|g; \
@@ -219,4 +230,4 @@ do-test: # tests fail to compile: https://issues.apache.org/jira/browse/ARROW-12
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the dev-commits-ports-all
mailing list