From 2b82f0b7c5cdf3c071f104c0f1aa5c1f18945b40 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Tue, 26 Sep 2023 21:33:58 +0300 Subject: =?UTF-8?q?devel/cppcheck:=20update=202.10.3=20=E2=86=92=202.12.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- devel/cppcheck/Makefile | 2 +- devel/cppcheck/distinfo | 6 +++--- devel/cppcheck/files/patch-CMakeLists.txt | 6 +++--- devel/cppcheck/files/patch-test_testpath.cpp | 14 ++++++++++++++ 4 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 devel/cppcheck/files/patch-test_testpath.cpp diff --git a/devel/cppcheck/Makefile b/devel/cppcheck/Makefile index 5065e238bf84..a5bcfcf64dc3 100644 --- a/devel/cppcheck/Makefile +++ b/devel/cppcheck/Makefile @@ -1,5 +1,5 @@ PORTNAME= cppcheck -PORTVERSION= 2.10.3 +PORTVERSION= 2.12.1 CATEGORIES= devel MAINTAINER= amdmi3@FreeBSD.org diff --git a/devel/cppcheck/distinfo b/devel/cppcheck/distinfo index 2b41c893c8dd..0d6560fcceb6 100644 --- a/devel/cppcheck/distinfo +++ b/devel/cppcheck/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1679426311 -SHA256 (danmar-cppcheck-2.10.3_GH0.tar.gz) = 8aae5e116daeaaf5d19f3efa61b91c06f161cb97412a1d1af6e1e20686e48967 -SIZE (danmar-cppcheck-2.10.3_GH0.tar.gz) = 3447010 +TIMESTAMP = 1695753260 +SHA256 (danmar-cppcheck-2.12.1_GH0.tar.gz) = 2a3d4ba1179419612183ab3d6aed6d3b18be75e98cd6f138ea8e2020905dced2 +SIZE (danmar-cppcheck-2.12.1_GH0.tar.gz) = 3579702 diff --git a/devel/cppcheck/files/patch-CMakeLists.txt b/devel/cppcheck/files/patch-CMakeLists.txt index 71a0b515cdb8..c09aa766944f 100644 --- a/devel/cppcheck/files/patch-CMakeLists.txt +++ b/devel/cppcheck/files/patch-CMakeLists.txt @@ -1,9 +1,9 @@ ---- CMakeLists.txt.orig 2020-05-10 09:31:19 UTC +--- CMakeLists.txt.orig 2023-06-22 09:07:56 UTC +++ CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 2.8.12) -project(Cppcheck) +project(cppcheck) - set(CMAKE_EXPORT_COMPILE_COMMANDS ON) - + include(cmake/cxx11.cmake) + use_cxx11() diff --git a/devel/cppcheck/files/patch-test_testpath.cpp b/devel/cppcheck/files/patch-test_testpath.cpp new file mode 100644 index 000000000000..2b21c01bc0d4 --- /dev/null +++ b/devel/cppcheck/files/patch-test_testpath.cpp @@ -0,0 +1,14 @@ +This test requires /proc to be mounted + +--- test/testpath.cpp.orig 2023-06-22 09:07:56 UTC ++++ test/testpath.cpp +@@ -74,7 +74,9 @@ class TestPath : public TestFixture { (private) + } + + void getCurrentExecutablePath() const { ++#ifndef __FreeBSD__ + ASSERT_EQUALS(false, Path::getCurrentExecutablePath("").empty()); ++#endif + } + + void isAbsolute() const { -- cgit v1.2.3