[SCM] Debian package checker branch, master, updated. 2.2.5-69-gb6d82a7
The following commit has been merged in the master branch:
commit b252a673cd59fafdba64d91d3f5409d140ae76ea
Author: Russ Allbery <rra@debian.org>
Date: Sat Feb 21 23:24:15 2009 -0800
Add changelog and test suite for spelling-error-in-binary
* checks/binaries:
+ [RA] Check the data section of ELF binaries for spelling errors.
Patch from Raphael Geissert.
diff --git a/checks/binaries.desc b/checks/binaries.desc
index 8401055..a64857b 100644
--- a/checks/binaries.desc
+++ b/checks/binaries.desc
@@ -212,7 +212,8 @@ Info: This ELF binary appears to have been built for an architecture other
Tag: spelling-error-in-binary
Severity: normal
-Certainty: possible
+Certainty: wild-guess
+Experimental: yes
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.
diff --git a/debian/changelog b/debian/changelog
index 9c601cf..d7665f6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ lintian (2.2.6) UNRELEASED; urgency=low
- icon-size-and-directory-name-mismatch
- lzma-deb-archive
- multiple-distributions-in-changes-file (disabled)
+ - spelling-error-in-binary (experimental)
- unsupported-source-format
* checks/binaries:
@@ -17,6 +18,8 @@ lintian (2.2.6) UNRELEASED; urgency=low
+ [RA] Check for binaries from other architectures than the declared
architecture of the package outside of known multiarch directories.
Patch from Raphael Geissert. (Closes: #513996)
+ + [RA] Check the data section of ELF binaries for spelling errors.
+ Patch from Raphael Geissert.
* checks/common_data.pm:
+ [RA] Virtual packages now come from data.
* checks/changelog-file:
diff --git a/t/tests/binaries-spelling/debian/Makefile b/t/tests/binaries-spelling/debian/Makefile
new file mode 100644
index 0000000..ee78503
--- /dev/null
+++ b/t/tests/binaries-spelling/debian/Makefile
@@ -0,0 +1,11 @@
+all:
+ gcc -o basic basic.c
+
+install:
+ install -d $(DESTDIR)/usr/bin
+ install -m 755 -c basic $(DESTDIR)/usr/bin/basic
+
+clean distclean:
+ rm -f basic
+
+check test:
diff --git a/t/tests/binaries-spelling/debian/basic.c b/t/tests/binaries-spelling/debian/basic.c
new file mode 100644
index 0000000..419cbfb
--- /dev/null
+++ b/t/tests/binaries-spelling/debian/basic.c
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+int
+main(void)
+{
+ printf("I iz an exprimental speling error!\n");
+}
diff --git a/t/tests/binaries-spelling/desc b/t/tests/binaries-spelling/desc
new file mode 100644
index 0000000..9e1b0d3
--- /dev/null
+++ b/t/tests/binaries-spelling/desc
@@ -0,0 +1,6 @@
+Testname: binaries-spelling
+Sequence: 6000
+Version: 1.0
+Description: Spelling errors in binaries
+Architecture: any
+Test-For: spelling-error-in-binary
diff --git a/t/tests/binaries-spelling/tags b/t/tests/binaries-spelling/tags
new file mode 100644
index 0000000..cf5a499
--- /dev/null
+++ b/t/tests/binaries-spelling/tags
@@ -0,0 +1,3 @@
+W: binaries-spelling: binary-without-manpage usr/bin/basic
+X: binaries-spelling: spelling-error-in-binary ./usr/bin/basic exprimental experimental
+X: binaries-spelling: spelling-error-in-binary ./usr/bin/basic speling spelling
--
Debian package checker
Reply to: