[lintian] 01/02: Fix FTBFS due to dpkg bug
This is an automated email from the git hooks/post-receive script.
broucaries-guest pushed a commit to branch master
in repository lintian.
commit 3286c92ea9d4ded5e109cc124818a44c8addeca0
Author: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
Date: Thu Aug 6 10:41:20 2015 +0200
Fix FTBFS due to dpkg bug
Newer dpkg fail with strange date. Move this test to test that run only with old dpkg.
Fix #794674
Signed-off-by: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
---
debian/changelog | 3 +++
.../changelog-file-strange-date/debian/debian/changelog.in | 12 ++++++++++++
t/tests/changelog-file-strange-date/desc | 8 ++++++++
t/tests/changelog-file-strange-date/tags | 1 +
t/tests/legacy-binary/debian/debian/changelog | 4 +++-
t/tests/legacy-binary/tags | 1 -
6 files changed, 27 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 1193628..c6dba4e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -57,6 +57,9 @@ lintian (2.5.35) unstable; urgency=medium
* t/scripts/*.t:
+ [JW] Make all the scripts executable.
+ * t/tests/changelog-file-strange-date/*:
+ + [BR] Create a test with error syntax in changelog date.
+ Run only with dpkg below 1.18.2. (Closes: #794674).
* t/tests/binaries-general/*:
+ [BR] Fix a test suite failure with gcc5 by using compat 9, and
removing gets() that does not exist with C11 (used by default
diff --git a/t/tests/changelog-file-strange-date/debian/debian/changelog.in b/t/tests/changelog-file-strange-date/debian/debian/changelog.in
new file mode 100644
index 0000000..097165e
--- /dev/null
+++ b/t/tests/changelog-file-strange-date/debian/debian/changelog.in
@@ -0,0 +1,12 @@
+{$source} ({$version}) unstable; urgency=low
+
+ * Lintian Test Suite.
+ * Test: {$testname}
+
+ -- {$author} {$date}
+
+{$source} (1.0) unstable; urgency=low
+
+ * The date will fail with some dpkg version see #794674
+
+ -- {$author} The, 15 Apr 2004 23:33:51 +0200
diff --git a/t/tests/changelog-file-strange-date/desc b/t/tests/changelog-file-strange-date/desc
new file mode 100644
index 0000000..cb99085
--- /dev/null
+++ b/t/tests/changelog-file-strange-date/desc
@@ -0,0 +1,8 @@
+Testname: changelog-file-strange-date
+Sequence: 6000
+Version: 2.0
+Description: Test some strange date in changelog
+References: Debian Bug#794674
+Test-Depends: dpkg (<< 1.18.2)
+Test-For:
+ syntax-error-in-debian-changelog
\ No newline at end of file
diff --git a/t/tests/changelog-file-strange-date/tags b/t/tests/changelog-file-strange-date/tags
new file mode 100644
index 0000000..448796c
--- /dev/null
+++ b/t/tests/changelog-file-strange-date/tags
@@ -0,0 +1 @@
+W: changelog-file-strange-date: syntax-error-in-debian-changelog line 12 "couldn't parse date The, 15 Apr 2004 23:33:51 +0200"
diff --git a/t/tests/legacy-binary/debian/debian/changelog b/t/tests/legacy-binary/debian/debian/changelog
index 2c5ba8b..35b8c0b 100644
--- a/t/tests/legacy-binary/debian/debian/changelog
+++ b/t/tests/legacy-binary/debian/debian/changelog
@@ -12,8 +12,10 @@ binary (4-1) unstable; urgency=low
* Weird version number for the new check for accidents with native
packaging.
+ * Date was fixed by BR and this test was put on changelog-file-strange-date
+ due to dpkg bug, see #794674.
- -- Marc 'HE' Brockschmidt <he@debian.org> The, 15 Apr 2004 23:33:51 +0200
+ -- Marc 'HE' Brockschmidt <he@debian.org> Thu, 15 Apr 2004 23:33:51 +0200
binary (4) unstable; urgency=low
diff --git a/t/tests/legacy-binary/tags b/t/tests/legacy-binary/tags
index 161eb6f..324f382 100644
--- a/t/tests/legacy-binary/tags
+++ b/t/tests/legacy-binary/tags
@@ -133,7 +133,6 @@ W: binary: su-wrapper-not-su-to-root usr/share/applications/hello.desktop kdesu
W: binary: su-wrapper-not-su-to-root usr/share/menu/binary:3 sux
W: binary: superfluous-clutter-in-homepage <http://lintian.debian.org/>
W: binary: symlink-should-be-relative usr/share/doc/binary/html/ch3.html /usr/share/doc/binary/htm/ch1.html
-W: binary: syntax-error-in-debian-changelog line 16 "couldn't parse date The, 15 Apr 2004 23:33:51 +0200"
W: binary: syntax-error-in-debian-news-file line 12 "badly formatted trailer line"
W: binary: syntax-error-in-debian-news-file line 12 "found eof where expected more change data or trailer"
W: binary: unquoted-string-in-menu-item usr/lib/menu/binary needs:1
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: