databases/xtrabackup: fix llvm version at 10 explicitely

In the previous commit [1] in 2021, clang was locked at 10:
    Compilation of the embedded mysql server fail with clang 11, use clang 10 as
    workaround (same as databases/mysql57-server do).

As LLVM_DEFAULT will now be higher than 10, explicitely depend on 10.

Note:
	USES=llvm:max=10
would be the preferable solution for this usecase, however, llvm.mk
cannot be used after bsd.options.mk at the moment.

[1] 106d01226d

PR:		263456
This commit is contained in:
Tobias C. Berner 2022-12-17 22:16:33 +01:00
parent f815d38021
commit c49f3491b8

View file

@ -48,9 +48,10 @@ PLIST_FILES= bin/xtrabackup bin/xbstream bin/innobackupex bin/xbcrypt \
# a backport of amongst other tings:
# https://github.com/mysql/mysql-server/commit/08f46b3c00ee70e7ed7825daeb91df2289f80f50
.if ${CHOSEN_COMPILER_TYPE} == clang && ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300109
BUILD_DEPENDS+= clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
CC= ${LOCALBASE}/bin/clang${LLVM_DEFAULT}
CXX= ${LOCALBASE}/bin/clang++${LLVM_DEFAULT}
_LLVM_VERSION= 10
BUILD_DEPENDS+= clang${_LLVM_VERSION}:devel/llvm${_LLVM_VERSION}
CC= ${LOCALBASE}/bin/clang${_LLVM_VERSION}
CXX= ${LOCALBASE}/bin/clang++${_LLVM_VERSION}
.endif
# Not sure why it's trying to install mysql client libraries now