NetBSD Problem Report #49885

From www@NetBSD.org  Fri May  8 17:05:46 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 158F4A5864
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  8 May 2015 17:05:46 +0000 (UTC)
Message-Id: <20150508170544.9628AA6558@mollari.NetBSD.org>
Date: Fri,  8 May 2015 17:05:44 +0000 (UTC)
From: jonthn+pkgsrc@pinacea.com
Reply-To: jonthn+pkgsrc@pinacea.com
To: gnats-bugs@NetBSD.org
Subject: Update 'devel/cppcheck' to version 1.69
X-Send-Pr-Version: www-1.0

>Number:         49885
>Category:       pkg
>Synopsis:       Update 'devel/cppcheck' to version 1.69
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bsiegert
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri May 08 17:10:00 +0000 2015
>Closed-Date:    Fri May 08 19:41:02 +0000 2015
>Last-Modified:  Fri May 08 19:41:02 +0000 2015
>Originator:     Jonathan Buschmann
>Release:        
>Organization:
>Environment:
>Description:
Update the package 'cppcheck' to version 1.69

Cppcheck-1.69 has been released (1-May-2015)

General changes:
- Added flag --platform=native, when it is used type sizes and behaviour of host system are used
- Backward compatibility for Libary files is now working. Future cppcheck versions will be able to use libraries written for previous versions
- Windows 32 bit builds now set /LARGEADDRESSAWARE, so that they can use up to 4 GiB

New checks:
- Detect bad bitmask checks (usage of | where & should be used)
- Suggest usage of "explicit" for constructors with a single parameter
- Suggest usage of make_shared/make_unique
- Warn about usage of malloc with auto_ptr
- Detect redundant pointer operations like &*ptr

Improvements:
- Support std::array (C++11)
- Detect same expressions in both branches of a ternary operator
- New <container>-tags in libraries to configure STL (and similar) container types
- Several improvements to ValueFlow analysis (for example support for default function arguments)
- Improved buffer overrun and memory leak checking
- Removed a bunch of redundant checking code
- Removed several simplifications
- Stronger matching of library functions
- Lots of additions to std.cfg and posix.cfg
- New library for Microsoft SAL (microsoft_sal.cfg)
- Improved C++11 template parsing (">>" as closing brackets, variadic templates)
- Added statistics to htmlreport

GUI:
- Fixed language selection

Additionally, lots of false positives and bugs have been fixed and several existing checks have been improved.
>How-To-Repeat:

>Fix:
diff --git a/devel/cppcheck/Makefile b/devel/cppcheck/Makefile
index 91737e9..2bbf933 100644
--- a/devel/cppcheck/Makefile
+++ b/devel/cppcheck/Makefile
@@ -1,7 +1,6 @@
 # $NetBSD: Makefile,v 1.34 2015/04/25 14:20:33 tnn Exp $

-DISTNAME=      cppcheck-1.68
-PKGREVISION=   2
+DISTNAME=      cppcheck-1.69
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=cppcheck/}
 EXTRACT_SUFX=  .tar.bz2
diff --git a/devel/cppcheck/PLIST b/devel/cppcheck/PLIST
index 9807a78..1c91279 100644
--- a/devel/cppcheck/PLIST
+++ b/devel/cppcheck/PLIST
@@ -1,10 +1,13 @@
-@comment $NetBSD: PLIST,v 1.4 2014/08/07 11:35:10 wiz Exp $
+@comment $NetBSD$
 bin/cppcheck
 ${PLIST.qt}bin/cppcheck-gui
 bin/cppcheck-htmlreport
 man/man1/cppcheck.1
 share/cppcheck/cfg/avr.cfg
+share/cppcheck/cfg/cppcheck-cfg.rng
+share/cppcheck/cfg/gnu.cfg
 share/cppcheck/cfg/gtk.cfg
+share/cppcheck/cfg/microsoft_sal.cfg
 share/cppcheck/cfg/posix.cfg
 share/cppcheck/cfg/qt.cfg
 share/cppcheck/cfg/sdl.cfg
diff --git a/devel/cppcheck/distinfo b/devel/cppcheck/distinfo
index 684f00a..77a0fd3 100644
--- a/devel/cppcheck/distinfo
+++ b/devel/cppcheck/distinfo
@@ -1,5 +1,5 @@
 $NetBSD: distinfo,v 1.10 2015/01/14 21:48:10 wiz Exp $

-SHA1 (cppcheck-1.68.tar.bz2) = 5f24fe9441cd558863c770e3b230dcfaaa3d93d0
-RMD160 (cppcheck-1.68.tar.bz2) = f2162fc3072801a6cf517b728bb538e6bc53ef99
-Size (cppcheck-1.68.tar.bz2) = 1008321 bytes
+SHA1 (cppcheck-1.69.tar.bz2) = d54f5fa90abd5a3e4e581f85915d46aec5408141
+RMD160 (cppcheck-1.69.tar.bz2) = 70ac3979017d7c9618da9c3021b35d05d211a281
+Size (cppcheck-1.69.tar.bz2) = 1052984 bytes

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->bsiegert
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Fri, 08 May 2015 19:38:40 +0000
Responsible-Changed-Why:


From: "Benny Siegert" <bsiegert@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49885 CVS commit: pkgsrc/devel/cppcheck
Date: Fri, 8 May 2015 19:35:33 +0000

 Module Name:	pkgsrc
 Committed By:	bsiegert
 Date:		Fri May  8 19:35:33 UTC 2015

 Modified Files:
 	pkgsrc/devel/cppcheck: Makefile PLIST distinfo

 Log Message:
 Update cppcheck to 1.69. Patch from Jonathan Buschmann in PR pkg/49885.

 General changes:
 - Added flag --platform=native, when it is used type sizes and behaviour of
   host system are used
 - Backward compatibility for Libary files is now working. Future cppcheck
   versions will be able to use libraries written for previous versions
 - Windows 32 bit builds now set /LARGEADDRESSAWARE, so that they can use up to
   4 GiB

 New checks:
 - Detect bad bitmask checks (usage of | where & should be used)
 - Suggest usage of "explicit" for constructors with a single parameter
 - Suggest usage of make_shared/make_unique
 - Warn about usage of malloc with auto_ptr
 - Detect redundant pointer operations like &*ptr

 Improvements:
 - Support std::array (C++11)
 - Detect same expressions in both branches of a ternary operator
 - New <container>-tags in libraries to configure STL (and similar) container
   types
 - Several improvements to ValueFlow analysis (for example support for default
   function arguments)
 - Improved buffer overrun and memory leak checking
 - Removed a bunch of redundant checking code
 - Removed several simplifications
 - Stronger matching of library functions
 - Lots of additions to std.cfg and posix.cfg
 - New library for Microsoft SAL (microsoft_sal.cfg)
 - Improved C++11 template parsing (">>" as closing brackets, variadic
   templates)
 - Added statistics to htmlreport

 GUI:
 - Fixed language selection

 Additionally, lots of false positives and bugs have been fixed and several
 existing checks have been improved.


 To generate a diff of this commit:
 cvs rdiff -u -r1.34 -r1.35 pkgsrc/devel/cppcheck/Makefile
 cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/cppcheck/PLIST
 cvs rdiff -u -r1.10 -r1.11 pkgsrc/devel/cppcheck/distinfo

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Benny Siegert" <bsiegert@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49885 CVS commit: pkgsrc/doc
Date: Fri, 8 May 2015 19:36:48 +0000

 Module Name:	pkgsrc
 Committed By:	bsiegert
 Date:		Fri May  8 19:36:48 UTC 2015

 Modified Files:
 	pkgsrc/doc: CHANGES-2015

 Log Message:
 Note cppcheck update from PR pkg/49885.


 To generate a diff of this commit:
 cvs rdiff -u -r1.2179 -r1.2180 pkgsrc/doc/CHANGES-2015

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Fri, 08 May 2015 19:41:02 +0000
State-Changed-Why:
Patch committed, thanks!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.