cppcheck, bump to 2.18.3 (#12920)

This commit is contained in:
Schrijvers Luc
2025-09-11 18:04:39 +02:00
committed by GitHub
parent f0fe69f207
commit 163bbb3e33
2 changed files with 13 additions and 12 deletions

View File

@@ -10,9 +10,9 @@ Features:
HOMEPAGE="http://cppcheck.sourceforge.io/"
COPYRIGHT="2007-2025 the Cppcheck team"
LICENSE="GNU GPL v3"
REVISION="2"
REVISION="1"
SOURCE_URI="https://github.com/danmar/cppcheck/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="bfd681868248ec03855ca7c2aea7bcb1f39b8b18860d76aec805a92a967b966c"
CHECKSUM_SHA256="e37c94e190cdddc65682649b02b72939761585bddd8ada595f922e190a26a2be"
SOURCE_FILENAME="cppcheck-$portVersion.tar.gz"
PATCHES="cppcheck-$portVersion.patchset"
@@ -32,6 +32,7 @@ REQUIRES="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
# devel:libboost_system$secondaryArchSuffix >= 1.88.0
devel:libpcre$secondaryArchSuffix
devel:libtinyxml2$secondaryArchSuffix
"

View File

@@ -1,15 +1,15 @@
From fdbcdcfd5e0de75a99451eff7aecc3f1384b9cfe Mon Sep 17 00:00:00 2001
From 1ac43d9e9219a827163384f99b5e86eac75858e7 Mon Sep 17 00:00:00 2001
From: Luc Schrijvers <begasus@gmail.com>
Date: Wed, 30 Apr 2025 08:59:19 +0200
Subject: Fix build error for tests
diff --git a/test/signal/test-signalhandler.cpp b/test/signal/test-signalhandler.cpp
index a3e77b0..65568a3 100644
index 335a942..2f71b49 100644
--- a/test/signal/test-signalhandler.cpp
+++ b/test/signal/test-signalhandler.cpp
@@ -52,7 +52,7 @@
++*(int*)nullptr;
++*static_cast<int*>(nullptr); // NOLINT(clang-analyzer-core.NullDereference)
}
-#if !defined(__APPLE__)
@@ -27,20 +27,20 @@ index a3e77b0..65568a3 100644
return my_fpe();
#endif
--
2.48.1
2.50.1
From a20e0f838202907d0dd5b2df6ae74e2469d45319 Mon Sep 17 00:00:00 2001
From 51eef1a146f07b4be39db0773da738f34bb00c57 Mon Sep 17 00:00:00 2001
From: Joachim Reichel <reichel@debian.org>
Date: Wed, 30 Apr 2025 10:58:42 +0200
Subject: Install the translations in /lang instead of /usr/bin
diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt
index 1c1818c..153d283 100644
index 143f966..95855ad 100644
--- a/gui/CMakeLists.txt
+++ b/gui/CMakeLists.txt
@@ -85,7 +85,7 @@ CheckOptions:
@@ -99,7 +99,7 @@ CheckOptions:
endif()
install(TARGETS cppcheck-gui RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} COMPONENT applications)
@@ -50,10 +50,10 @@ index 1c1818c..153d283 100644
install(FILES cppcheck-gui.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications)
--
2.48.1
2.50.1
From aec79ec473596aef68e2359248f4769358654188 Mon Sep 17 00:00:00 2001
From 578215a8cf7ff7ddb4b197e6e0ec3c3cf4f5e876 Mon Sep 17 00:00:00 2001
From: Joachim Reichel <reichel@debian.org>
Date: Wed, 30 Apr 2025 11:00:26 +0200
Subject: Set configuration directory and python version
@@ -77,5 +77,5 @@ index 91bc9e7..e974aac 100644
const QStringList args = QApplication::arguments();
auto it = std::find_if(args.cbegin(), args.cend(), [](const QString& arg) {
--
2.48.1
2.50.1