NetBSD Problem Report #49570

From www@NetBSD.org  Wed Jan 14 21:30:16 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" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 9CD05A6562
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 14 Jan 2015 21:30:16 +0000 (UTC)
Message-Id: <20150114213008.47FEDA65C4@mollari.NetBSD.org>
Date: Wed, 14 Jan 2015 21:30:06 +0000 (UTC)
From: jonthn+pkgsrc@pinacea.com
Reply-To: jonthn+pkgsrc@pinacea.com
To: gnats-bugs@NetBSD.org
Subject: Update pkgsrc package 'cppcheck' to 1.68
X-Send-Pr-Version: www-1.0

>Number:         49570
>Category:       pkg
>Synopsis:       Update pkgsrc package 'cppcheck' to 1.68
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 14 21:35:00 +0000 2015
>Closed-Date:    Wed Jan 14 21:48:24 +0000 2015
>Last-Modified:  Wed Jan 14 21:50:00 +0000 2015
>Originator:     Jonathan Buschmann
>Release:        
>Organization:
>Environment:
>Description:
I've already contacted the maintainer of the package, but I've got no response as of today.

The patch attached update the package to latest version 1.68

------- Changelog ------

== Cppcheck-1.68 ==

General changes:

New checks:
- Multifile checking for buffer overruns and uninitialized variables

Improvements:
- Libraries are now able to contain platform specific types
- Improved handling of function overloads
- Improved handling of integer literal suffixes
- Improved stability of template parsing
- Improved accuracy of ValueFlow analysis
- Improved checking of pointer overflow
- Support noexcept(false)
- Support attribute((noreturn))
- A bunch of additions to several Libraries, especially posix.cfg and qt.cfg

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

== Cppcheck-1.67 ==

General changes:
- Library files have now a 'format' attribute. Format version 1 is assumed by default
- Cppcheck does no longer abort checking if unhandled characters (Non-ASCII) are found

New checks:
- Check for unused return values
- Detect shift by too many bits, signed integer overflow and dangerous sign conversion
- Recommend usage of expm1(), log1p(), erfc()
- Division by sizeof() as parameter to memset/memcpy/memmove/etc. as they expect a size in bytes
- Several new va_arg related checks:
-- Wrong parameter passed to va_start()
-- Reference passed to va_start()
-- Missing va_end()
-- Using va_list before it is opened
-- Subsequent calls to va_start/va_copy()
- Initialization by itself in initializer list
- Dead pointer usage when pointer alias local variable that has gone out of scope

Improvements:
- Support uniform initialization syntax (C++11)
- Much improvements to value flow analysis
- Improved AST creation (support placement new, C++-style casts, templates, operator new[], ...)
- Improved lambda support
- Support GCC extension attriute((used)) and MSVC extension __declspec(property)
- Better support for static member variables, inherited variables and namespaces
- Improved typedef support where multiple variables are declared at once
- Avoid checking code multiple times by calculating a checksum. Duplicate preprocessor configurations are eliminated by this.
- Support C++03/C 'auto' keyword
- HTML report: display 'verbose' message using clickable expandable divs
>How-To-Repeat:

>Fix:
diff --git a/devel/cppcheck/Makefile b/devel/cppcheck/Makefile
index 2759ea9..97d8362 100644
--- a/devel/cppcheck/Makefile
+++ b/devel/cppcheck/Makefile
@@ -1,6 +1,6 @@
 # $NetBSD: Makefile,v 1.30 2014/08/07 11:35:10 wiz Exp $

-DISTNAME=	cppcheck-1.66
+DISTNAME=	cppcheck-1.68
 CATEGORIES=	devel
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=cppcheck/}
 EXTRACT_SUFX=	.tar.bz2
diff --git a/devel/cppcheck/distinfo b/devel/cppcheck/distinfo
index 87becac..7c4a27b 100644
--- a/devel/cppcheck/distinfo
+++ b/devel/cppcheck/distinfo
@@ -1,6 +1,5 @@
 $NetBSD: distinfo,v 1.9 2014/08/10 08:21:46 wiz Exp $

-SHA1 (cppcheck-1.66.tar.bz2) = 2b24bc35b113ece52be277a8800dd9685ecb7fc7
-RMD160 (cppcheck-1.66.tar.bz2) = 09786b4b8f379ec099674fc6cb863a438fe31c02
-Size (cppcheck-1.66.tar.bz2) = 1064369 bytes
-SHA1 (patch-Makefile) = ad7e37e5cc22267a4524443d15f378d4a18cc444
+SHA1 (cppcheck-1.68.tar.bz2) = 5f24fe9441cd558863c770e3b230dcfaaa3d93d0
+RMD160 (cppcheck-1.68.tar.bz2) = f2162fc3072801a6cf517b728bb538e6bc53ef99
+Size (cppcheck-1.68.tar.bz2) = 1008321 bytes
diff --git a/devel/cppcheck/patches/patch-Makefile b/devel/cppcheck/patches/patch-Makefile
deleted file mode 100644
index 3675b18..0000000
--- a/devel/cppcheck/patches/patch-Makefile
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD: patch-Makefile,v 1.2 2014/08/10 08:21:46 wiz Exp $
-
-Fix DESTDIR installation of config files.
-http://5.150.254.56:443/trac-cppcheck/ticket/6043
-
---- Makefile.orig	2014-08-02 10:39:20.000000000 +0000
-+++ Makefile
-@@ -263,8 +263,8 @@ install: cppcheck
- 	install cppcheck ${BIN}
- 	install htmlreport/cppcheck-htmlreport ${BIN}
- ifdef CFGDIR 
--	install -d ${CFGDIR}
--	install -m 644 cfg/* ${CFGDIR}
-+	install -d ${DESTDIR}${CFGDIR}
-+	install -m 644 cfg/* ${DESTDIR}${CFGDIR}
- endif
- 
- 

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Wed, 14 Jan 2015 21:48:24 +0000
State-Changed-Why:
Committed, thanks.


From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49570 CVS commit: pkgsrc/devel/cppcheck
Date: Wed, 14 Jan 2015 21:48:10 +0000

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Wed Jan 14 21:48:10 UTC 2015

 Modified Files:
 	pkgsrc/devel/cppcheck: Makefile distinfo
 Removed Files:
 	pkgsrc/devel/cppcheck/patches: patch-Makefile

 Log Message:
 Update to 1.68 from Jonathan Buschmann in PR 49570.

 == Cppcheck-1.68 ==

 General changes:

 New checks:
 - Multifile checking for buffer overruns and uninitialized variables

 Improvements:
 - Libraries are now able to contain platform specific types
 - Improved handling of function overloads
 - Improved handling of integer literal suffixes
 - Improved stability of template parsing
 - Improved accuracy of ValueFlow analysis
 - Improved checking of pointer overflow
 - Support noexcept(false)
 - Support attribute((noreturn))
 - A bunch of additions to several Libraries, especially posix.cfg and qt.cfg

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

 == Cppcheck-1.67 ==

 General changes:
 - Library files have now a 'format' attribute. Format version 1 is assumed by default
 - Cppcheck does no longer abort checking if unhandled characters (Non-ASCII) are found

 New checks:
 - Check for unused return values
 - Detect shift by too many bits, signed integer overflow and dangerous sign conversion
 - Recommend usage of expm1(), log1p(), erfc()
 - Division by sizeof() as parameter to memset/memcpy/memmove/etc. as they expect a size in bytes
 - Several new va_arg related checks:
 -- Wrong parameter passed to va_start()
 -- Reference passed to va_start()
 -- Missing va_end()
 -- Using va_list before it is opened
 -- Subsequent calls to va_start/va_copy()
 - Initialization by itself in initializer list
 - Dead pointer usage when pointer alias local variable that has gone out of scope

 Improvements:
 - Support uniform initialization syntax (C++11)
 - Much improvements to value flow analysis
 - Improved AST creation (support placement new, C++-style casts, templates, operator new[], ...)
 - Improved lambda support
 - Support GCC extension attriute((used)) and MSVC extension __declspec(property)
 - Better support for static member variables, inherited variables and namespaces
 - Improved typedef support where multiple variables are declared at once
 - Avoid checking code multiple times by calculating a checksum. Duplicate preprocessor configurations are eliminated by this.
 - Support C++03/C 'auto' keyword
 - HTML report: display 'verbose' message using clickable expandable divs


 To generate a diff of this commit:
 cvs rdiff -u -r1.30 -r1.31 pkgsrc/devel/cppcheck/Makefile
 cvs rdiff -u -r1.9 -r1.10 pkgsrc/devel/cppcheck/distinfo
 cvs rdiff -u -r1.2 -r0 pkgsrc/devel/cppcheck/patches/patch-Makefile

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

>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.