Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2023 16:48:49 GMT
From:      Brooks Davis <brooks@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 8fc3ddb680af - main - devel/llvm-{cheri,morello}: reduce runtime dependencies
Message-ID:  <202304181648.33IGmnLd043955@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by brooks:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8fc3ddb680afd5589a36921e02773bb75d0ed7cf

commit 8fc3ddb680afd5589a36921e02773bb75d0ed7cf
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2023-04-18 16:48:33 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2023-04-18 16:48:33 +0000

    devel/llvm-{cheri,morello}: reduce runtime dependencies
    
    Disable libedit and libxml2 dependencies as they have no obvious use.
    
    Disable the the perl and python runtime deps.  While we do install
    scripts that require these, most users of these ports will either use
    them on a full system where perl and python will end up installed or use
    them on a CHERI system were reducing bootstrap time is valuable.
    
    Sponsored by:   DARPA
---
 devel/llvm-cheri/Makefile | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/devel/llvm-cheri/Makefile b/devel/llvm-cheri/Makefile
index 32f7a86b8d6e..554483f3aa28 100644
--- a/devel/llvm-cheri/Makefile
+++ b/devel/llvm-cheri/Makefile
@@ -25,8 +25,7 @@ COMMAND_SUFFIX=	${LLVM_SUFFIX}
 DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}${LLVM_SUFFIX}
 DATADIR=	${PREFIX}/share/${PORTNAME}${LLVM_SUFFIX}
 
-USES=		cmake compiler:c++11-lib cpe libedit perl5 \
-		shebangfix
+USES=		cmake compiler:c++17-lang cpe shebangfix
 USE_LDCONFIG=	${LLVM_PREFIX}/lib
 SHEBANG_FILES=	\
 		clang/tools/clang-format/git-clang-format \
@@ -56,6 +55,8 @@ CMAKE_ARGS+=	-DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON
 CMAKE_ARGS+=	-DCMAKE_INSTALL_MANDIR:PATH="share/man"
 CMAKE_ARGS+=	-DLLVM_PARALLEL_LINK_JOBS=1
 CMAKE_ARGS+=	-DLLVM_ENABLE_Z3_SOLVER=OFF
+CMAKE_ARGS+=	-DLLVM_ENABLE_LIBXML2=OFF
+CMAKE_ARGS+=	-DLLVM_ENABLE_LIBEDIT=OFF
 CMAKE_ARGS+=	-DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS}"
 
 .ifndef MASTERDIR
@@ -75,9 +76,11 @@ OPTIONS_SUB=	yes
 
 CLANG_DESC=		Build clang
 CLANG_PORTDOCS=		clang
+CLANG_USES=		perl5
+# scan-build does require, but users can install it manually.
+CLANG_USE=		PERL5=build
 PLIST_FILES+=		share/toolchains/llvm${LLVM_SUFFIX}.mk
 SUB_FILES+=		xtoolchain.mk
-CLANG_USE=		GNOME=libxml2
 DOCS_BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}recommonmark>=0.0.20180530:textproc/py-recommonmark@${PY_FLAVOR}
 DOCS_CMAKE_ON=		-DLLVM_ENABLE_SPHINX=ON \
@@ -124,7 +127,8 @@ USES+=		gnome
 
 .if ${PORT_OPTIONS:MLIT}
 MAN1SRCS+=	${LIT_MAN1SRCS}
-_USES_PYTHON=	python:3.6+
+# lit requires python, but don't install it by default.  Users can install.
+#_USES_PYTHON=	python:3.6+
 .endif
 
 .if ${PORT_OPTIONS:MLLD}



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