Bug#794674: lintian: FTBFS due to test failures with dpkg-dev >= 1.18.2
Control: tags 1 - patch
* Axel Beckert <abe@debian.org>, 2015-08-05, 17:46:
binary: dpkg-genchanges >../binary_4-1.1_amd64.changes
binary: Error parsing time at /usr/lib/x86_64-linux-gnu/perl/5.20/Time/Piece.pm line 469, <$filehandle> line 16.
binary: dpkg-buildpackage: error: dpkg-genchanges gave error exit status 25
binary: ---- END BUILD LOG
internal error: cd /home/abe/lintian/lintian-2.5.35/debian/test-out/tests/binary/binary-4-1.1 && dpkg-buildpackage -rfakeroot -us -uc -d -iNEVER_MATCH_ANYTHING -INEVER_MATCH_ANYTHING --source-option=--auto-commit >/home/abe/lintian/lintian-2.5.35/debian/test-out/tests/binary/build.binary 2>&1 at t/runtests line 567 thread 5.
This seems to be triggered by dpkg/dpkg-dev now using Time::Piece
instead of Date::Parse.
Guillem Jover told me that this is going to be fixed in dpkg.
dpkg-genchanges parses only the first two entries, so in the mean time,
you could use the attached patch as a work-around.
--
Jakub Wilk
diff --git a/t/tests/legacy-binary/debian/debian/changelog b/t/tests/legacy-binary/debian/debian/changelog
--- a/t/tests/legacy-binary/debian/debian/changelog
+++ b/t/tests/legacy-binary/debian/debian/changelog
@@ -13,13 +13,13 @@
* Weird version number for the new check for accidents with native
packaging.
- -- 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
* Add big file to /usr/share to trigger the big-usr-share check
- -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Fri, 27 Feb 2004 10:15:59 +0100
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Fir, 27 Feb 2004 10:15:59 +0100
binary (3) unstable; urgency=unlimited
diff --git a/t/tests/legacy-binary/tags b/t/tests/legacy-binary/tags
--- a/t/tests/legacy-binary/tags
+++ b/t/tests/legacy-binary/tags
@@ -133,7 +133,7 @@
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-changelog line 22 "couldn't parse date Fir, 27 Feb 2004 10:15:59 +0100"
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
Reply to: