Skip to content

Commit

Permalink
databases/arrow: Fix build on 14
Browse files Browse the repository at this point in the history
clang-11 crashes on 14, so use clang-10 instead.

Reported by:	fallout
  • Loading branch information
yurivict committed May 9, 2021
1 parent b57e7c6 commit ddcc71c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion databases/arrow/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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; \
Expand Down Expand Up @@ -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>

0 comments on commit ddcc71c

Please sign in to comment.