Bug#593397: lintian: detects zlib on kfreebsd kernel udebs
Package: lintian
Version: 2.4.3
Severity: important
Tags: patch
lintian detects an embedded zlib in the kfreebsd kernel udebs, and report
it as an error:
E: zlib-modules-8.1-1-amd64-di udeb: embedded-zlib ./lib/modules/8.1-1-amd64/zlib.ko
When the package is uploaded, it is then rejected by dak. While it is
correct that this package contain an embedded zlib copy, this is an
allowed use case.
It is not really easy to add a lintian override in a kernel udeb, and
moreover the file will end-up in the debian-installer image, which is
not something wanted.
After discussion with the ftpmasters, it seems the best place to add the
whitelist is on the lintian side, as it is already done with klibc. I
have attached a patch doing that, the other option would be to whitelist
all udeb packages.
--- a/checks/binaries
+++ b/checks/binaries
@@ -292,6 +292,8 @@
# (The "4" is actually the string length (52 characters) in the Pascal
# counted string format.)
if ($info->field('source') ne 'zlib' and $info->field('source') ne 'klibc'
+ and $info->field('source') ne 'kfreebsd-kernel-di-amd64'
+ and $info->field('source') ne 'kfreebsd-kernel-di-i386'
and $strings =~ /(?<!4 )(?:in|de)flate (?:\d[ \w.\-]{1,20}[\w.\-])/m) {
tag "embedded-zlib", $file;
}
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: kfreebsd-amd64 (x86_64)
Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lintian depends on:
ii binutils 2.20.1-12 The GNU assembler, linker and bina
ii diffstat 1.53-1 produces graph of changes introduc
ii dpkg-dev 1.15.8.4 Debian package development tools
ii file 5.04-4 Determines file type using "magic"
ii gettext 0.18.1.1-1 GNU Internationalization utilities
ii intltool-debian 0.35.0+20060710.1 Help i18n of RFC822 compliant conf
ii libapt-pkg-perl 0.1.24 Perl interface to libapt-pkg
ii libclass-accessor-perl 0.34-1 Perl module that automatically gen
ii libdigest-sha-perl 5.48-1 Perl extension for SHA-1/224/256/3
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.54-1 module to manipulate and access UR
ii locales 2.11.2-2 Embedded GNU C Library: National L
ii locales-all [locales] 2.11.2-2 Embedded GNU C Library: Precompile
ii man-db 2.5.7-3 on-line manual pager
ii perl [libdigest-sha-pe 5.10.1-13 Larry Wall's Practical Extraction
lintian recommends no packages.
Versions of packages lintian suggests:
pn binutils-multiarch <none> (no description available)
pn libtext-template-perl <none> (no description available)
ii man-db 2.5.7-3 on-line manual pager
-- no debconf information
Reply to: