Bug#614906: lintian: considers 64-bit libraries in /lib64 on i386 as an error
On Thu, February 24, 2011 08:17, Sven Joachim wrote:
> Version: 2.5.0~rc1
>
> Lintian now complains about libraries in /lib64 (but not
> /usr/lib64), e.g. for lib64ncurses5 it barfs:
>
> ,----
> | E: lib64ncurses5: binary-from-other-architecture lib64/libncurses.so.5.7
It looks like this is a side-effect of the change to unify the way we
print filenames; unfortunately, one of the tests wasn't updated to match.
The patch below fixes this, but I haven't committed it yet in case one of
the other maintainers wants to point out something I've missed.
diff --git a/checks/binaries b/checks/binaries
index c67d103..4325465 100644
--- a/checks/binaries
+++ b/checks/binaries
@@ -262,7 +262,7 @@ foreach my $file (@{$info->sorted_file_info}) {
}
if ($arch ne 'all' and $fileinfo !~ m/$ARCH_REGEX{$arch}/) {
- if ($file =~ m,/lib(\d{2})/, or $file =~ m,/emul/ia(\d{2}),) {
+ if ($file =~ m,(?:^|/)lib(\d{2})/, or $file =~ m,^emul/ia(\d{2}),) {
tag 'binary-from-other-architecture', $file
unless ($fileinfo =~ m/$ARCH_REGEX{$1}/);
} elsif ($arch eq 'amd64' and $fileinfo =~ m/$ARCH_REGEX{i386}/) {
Regards,
Adam
Reply to: