Package Details: cppcheck-nox 1.89-2

Git Clone URL: https://aur.archlinux.org/cppcheck-nox.git (read-only, click to copy)
Package Base: cppcheck-nox
Description: A tool for static C/C++ code analysis without the GUI
Upstream URL: http://cppcheck.sourceforge.net/
Licenses: GPL
Conflicts: cppcheck
Provides: cppcheck
Submitter: None
Maintainer: mpento
Last Packager: mpento
Votes: 8
Popularity: 0.40
First Submitted: 2015-02-14 10:36
Last Updated: 2019-12-15 15:28

Dependencies (3)

Required by (10)

Sources (1)

Latest Comments

1 2 3 Next › Last »

mpento commented on 2019-12-15 22:36

I removed cppcheck-nox and installed cppcheck from the official repo and I am seeing the same weird formatting:

`

CPPCHECK(1) cppcheck User Manual
CPPCHECK(1)

.SH "NAME" cppcheck - Tool for static C/C++ code analysis

.SH "SYNOPSIS"

.HP 216u

  cppcheck
   [--check-config]
   [--check-library]
   [-D<id>]
   [-U<id>]

`

I verified that the manpage for -nox was gone before installing the official package.

Can someone verify that the manpage for the official package is formatting correctly on their machine and comment?

mpento commented on 2019-12-15 15:36

Also, fixed SRCDIR warnings from make.

Still looking into man page formatting problems.

mpento commented on 2019-12-15 15:31

@archangel:

Make command line was missing FILESDIR=/usr/share/cppcheck. Used a simple test:

int main() { char a[10]; a[10] = 0; return 0; }

Before addition of FILESDIR:

cppcheck: Failed to load library configuration file 'std.cfg'. File not found nofile:0:0: information: Failed to load std.cfg. Your Cppcheck installation is broken, please re-install. The Cppcheck binary was compiled without FILESDIR set. Either the std.cfg should be available in cfg or the FILESDIR should be configured. [failedToLoadCfg]

After:

Checking test.cpp ... test.cpp:3:3: error: Array 'a[10]' accessed at index 10, which is out of bounds. [arrayIndexOutOfBounds] a[10] = 0; ^

Please try the latest package and let me know if this works for you as well.

mpento commented on 2019-12-15 14:21

@archangel:

I see both the man page issue and the issues running cppcheck that you describe.

Looking into it, I'll also take a look at the Debian package and patches as you suggest.

archangel commented on 2019-11-25 11:51

@mpento: Have you tried a test run? Because there's really no problem with building or installing, I don't even see warnings. Only running cppcheck then fails with said error, apparently it can't find its data. This "nofile:0:0" bit is also wrong, we'd expect the name of the checked source file(s) there, but currently I have this even in the version in community--same with the manpage, try "man cppcheck". On my machine it's improperly formatted, though the file itself is ok.

Debian also ships a colorless package, or rather they provide the gui-version separately, it always worked for me, incl. this version. https://packages.debian.org/sid/cppcheck

So they recently fixed some of their patches, see

https://metadata.ftp-master.debian.org/changelogs//main/c/cppcheck/cppcheck_1.89-4_changelog

You can download Debian's changes only, it seems to me the relevant patch is in patches/fix-default-settings.

TheAifam5 commented on 2019-11-24 22:48

@mpento here https://pastebin.com/X346dZ60

I use yay. I will try to download the snapshot and check if that fixes the issue.

EDIT: Same case with makepkg and removing the package and installing again.

EDIT2: The official package works.

mpento commented on 2019-11-22 15:18

@TheAifam5:

I saw the same problem that you are seeing when I updated the version recently. I changed the make command line in PKGBUILD to address it.

I just downloaded the snapshot and tried it clean and it built without problems. Would it be possible for you to provide the output of of makepkg for this?

TheAifam5 commented on 2019-11-20 15:38

Weird, still getting error about missing std.cfg:

cppcheck: Failed to load library configuration file 'std.cfg'. File not found nofile:0:0: information: Failed to load std.cfg. Your Cppcheck installation is broken, please re-install. The Cppcheck binary was compiled without FILESDIR set. Either the std.cfg should be available in cfg or the FILESDIR should be configured. [failedToLoadCfg]

mpento commented on 2019-11-17 22:37

Updated to version 1.89

Added compiler optimizations in build() and FILESDIR in package() for install target.

mpento commented on 2019-08-17 14:15

@dithpri, Good catch, fixed in rev 2.