Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Aug 2023 09:55:25 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: 6956bca47ee7 - main - databases/clickhouse: Fix build with llvm16
Message-ID:  <202308080955.3789tPxF075277@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=6956bca47ee7e22d8cdbc6ac42ee7627ab8aa361

commit 6956bca47ee7e22d8cdbc6ac42ee7627ab8aa361
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-08 08:07:58 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-08 09:55:13 +0000

    databases/clickhouse: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 databases/clickhouse/Makefile | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/databases/clickhouse/Makefile b/databases/clickhouse/Makefile
index a7d79208d42e..94dd85aa06d8 100644
--- a/databases/clickhouse/Makefile
+++ b/databases/clickhouse/Makefile
@@ -229,14 +229,11 @@ TEST_CMAKE_BOOL=	ENABLE_TESTS
 
 .include <bsd.port.options.mk>
 
-.if ${OSVERSION} < 1400000
-CC=			clang13
-CXX=		clang++13
-USES+=	llvm:max=13,build
-.else
-CC=			clang
-CXX=		clang++
-CFLAGS+=	-Wno-error=int-conversion
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+USES+=	llvm:max=15
+CC=	clang${LLVM_VERSION}
+CXX=	clang++${LLVM_VERSION}
+CFLAGS+=-Wno-error=int-conversion
 .endif
 
 .if ${OPSYS} == FreeBSD



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