[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Weird error in debhelper parsing changelog

peter karlsson <peter@softwolves.pp.se> writes:

> ===[ cut ]===
> dh_gencontrol
> parsechangelog/debian: error: badly formatted trailer line, at changelog line 6
> dpkg-gencontrol: error: syntax error in parsed version of changelog at line 0: empty file
> dh_gencontrol: command returned error code
> make: *** [binary-arch] Error 1
> ===[ cut ]===

Run with DH_VERBOSE=1, this will tell you exactly how dpkg-gencontrol
is called. Perhaps a wrong file is parsed as a changlog??

The error is generated in line 120 of /usr/lib/dpkg/parsechangelog/debian.
The interesting thing is that this will only be reached after a regexp
match with /^ \-\-/. No line (except the real trailer, which seems ok)
should match this...

> ===[ cut ]===
> turqstat (2.1) unstable; urgency=low
>   * Cleaned up Debianization slightly.
>   * Made it possible to select date ranges for input.
>   * Added character re-encoding for most single-byte character sets used in
>     Fidonet and Usenet today.
>  -- peter karlsson <peterk@debian.org>  Tue, 17 Jul 2001 22:45:00 +0200
> ===[ cut ]===

If all else fails, you could add
  print "### line: $_\n";
before the clerror call. This will show you the problematic line.


Attachment: signature.ng
Description: PGP signature

Reply to: