Bug#701231: lintian: NDEBUG in compilation logs
Package: lintian
Version: 2.5.10.3~bpo60+1
Severity: normal
It would really be terrific to grep throught the compilation logs and check for the presence of -DNDEBUG.
Use of -DNEBUG is considered EBW [1]
Another approach could be to grep through d/rules files for expression like:
-DCMAKE_BUILD_TYPE:STRING=Release
but this is highly build generator dependant.
Thanks
[1] http://lists.debian.org/debian-devel/2013/02/msg00304.html
-- System Information:
Debian Release: 6.0.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable'), (200, 'testing'), (100, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-0.bpo.4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lintian depends on:
ii binutils 2.20.1-16 The GNU assembler, linker and bina
ii bzip2 1.0.5-6+squeeze1 high-quality block-sorting file co
ii diffstat 1.53-1 produces graph of changes introduc
ii file 5.04-5+squeeze2 Determines file type using "magic"
ii gettext 0.18.1.1-3 GNU Internationalization utilities
ii hardening-includes 2.2~bpo60+1 Makefile for enabling compiler fla
ii intltool-debian 0.35.0+20060710.1 Help i18n of RFC822 compliant conf
ii libapt-pkg-perl 0.1.24+b1 Perl interface to libapt-pkg
ii libarchive-zip-perl 1.30-3 Perl module for manipulation of ZI
ii libc-bin 2.11.3-4 Embedded GNU C Library: Binaries
ii libclass-accessor-perl 0.34-1 Perl module that automatically gen
ii libclone-perl 0.31-1 recursively copy Perl datatypes
ii libdpkg-perl 1.16.9~bpo60+1 Dpkg perl modules
ii libemail-valid-perl 0.184-1 Perl module for checking the valid
ii libipc-run-perl 0.89-1 Perl module for running processes
ii libparse-debianchangel 1.1.1-2.1 parse Debian changelogs and output
ii libtimedate-perl 1.2000-1 collection of modules to manipulat
ii liburi-perl 1.60-1~bpo60+1 module to manipulate and access UR
ii locales 2.11.3-4 Embedded GNU C Library: National L
ii man-db 2.5.7-8 on-line manual pager
ii patchutils 0.3.1-2 Utilities to work with patches
ii perl [libdigest-sha-pe 5.10.1-17squeeze4 Larry Wall's Practical Extraction
lintian recommends no packages.
Versions of packages lintian suggests:
pn binutils-multiarch <none> (no description available)
ii dpkg-dev 1.16.9~bpo60+1 Debian package development tools
ii libhtml-parser-perl 3.66-1 collection of modules that parse H
pn libperlio-gzip-perl <none> (no description available)
pn libtext-template-perl <none> (no description available)
ii lzma 4.43-14 Compression method of 7z format in
ii man-db 2.5.7-8 on-line manual pager
ii xz-utils 5.0.0-2 XZ-format compression utilities
-- no debconf information
Reply to: