Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang clang: build with static analizer (default and ne...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/14501cfdd558
branches:  trunk
changeset: 435170:14501cfdd558
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Jul 01 14:46:36 2020 +0000

description:
clang: build with static analizer (default and needed for clang-tools-extra); remove clang-static-analyzer

diffstat:

 lang/Makefile                           |   3 +--
 lang/clang-static-analyzer/DESCR        |   9 ---------
 lang/clang-static-analyzer/Makefile     |  23 -----------------------
 lang/clang-static-analyzer/PLIST        |  15 ---------------
 lang/clang-static-analyzer/PLIST.Darwin |   2 --
 lang/clang/Makefile                     |   6 ++----
 lang/clang/Makefile.common              |   5 +----
 lang/clang/PLIST                        |  21 ++++++++++++++++++++-
 lang/clang/PLIST.Darwin                 |   2 ++
 lang/llvm/Makefile                      |   3 +--
 lang/llvm/version.mk                    |   3 +--
 11 files changed, 28 insertions(+), 64 deletions(-)

diffs (222 lines):

diff -r 86333355e514 -r 14501cfdd558 lang/Makefile
--- a/lang/Makefile     Wed Jul 01 14:39:32 2020 +0000
+++ b/lang/Makefile     Wed Jul 01 14:46:36 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.568 2020/06/30 13:16:14 nia Exp $
+# $NetBSD: Makefile,v 1.569 2020/07/01 14:46:36 adam Exp $
 #
 
 COMMENT=       Programming languages
@@ -30,7 +30,6 @@
 SUBDIR+=       cim
 SUBDIR+=       cint
 SUBDIR+=       clang
-SUBDIR+=       clang-static-analyzer
 SUBDIR+=       clang-tools-extra
 SUBDIR+=       classpath
 SUBDIR+=       classpath-gui
diff -r 86333355e514 -r 14501cfdd558 lang/clang-static-analyzer/DESCR
--- a/lang/clang-static-analyzer/DESCR  Wed Jul 01 14:39:32 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-The Clang Static Analyzer is a source code analysis tool that finds
-bugs in C, C++, and Objective-C programs.
-
-The standalone tool is invoked from the command line, and is intended
-to be run in tandem with a build of a codebase.
-
-The analyzer is 100% open source and is part of the Clang project.
-Like the rest of Clang, the analyzer is implemented as a C++ library
-that can be used by other tools and applications
diff -r 86333355e514 -r 14501cfdd558 lang/clang-static-analyzer/Makefile
--- a/lang/clang-static-analyzer/Makefile       Wed Jul 01 14:39:32 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,23 +0,0 @@
-# $NetBSD: Makefile,v 1.18 2020/06/02 08:24:12 adam Exp $
-
-PKGREVISION= 1
-.include "../../lang/clang/Makefile.common"
-
-PKGNAME=       ${DISTNAME:S/clang/clang-static-analyzer/:S/.src//}
-
-DEPENDS+=      clang-${PKGVERSION_NOREV}{,nb*}:../../lang/clang
-
-USE_TOOLS+=    perl:run
-
-DISTINFO_FILE?=        ${.CURDIR}/../../lang/clang/distinfo
-PATCHDIR?=     ${.CURDIR}/../../lang/clang/patches
-
-BUILD_TARGET=  clang-check scan-build scan-view
-INSTALL_DIRS=  ../build/tools/clang-check ../build/tools/scan-build ../build/tools/scan-view
-
-CMAKE_ARGS+=   -DCLANG_ENABLE_STATIC_ANALYZER=ON
-
-PYTHON_VERSIONS_ACCEPTED=      27 # not yet ported as of 5.0.1
-
-.include "../../lang/python/pyversion.mk"
-.include "../../mk/bsd.pkg.mk"
diff -r 86333355e514 -r 14501cfdd558 lang/clang-static-analyzer/PLIST
--- a/lang/clang-static-analyzer/PLIST  Wed Jul 01 14:39:32 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-@comment $NetBSD: PLIST,v 1.2 2016/03/10 15:01:52 tnn Exp $
-bin/clang-check
-bin/scan-build
-bin/scan-view
-libexec/c++-analyzer
-libexec/ccc-analyzer
-man/man1/scan-build.1
-share/scan-build/scanview.css
-share/scan-build/sorttable.js
-share/scan-view/FileRadar.scpt
-share/scan-view/GetRadarVersion.scpt
-share/scan-view/Reporter.py
-share/scan-view/ScanView.py
-share/scan-view/bugcatcher.ico
-share/scan-view/startfile.py
diff -r 86333355e514 -r 14501cfdd558 lang/clang-static-analyzer/PLIST.Darwin
--- a/lang/clang-static-analyzer/PLIST.Darwin   Wed Jul 01 14:39:32 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-@comment $NetBSD: PLIST.Darwin,v 1.2 2017/01/11 00:19:22 minskim Exp $
-bin/set-xcode-analyzer
diff -r 86333355e514 -r 14501cfdd558 lang/clang/Makefile
--- a/lang/clang/Makefile       Wed Jul 01 14:39:32 2020 +0000
+++ b/lang/clang/Makefile       Wed Jul 01 14:46:36 2020 +0000
@@ -1,11 +1,9 @@
-# $NetBSD: Makefile,v 1.56 2020/06/02 08:22:45 adam Exp $
+# $NetBSD: Makefile,v 1.57 2020/07/01 14:46:37 adam Exp $
 
 .include "Makefile.common"
 
 PKGNAME=       ${DISTNAME:S/.src//}
-PKGREVISION=   2
-
-CMAKE_ARGS+=   -DCLANG_ENABLE_STATIC_ANALYZER=OFF
+PKGREVISION=   3
 
 PYTHON_FOR_BUILD_ONLY= yes
 
diff -r 86333355e514 -r 14501cfdd558 lang/clang/Makefile.common
--- a/lang/clang/Makefile.common        Wed Jul 01 14:39:32 2020 +0000
+++ b/lang/clang/Makefile.common        Wed Jul 01 14:46:36 2020 +0000
@@ -1,6 +1,5 @@
-# $NetBSD: Makefile.common,v 1.44 2020/05/07 20:21:41 rillig Exp $
+# $NetBSD: Makefile.common,v 1.45 2020/07/01 14:46:37 adam Exp $
 # used by lang/clang/Makefile
-# used by lang/clang-static-analyzer/Makefile
 # used by lang/clang-tools-extra/Makefile
 
 .include "../../lang/llvm/version.mk"
@@ -24,8 +23,6 @@
 CMAKE_ARGS+=   -DCMAKE_BUILD_TYPE=Release
 CMAKE_ARGS+=   -DCMAKE_C_COMPILER=${CC:Q}
 CMAKE_ARGS+=   -DCMAKE_CXX_COMPILER=${CXX:Q}
-# XXX can't disable static-analyzer without also disabling ARCMT
-CMAKE_ARGS+=   -DCLANG_ENABLE_ARCMT=OFF
 
 .include "../../mk/compiler.mk"
 
diff -r 86333355e514 -r 14501cfdd558 lang/clang/PLIST
--- a/lang/clang/PLIST  Wed Jul 01 14:39:32 2020 +0000
+++ b/lang/clang/PLIST  Wed Jul 01 14:46:36 2020 +0000
@@ -1,10 +1,12 @@
-@comment $NetBSD: PLIST,v 1.29 2020/04/18 10:49:57 adam Exp $
+@comment $NetBSD: PLIST,v 1.30 2020/07/01 14:46:37 adam Exp $
 bin/c-index-test
 bin/clang
 bin/clang++
 bin/clang-10
+bin/clang-check
 bin/clang-cl
 bin/clang-cpp
+bin/clang-extdef-mapping
 bin/clang-format
 bin/clang-import-test
 bin/clang-offload-bundler
@@ -15,6 +17,8 @@
 bin/diagtool
 bin/git-clang-format
 bin/hmaptool
+bin/scan-build
+bin/scan-view
 include/clang-c/BuildSystem.h
 include/clang-c/CXCompilationDatabase.h
 include/clang-c/CXErrorCode.h
@@ -773,6 +777,7 @@
 ${PLIST.notdylib}lib/libclang-cpp.${SOEXT}.10
 lib/libclang.${SOEXT}
 ${PLIST.notdylib}lib/libclang.${SOEXT}.10
+lib/libclangARCMigrate.a
 lib/libclangAST.a
 lib/libclangASTMatchers.a
 lib/libclangAnalysis.a
@@ -796,6 +801,9 @@
 lib/libclangRewriteFrontend.a
 lib/libclangSema.a
 lib/libclangSerialization.a
+lib/libclangStaticAnalyzerCheckers.a
+lib/libclangStaticAnalyzerCore.a
+lib/libclangStaticAnalyzerFrontend.a
 lib/libclangTooling.a
 lib/libclangToolingASTDiff.a
 lib/libclangToolingCore.a
@@ -803,6 +811,9 @@
 lib/libclangToolingRefactoring.a
 lib/libclangToolingSyntax.a
 lib/libclangTransformer.a
+libexec/c++-analyzer
+libexec/ccc-analyzer
+man/man1/scan-build.1
 share/clang/bash-autocomplete.sh
 share/clang/clang-format-bbedit.applescript
 share/clang/clang-format-diff.py
@@ -811,3 +822,11 @@
 share/clang/clang-format.py
 share/clang/clang-rename.el
 share/clang/clang-rename.py
+share/scan-build/scanview.css
+share/scan-build/sorttable.js
+share/scan-view/FileRadar.scpt
+share/scan-view/GetRadarVersion.scpt
+share/scan-view/Reporter.py
+share/scan-view/ScanView.py
+share/scan-view/bugcatcher.ico
+share/scan-view/startfile.py
diff -r 86333355e514 -r 14501cfdd558 lang/clang/PLIST.Darwin
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/clang/PLIST.Darwin   Wed Jul 01 14:46:36 2020 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST.Darwin,v 1.5 2020/07/01 14:46:37 adam Exp $
+bin/set-xcode-analyzer
diff -r 86333355e514 -r 14501cfdd558 lang/llvm/Makefile
--- a/lang/llvm/Makefile        Wed Jul 01 14:39:32 2020 +0000
+++ b/lang/llvm/Makefile        Wed Jul 01 14:46:36 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.55 2020/06/02 08:24:12 adam Exp $
+# $NetBSD: Makefile,v 1.56 2020/07/01 14:46:36 adam Exp $
 #
 # when updating this, please also update:
 # devel/include-what-you-use
@@ -6,7 +6,6 @@
 # devel/lldb
 # devel/polly
 # lang/clang
-# lang/clang-static-analyzer
 # lang/clang-tools-extra
 # lang/compiler-rt
 # lang/libcxx
diff -r 86333355e514 -r 14501cfdd558 lang/llvm/version.mk
--- a/lang/llvm/version.mk      Wed Jul 01 14:39:32 2020 +0000
+++ b/lang/llvm/version.mk      Wed Jul 01 14:46:36 2020 +0000
@@ -1,9 +1,8 @@
-# $NetBSD: version.mk,v 1.2 2020/04/18 07:50:18 adam Exp $
+# $NetBSD: version.mk,v 1.3 2020/07/01 14:46:36 adam Exp $
 # used by devel/lld
 # used by devel/lldb
 # used by devel/polly
 # used by lang/clang
-# used by lang/clang-static-analyzer
 # used by lang/clang-tools-extra
 # used by lang/compiler-rt
 # used by lang/libcxx



Home | Main Index | Thread Index | Old Index