Bug#517555: lintian: fails to parse Arch all field with trailing white space
Package: lintian
Version: 2.2.7
Severity: normal
Tags: patch
Hi,
opencity is Arch any and depends on opencity-data (= ${source:Version})
opencity-data is Arch all
Lintian reports this invalid error:
E: opencity source: not-binnmuable-any-depends-any opencity -> opencity-data
because opencity-data Architecture: has a trailing whitespace.
I attached a patch to fix this issue.
diff --git a/checks/version-substvars b/checks/version-substvars
index d1d0c69..ef8a873 100644
--- a/checks/version-substvars
+++ b/checks/version-substvars
@@ -76,7 +76,7 @@ foreach (keys %$binpkgs) {
unless ($pkg2 =~ /\$\{\S+\}/);
next;
}
- $pkg2_is_any = ($info->binary_field($pkg2, 'architecture') !~ m/^all$/);
+ $pkg2_is_any = ($info->binary_field($pkg2, 'architecture') !~ m/^all\s*$/);
if ($pkg1_is_any) {
if ($pkg2_is_any and $substvar_strips_binNMU) {
Best regards,
Gonéri
-- System Information:
Debian Release: 5.0
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.28-1-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages lintian depends on:
ii binutils 2.19.1-1 The GNU assembler, linker and bina
ii diffstat 1.46-1 produces graph of changes introduc
ii dpkg-dev 1.14.25 Debian package development tools
ii file 4.26-2 Determines file type using "magic"
ii gettext 0.17-6 GNU Internationalization utilities
ii intltool-debian 0.35.0+20060710.1 Help i18n of RFC822 compliant conf
ii libipc-run-perl 0.82-1 Perl module for running processes
ii libparse-debianchangel 1.1.1-2 parse Debian changelogs and output
ii libtimedate-perl 1.1600-9 Time and date functions for Perl
ii liburi-perl 1.37+dfsg-1 Manipulates and accesses URI strin
ii man-db 2.5.2-4 on-line manual pager
ii perl [libdigest-sha-pe 5.10.0-19 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.2-4 on-line manual pager
-- no debconf information
Reply to: