[SCM] Debian package checker branch, master, updated. 2.2.5-69-gb6d82a7
The following commit has been merged in the master branch:
commit 2973ca4c0f3d7aef565e1f23a80f93235eba1cbb
Author: Raphael Geissert <atomo64@gmail.com>
Date: Fri Feb 6 11:54:17 2009 -0600
Check for spelling mistakes in ELF binaries
diff --git a/checks/binaries b/checks/binaries
index 136eeed..5442cbc 100644
--- a/checks/binaries
+++ b/checks/binaries
@@ -22,6 +22,7 @@ package Lintian::binaries;
use strict;
use Tags;
use Util;
+use Spelling;
use File::Spec;
@@ -239,6 +240,9 @@ foreach my $file (sort keys %{$info->file_info}) {
}
}
+ my $strings = slurp_entire_file("strings/$file");
+ spelling_check('spelling-error-in-binary', $strings, $file);
+
# binary or shared object?
next unless ($fileinfo =~ m/executable/) or ($fileinfo =~ m/shared object/);
next if $type eq 'udeb';
diff --git a/checks/binaries.desc b/checks/binaries.desc
index 4f62dbf..8401055 100644
--- a/checks/binaries.desc
+++ b/checks/binaries.desc
@@ -3,7 +3,7 @@ Author: Christian Schwarz <schwarz@debian.org>
Abbrev: bin
Type: binary, udeb
Unpack-Level: 1
-Needs-Info: objdump-info, file-info
+Needs-Info: objdump-info, file-info, strings
Info: This script checks binaries and object files for bugs.
Tag: arch-independent-package-contains-binary-or-object
@@ -209,3 +209,10 @@ Info: This ELF binary appears to have been built for an architecture other
than the one of the binary package being tested. This may occur when a
pre-built binary is shipped in the package or when an attempt to
cross-compile didn't work.
+
+Tag: spelling-error-in-binary
+Severity: normal
+Certainty: possible
+Info: Lintian found a spelling error in the given binary. Lintian has a list
+ of common misspellings that it looks for. It does not have a dictionary
+ like a spelling checker does.
--
Debian package checker
Reply to: