From nobody Tue Feb 27 21:15:26 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TkqyQ3Fb8z5CRRm; Tue, 27 Feb 2024 21:15:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TkqyQ25N4z45Qd; Tue, 27 Feb 2024 21:15:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709068526; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bg8zBGOWWklIzfpPTKyeS/3H9h78+mlrY6hiDFB5+xo=; b=ORa6z2aA8pcq00oeznlsR70ctMRy9JCeWstSKbNuoQuPVn7BbIS3D+7QlMdsn/zjybrbrg E0fSjBwHztc0mmw4yBFrHVCk19qopw9V0Y8UYQoiXu9CaGdYC7CRmRoW2cLkMpFwca/5uY 4k2mc2ilafnu/tm1NSjL3y9ccnOvywVGoANFlB9mn93nv0O/WQGcN0iq+PzAhiMkku2b2B 74hrGAizX153MI9Z51XrfzaF56JFJEdQ+ViBIGptiwKW1yO5MibJ9Sy5LGRfccfhewH1/D 2/lqKSzcJYYbz9bIYsJ2ajU3Gcwu6bqDnxFASH8MjFn85p+9ANNeDck0DoWwnA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709068526; a=rsa-sha256; cv=none; b=TV6D+0NPud9PyqZ8kQUjuKnJ5FS+97chVDAO0Z5FbhZOFYBUurJgSYc4x43BENpMxwhhpD RvzKcaUoBjuaPLThpHynYbXY6LHyHqyscJ0RFdgYxn60GDX8TsFHGbL4JbGblFViH26+Qf M6uILVzffnyya5V/wMAPNbdT+KTyUF6AA3eNaHxKstLQ2DEhP08FKNyVrPWWx/CfhH+9mG JWeV+XZ1DEucBPyGjEtUvDNu8BrCeyWorVF6GXpx0l480lgToM0tUmeyzCRaqq6UuOsX4o vMaIeZ2o4yHyAyeXDuPj9tAc17fd42D0m7PBML54KC6hXv/3IkexsxUCwL2TOA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709068526; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bg8zBGOWWklIzfpPTKyeS/3H9h78+mlrY6hiDFB5+xo=; b=EhPLzKmOWGGz1GzLnnwRGFyEmkTS/SnRN2zXbh2HnSuM5/ndKQkJW2xVGV4l3uKtmbHyaN +LV9xuyO0EWn4JSPNIS6ATm+Rr437L1PTU3BDWdTxqTPLMadhQ6ZPDOKA/0oU1kFHVU4bP MjRvTPPjY4DgbvSYqxoBGdfGX11cJd519aoD4urQeAMrWLRy7muILCDYBDfmMM2bDPBPsq SXFr2+nCSJ7MadbRz5BjzC54BJeGyamZ2GpwFdyV3J+zC1yTL27fI58+IEy2vmt0ayyW77 Jow+KWx+8tt47GyRPrWalV+Qs7CnuZxoK+ky6nVflOP5nP0jzG5Nd23LxbeV/w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TkqyQ0vCJzTBv; Tue, 27 Feb 2024 21:15:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41RLFQXm045613; Tue, 27 Feb 2024 21:15:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41RLFQVY045610; Tue, 27 Feb 2024 21:15:26 GMT (envelope-from git) Date: Tue, 27 Feb 2024 21:15:26 GMT Message-Id: <202402272115.41RLFQVY045610@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dmitry Marakasov Subject: git: 29c816e91254 - main - devel/cppcheck: update 2.12.1 =?utf-8?Q?=E2=86=92?= 2.13.4 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: amdmi3 X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 29c816e91254421d2df96a97c4688d0896800db6 Auto-Submitted: auto-generated The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=29c816e91254421d2df96a97c4688d0896800db6 commit 29c816e91254421d2df96a97c4688d0896800db6 Author: Dmitry Marakasov AuthorDate: 2024-02-27 21:14:58 +0000 Commit: Dmitry Marakasov CommitDate: 2024-02-27 21:15:20 +0000 devel/cppcheck: update 2.12.1 → 2.13.4 --- devel/cppcheck/Makefile | 5 ++++- devel/cppcheck/distinfo | 6 +++--- devel/cppcheck/files/patch-cli_cppcheckexecutor.cpp | 13 +++++++++++++ devel/cppcheck/files/patch-test_testfilelister.cpp | 11 +++++++++++ devel/cppcheck/files/patch-test_testother.cpp | 18 ++++++++++++++++++ 5 files changed, 49 insertions(+), 4 deletions(-) diff --git a/devel/cppcheck/Makefile b/devel/cppcheck/Makefile index e27a22f486fd..5fec5569fbf2 100644 --- a/devel/cppcheck/Makefile +++ b/devel/cppcheck/Makefile @@ -1,5 +1,5 @@ PORTNAME= cppcheck -PORTVERSION= 2.12.1 +PORTVERSION= 2.13.4 CATEGORIES= devel MAINTAINER= amdmi3@FreeBSD.org @@ -58,6 +58,9 @@ CHARTS_CMAKE_BOOL= WITH_QCHART CHARTS_IMPLIES= GUI CHARTS_USE= QT=charts +post-patch: + @${REINPLACE_CMD} -e 's|%%WRKSRC%%|${WRKSRC}|' ${WRKSRC}/test/testfilelister.cpp + post-install-HTMLREPORT-on: ${INSTALL_SCRIPT} ${WRKSRC}/htmlreport/cppcheck-htmlreport ${STAGEDIR}${PREFIX}/bin diff --git a/devel/cppcheck/distinfo b/devel/cppcheck/distinfo index 0d6560fcceb6..196c3a5af8c6 100644 --- a/devel/cppcheck/distinfo +++ b/devel/cppcheck/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1695753260 -SHA256 (danmar-cppcheck-2.12.1_GH0.tar.gz) = 2a3d4ba1179419612183ab3d6aed6d3b18be75e98cd6f138ea8e2020905dced2 -SIZE (danmar-cppcheck-2.12.1_GH0.tar.gz) = 3579702 +TIMESTAMP = 1709055380 +SHA256 (danmar-cppcheck-2.13.4_GH0.tar.gz) = d6ea064ebab76c6aa000795440479767d8d814dd29405918df4c1bbfcd6cb86c +SIZE (danmar-cppcheck-2.13.4_GH0.tar.gz) = 3646131 diff --git a/devel/cppcheck/files/patch-cli_cppcheckexecutor.cpp b/devel/cppcheck/files/patch-cli_cppcheckexecutor.cpp new file mode 100644 index 000000000000..03645dc3a08b --- /dev/null +++ b/devel/cppcheck/files/patch-cli_cppcheckexecutor.cpp @@ -0,0 +1,13 @@ +--- cli/cppcheckexecutor.cpp.orig 2024-02-16 08:46:10 UTC ++++ cli/cppcheckexecutor.cpp +@@ -64,6 +64,10 @@ + #include + #endif + ++#if !defined(WIN32) && !defined(__MINGW32__) ++#include // WIFEXITETED and friends ++#endif ++ + class CmdLineLoggerStd : public CmdLineLogger + { + public: diff --git a/devel/cppcheck/files/patch-test_testfilelister.cpp b/devel/cppcheck/files/patch-test_testfilelister.cpp new file mode 100644 index 000000000000..a02dbdbf18ce --- /dev/null +++ b/devel/cppcheck/files/patch-test_testfilelister.cpp @@ -0,0 +1,11 @@ +--- test/testfilelister.cpp.orig 2024-02-16 08:46:10 UTC ++++ test/testfilelister.cpp +@@ -43,7 +43,7 @@ class TestFileLister : public TestFixture { (private) + + // TODO: generate file list instead + static std::string findBaseDir() { +- std::string basedir; ++ std::string basedir = "%%WRKSRC%%/"; + while (!Path::isDirectory(Path::join(basedir, ".github"))) { + const std::string abspath = Path::getAbsoluteFilePath(basedir); + basedir += "../"; diff --git a/devel/cppcheck/files/patch-test_testother.cpp b/devel/cppcheck/files/patch-test_testother.cpp new file mode 100644 index 000000000000..6ee71403f6f7 --- /dev/null +++ b/devel/cppcheck/files/patch-test_testother.cpp @@ -0,0 +1,18 @@ +--- test/testother.cpp.orig 2024-02-16 08:46:10 UTC ++++ test/testother.cpp +@@ -2173,6 +2173,7 @@ class TestOther : public TestFixture { (private) + "}\n"); + ASSERT_EQUALS("[test.cpp:1]: (performance) Function parameter 't' should be passed by const reference.\n", errout.str()); + ++#ifndef __i386__ + check("struct S {\n" // #12138 + " union {\n" + " int a = 0;\n" +@@ -2191,6 +2192,7 @@ class TestOther : public TestFixture { (private) + " if (s.x > s.y) {}\n" + "}\n"); + ASSERT_EQUALS("", errout.str()); ++#endif + + check("struct S { std::list l; };\n" // #12147 + "class C { public: std::list l; };\n"