From ff0612c20027e9cd1e5c83de01f35ee8c4b102264410ed798f2a87fe5bfd7c06 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 30 Jan 2023 12:09:12 +0000 Subject: [PATCH 1/2] - update to 2.10.0: * Many improvements and fixes in checkers. * New check: use memset/memcpy instead of loop CLI: * if the file provided via "--file-list" cannot be opened it will now error out * add command-line option "--disable=" to individually disable checks GUI: * Detect when installed version is old. There is setting in Edit/Preferences to turn this on. * Fix path issue with backslashes * Cleanup *.ctu-info files after analysis Build: * the deprecated Makefile option SRCDIR is no longer accepted * added CMake option BUILD_CORE_DLL to build lib as cppcheck-core.dll with Visual Studio OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=102 --- cppcheck-2.10.tar.gz | 3 +++ cppcheck-2.9.3.tar.gz | 3 --- cppcheck.changes | 21 +++++++++++++++++++++ cppcheck.spec | 4 ++-- 4 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 cppcheck-2.10.tar.gz delete mode 100644 cppcheck-2.9.3.tar.gz diff --git a/cppcheck-2.10.tar.gz b/cppcheck-2.10.tar.gz new file mode 100644 index 0000000..2f92276 --- /dev/null +++ b/cppcheck-2.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:785dcbf711048dfe43ae920b6eff2eeebb4a096e88188a40e173ca4c030f57c3 +size 3442586 diff --git a/cppcheck-2.9.3.tar.gz b/cppcheck-2.9.3.tar.gz deleted file mode 100644 index 4acea20..0000000 --- a/cppcheck-2.9.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:46319ca73e33e4b2bd91981a76a0d4f184cd3f86b62dc18e8938eabacd3ad2e3 -size 3918291 diff --git a/cppcheck.changes b/cppcheck.changes index 4b53494..ea60828 100644 --- a/cppcheck.changes +++ b/cppcheck.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Mon Jan 30 12:07:50 UTC 2023 - Dirk Müller + +- update to 2.10.0: + * Many improvements and fixes in checkers. + * New check: use memset/memcpy instead of loop + CLI: + * if the file provided via "--file-list" cannot be opened it + will now error out + * add command-line option "--disable=" to individually disable + checks + GUI: + * Detect when installed version is old. There is setting in + Edit/Preferences to turn this on. + * Fix path issue with backslashes + * Cleanup *.ctu-info files after analysis + Build: + * the deprecated Makefile option SRCDIR is no longer accepted + * added CMake option BUILD_CORE_DLL to build lib as + cppcheck-core.dll with Visual Studio + ------------------------------------------------------------------- Wed Dec 7 22:39:58 UTC 2022 - Dirk Müller diff --git a/cppcheck.spec b/cppcheck.spec index ab7fc34..34e6439 100644 --- a/cppcheck.spec +++ b/cppcheck.spec @@ -1,7 +1,7 @@ # # spec file for package cppcheck # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: cppcheck -Version: 2.9.3 +Version: 2.10 Release: 0 Summary: A tool for static C/C++ code analysis License: GPL-3.0-or-later From b06084542c1e09c6d28f7b9d651aa70d8f2b4e00e996f3b270c90997e58ed1f7 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Wed, 1 Feb 2023 09:32:41 +0000 Subject: [PATCH 2/2] Accepting request 1062346 from home:pragmalin:branches:devel:tools - install files from the addons/ and platforms/ directories - boo#1207806 - correct shebang fix for htmlreport/cppcheck-htmlreport OBS-URL: https://build.opensuse.org/request/show/1062346 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=103 --- cppcheck.changes | 6 ++++++ cppcheck.spec | 13 ++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/cppcheck.changes b/cppcheck.changes index ea60828..a9faf18 100644 --- a/cppcheck.changes +++ b/cppcheck.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jan 31 18:24:47 UTC 2023 - PragmaticLinux + +- install files from the addons/ and platforms/ directories - boo#1207806 +- correct shebang fix for htmlreport/cppcheck-htmlreport + ------------------------------------------------------------------- Mon Jan 30 12:07:50 UTC 2023 - Dirk Müller diff --git a/cppcheck.spec b/cppcheck.spec index 34e6439..eb5a4be 100644 --- a/cppcheck.spec +++ b/cppcheck.spec @@ -25,6 +25,7 @@ URL: https://github.com/danmar/cppcheck Source: https://github.com/danmar/cppcheck/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: docbook-xsl-stylesheets +BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libqt5-linguist-devel BuildRequires: pkgconfig @@ -91,7 +92,7 @@ cd .. DB2MAN=%{_datadir}/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl # use python3 as interpreter -sed -i "s|env python|python3|g" htmlreport/cppcheck-htmlreport +sed -i "s|env python3|python3|g" htmlreport/cppcheck-htmlreport %check export CXXFLAGS="%{optflags}" @@ -108,6 +109,16 @@ install -Dpm 0644 cppcheck.1 \ %{buildroot}%{_mandir}/man1/cppcheck.1 install -d %{buildroot}%{_datadir}/%{name}/cfg install -pm 0644 cfg/*.cfg %{buildroot}%{_datadir}/%{name}/cfg +install -d %{buildroot}%{_datadir}/%{name}/platforms +install -pm 0644 platforms/*.xml %{buildroot}%{_datadir}/%{name}/platforms +install -d %{buildroot}%{_datadir}/%{name}/addons +install -pm 0644 addons/*.py %{buildroot}%{_datadir}/%{name}/addons +# Give execute permission to python addons with a shebang to fix non-executable-script +find %{buildroot}%{_datadir}/%{name}/addons -type f -size +0 -exec awk 'NR == 1 && /^#!.*python/ { exit } { exit 1 }' {} \; -print0 | xargs -0 chmod +x +# Correct shebang to fix env-script-interpreter +find %{buildroot}%{_datadir}/%{name}/addons -type f -size +0 -exec awk 'NR == 1 && /^#!.*python/ { exit } { exit 1 }' {} \; -print0 | xargs -0 sed -i "s|env python3|python3|g" +# Remove duplicate files +%fdupes -s %{buildroot}%{_datadir}/%{name}/platforms %files %doc AUTHORS