From owner-freebsd-bugs@FreeBSD.ORG Wed Apr 15 10:40:06 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C5CA1065674 for ; Wed, 15 Apr 2009 10:40:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 374E28FC0C for ; Wed, 15 Apr 2009 10:40:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3FAe6V5010915 for ; Wed, 15 Apr 2009 10:40:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3FAe6Qs010914; Wed, 15 Apr 2009 10:40:06 GMT (envelope-from gnats) Resent-Date: Wed, 15 Apr 2009 10:40:06 GMT Resent-Message-Id: <200904151040.n3FAe6Qs010914@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, bf Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB017106564A for ; Wed, 15 Apr 2009 10:32:00 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id D920B8FC1D for ; Wed, 15 Apr 2009 10:32:00 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n3FAW0kf028420 for ; Wed, 15 Apr 2009 10:32:00 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n3FAW0Qf028419; Wed, 15 Apr 2009 10:32:00 GMT (envelope-from nobody) Message-Id: <200904151032.n3FAW0Qf028419@www.freebsd.org> Date: Wed, 15 Apr 2009 10:32:00 GMT From: bf To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/133749: [PATCH]devel/cppcheck: update to 1.31 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Apr 2009 10:40:07 -0000 >Number: 133749 >Category: misc >Synopsis: [PATCH]devel/cppcheck: update to 1.31 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 15 10:40:05 UTC 2009 >Closed-Date: >Last-Modified: >Originator: bf >Release: 8-CURRENT i386 >Organization: - >Environment: >Description: Update; minor makefile changes to respect CXX, CXXFLAGS, and NO_INSTALL_MANPAGES. >From the release notes: - Bug fix: Fix some false positives - Bug fix: Fix invalid line numbers in error messages. - Bug fix: Uninitialized variable checking was improved. - Bug fix: All checks are more accurate due to several bug fixes in core functionality. - Bug fix: "Unused function" error message output was fixed. - Bug fix: Headers within header files where sometimes searched from wrong relative path. - Bug fix: Better handling of floating point arithmetics. - Improvement: Some new memory leaks are now detected. - Improvement: Implemented support for template functions. - Improvement: Implemented primitive support for namespaces. - Improvement: Changed "####### There is a bug in preprocessor.cpp" error into more informative and skip only one file, instead of terminating program. - Improvement: buffer overrun with dynamic memory (e.g. new char[10]) - New check: auto variable address - New check: "The size argument is given as a char constant" - New check: Division by zero >How-To-Repeat: >Fix: Patch attached with submission follows: diff -ruN cppcheck.orig/Makefile cppcheck/Makefile --- cppcheck.orig/Makefile 2009-04-15 04:57:01.276373935 -0400 +++ cppcheck/Makefile 2009-04-15 06:09:04.289215790 -0400 @@ -6,30 +6,38 @@ # PORTNAME= cppcheck -PORTVERSION= 1.30 +PORTVERSION= 1.31 CATEGORIES= devel MASTER_SITES= SF MAINTAINER= pgj@FreeBSD.org COMMENT= Static analysis of C/C++ code +USE_BZIP2= yes +USE_GMAKE= yes + +PLIST_FILES= bin/cppcheck + +ALL_TARGET= cppcheck + +.ifndef(NO_INSTALL_MANPAGES) BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt \ ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl MANCOMPRESSED= no MAN1= cppcheck.1 +ALL_TARGET+= cppcheck.1 -USE_GMAKE= yes -ALL_TARGET= cppcheck cppcheck.1 - -PLIST_FILES= bin/cppcheck +post-install: + @${INSTALL_MAN} ${WRKSRC}/cppcheck.1 ${PREFIX}/man/man1 -post-patch: - @${REINPLACE_CMD} -e 's|CXXFLAGS=|CXXFLAGS= ${CXXFLAGS} |' \ - ${WRKSRC}/Makefile +.endif do-install: @${INSTALL_PROGRAM} ${WRKSRC}/cppcheck ${PREFIX}/bin - @${INSTALL_MAN} ${WRKSRC}/cppcheck.1 ${PREFIX}/man/man1 + +regression-test: build + @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \ + ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} test) .include diff -ruN cppcheck.orig/distinfo cppcheck/distinfo --- cppcheck.orig/distinfo 2009-04-15 04:57:01.283370913 -0400 +++ cppcheck/distinfo 2009-04-15 06:09:04.289215790 -0400 @@ -1,3 +1,3 @@ -MD5 (cppcheck-1.30.tar.gz) = db18605e41e178764c8e809d76396b49 -SHA256 (cppcheck-1.30.tar.gz) = cb6648f9ca2f6085eb4f6d4978fb872a0a2e0bc4dcc7d24fcc9f200d6301211c -SIZE (cppcheck-1.30.tar.gz) = 133684 +MD5 (cppcheck-1.31.tar.bz2) = db500cee39ceaa7379bb105046d36cce +SHA256 (cppcheck-1.31.tar.bz2) = 40861e2dbbd9760000eda73058196dba021353d2eaaff50a7d9fa6d0b2f17563 +SIZE (cppcheck-1.31.tar.bz2) = 107894 diff -ruN cppcheck.orig/files/patch-Makefile cppcheck/files/patch-Makefile --- cppcheck.orig/files/patch-Makefile 2009-04-15 04:57:01.254375329 -0400 +++ cppcheck/files/patch-Makefile 2009-04-15 06:09:04.289215790 -0400 @@ -1,6 +1,12 @@ ---- Makefile.orig 2009-03-02 20:22:53.000000000 +0100 -+++ Makefile 2009-03-03 22:49:59.000000000 +0100 -@@ -92,6 +92,12 @@ +--- Makefile.orig 2009-04-12 13:54:15.000000000 -0400 ++++ Makefile 2009-04-15 05:33:49.020273229 -0400 +@@ -1,5 +1,3 @@ +-CXXFLAGS=-Wall -Wextra -pedantic -g +-CXX=g++ + BIN=${DESTDIR}/usr/bin + + +@@ -99,6 +97,12 @@ clean: rm -f src/*.o test/*.o testrunner cppcheck tools/dmake tools/errmsg >Release-Note: >Audit-Trail: >Unformatted: