From a140111628560ab62eb8a58fb03f39565112c19e Mon Sep 17 00:00:00 2001 From: 4fury-c3440d8 Date: Sun, 29 Jan 2023 08:35:29 +0300 Subject: [PATCH] cppcheck. --- programming/tool/cppcheck/actions.py | 20 ++++++++------------ programming/tool/cppcheck/pspec.xml | 16 ++++++++++++---- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/programming/tool/cppcheck/actions.py b/programming/tool/cppcheck/actions.py index 438d98d5e8..ddad31846c 100644 --- a/programming/tool/cppcheck/actions.py +++ b/programming/tool/cppcheck/actions.py @@ -4,10 +4,7 @@ # Licensed under the GNU General Public License, version 3. # See the file https://www.gnu.org/licenses/gpl-3.0.txt -from pisi.actionsapi import shelltools -from pisi.actionsapi import cmaketools -from pisi.actionsapi import pisitools -from pisi.actionsapi import get +from pisi.actionsapi import cmaketools, mesontools, pisitools j = ''.join([ ' -DUSE_Z3=ON', @@ -19,25 +16,24 @@ j = ''.join([ ' -DBUILD_SHARED_LIBS=ON', ' -DBUILD_TESTS=OFF', ' -DCMAKE_BUILD_TYPE=Release', - ' -DCMAKE_CONFIGURATION_TYPES=RelWithDebInfo', + ' -DCMAKE_CONFIGURATION_TYPES=Release', ' -DUSE_BUNDLED_TINYXML2=OFF', ' -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON', ' -DENABLE_CHECK_INTERNAL=ON', - ' -DWITH_QCHART=ON -L ' + ' -DWITH_QCHART=ON', + ' -B_build -G Ninja -L ' ]) def setup(): - cmaketools.configure("-Bbuild %s" % j) + cmaketools.configure(j) def build(): - shelltools.cd("build") - cmaketools.make() + mesontools.build("-C _build") def check(): pass def install(): - shelltools.cd("build") - cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) + mesontools.install("-C _build") - pisitools.dodoc("../AUTHORS") + pisitools.dodoc("AUTHORS") diff --git a/programming/tool/cppcheck/pspec.xml b/programming/tool/cppcheck/pspec.xml index 4393cb421c..cebd8d4552 100644 --- a/programming/tool/cppcheck/pspec.xml +++ b/programming/tool/cppcheck/pspec.xml @@ -16,11 +16,12 @@ Cppcheck is a static analysis tool for C/C++ code. It provides unique code analysis to detect bugs and focuses on detecting undefined behaviour and dangerous coding constructs. The goal is to detect only real errors in the code (i.e. have very few false positives). - - mirrors://sourceforge/cppcheck/cppcheck-2.9.tar.bz2 + + mirrors://sourceforge/cppcheck/cppcheck-2.10.tar.bz2 cmake + ninja z3-devel zlib-devel boost-devel @@ -40,9 +41,9 @@ qt5-assistant-devel - htmlreport_py3.patch + qm_install_path.patch - Buffer_is_accessed_out_of_bounds.patch + @@ -70,6 +71,13 @@ + + 2023-01-28 + 2.10 + Version bump. + fury + uglyside@yandex.ru + 2022-09-05 2.9