nokia / git-changelog-generator

Git Changelog Generator
https://pypi.python.org/pypi/gcg
BSD 3-Clause "New" or "Revised" License
14 stars 5 forks source link

debuild says no to DEB changelog because of a spurious whitespace #27

Closed weakcamel closed 6 years ago

weakcamel commented 6 years ago

The template needs to be tweaked to leave 2 spaces instead of 3 before the release date. Failure to do so results in:

dpkg-deb: building package 'makelib-dev' in '../makelib-dev_1.11.0-0.g95bf354.xenial_all.deb'.
 dpkg-genchanges  >../makelib_1.11.0-0.g95bf354.xenial_amd64.changes
dpkg-genchanges: warning:     debian/changelog(l6): badly formatted trailer line
LINE:  -- Waldek Maleska <waldek.maleska@nokia.com>   Wed, 16 May 2018 17:04:11 -0000
dpkg-genchanges: warning:     debian/changelog(l8): found start of entry where expected more change data or trailer
LINE: makelib (1.10.0-146437) xenial; urgency=low
dpkg-genchanges: warning:     debian/changelog(l8): found end of file where expected more change data or trailer
dpkg-genchanges: warning:     debian/changelog(l6): badly formatted trailer line
LINE:  -- Waldek Maleska <waldek.maleska@nokia.com>   Wed, 16 May 2018 17:04:11 -0000
dpkg-genchanges: warning:     debian/changelog(l8): found start of entry where expected more change data or trailer
LINE: makelib (1.10.0-146437) xenial; urgency=low
dpkg-genchanges: warning:     debian/changelog(l14): badly formatted trailer line
LINE:  -- Waldek Maleska <waldek.maleska@nokia.com>   Mon, 14 May 2018 14:24:10 -0000
dpkg-genchanges: warning:     debian/changelog(l16): found start of entry where expected more change data or trailer
LINE: makelib (1.9.2-33) xenial; urgency=low
dpkg-genchanges: warning:     debian/changelog(l16): found end of file where expected more change data or trailer
dpkg-genchanges: including full source code in upload
 dpkg-source -i -I --after-build makelib-1.11.0
dpkg-source: warning: makelib-1.11.0/debian/changelog(l6): badly formatted trailer line
LINE:  -- Waldek Maleska <waldek.maleska@nokia.com>   Wed, 16 May 2018 17:04:11 -0000
dpkg-source: warning: makelib-1.11.0/debian/changelog(l8): found start of entry where expected more change data or trailer
LINE: makelib (1.10.0-146437) xenial; urgency=low
dpkg-source: warning: makelib-1.11.0/debian/changelog(l8): found end of file where expected more change data or trailer
dpkg-buildpackage: full upload (original source is included)
Now running lintian...
W: makelib source: empty-debian-diff
W: makelib source: binary-nmu-debian-revision-in-source 1.11.0-0.g95bf354.xenial
Use of uninitialized value $maintainer in substitution (s///) at /usr/share/lintian/checks/nmu.pm line 133.
Use of uninitialized value $uploader in string ne at /usr/share/lintian/checks/nmu.pm line 96.
W: makelib-dev: syntax-error-in-debian-changelog line 6 "badly formatted trailer line"
W: makelib-dev: syntax-error-in-debian-changelog line 8 "found start of entry where expected more change data or trailer"
W: makelib-dev: syntax-error-in-debian-changelog line 14 "badly formatted trailer line"
W: makelib-dev: syntax-error-in-debian-changelog line 16 "found start of entry where expected more change data or trailer"
W: makelib-dev: syntax-error-in-debian-changelog line 22 "badly formatted trailer line"
W: makelib-dev: syntax-error-in-debian-changelog line 24 "found start of entry where expected more change data or trailer"
W: makelib-dev: syntax-error-in-debian-changelog line 30 "badly formatted trailer line"
W: makelib-dev: syntax-error-in-debian-changelog line 32 "found start of entry where expected more change data or trailer"
W: makelib-dev: syntax-error-in-debian-changelog line 39 "badly formatted trailer line"
W: makelib-dev: syntax-error-in-debian-changelog line 41 "found start of entry where expected more change data or trailer"
W: makelib-dev: syntax-error-in-debian-changelog line 46 "badly formatted trailer line"
W: makelib-dev: syntax-error-in-debian-changelog line 48 "found start of entry where expected more change data or trailer"
W: makelib-dev: syntax-error-in-debian-changelog line 56 "badly formatted trailer line"
W: makelib-dev: syntax-error-in-debian-changelog line 58 "found start of entry where expected more change data or trailer"
W: makelib-dev: syntax-error-in-debian-changelog line 69 "badly formatted trailer line"
W: makelib-dev: syntax-error-in-debian-changelog line 71 "found start of entry where expected more change data or trailer"
W: makelib-dev: syntax-error-in-debian-changelog line 78 "badly formatted trailer line"
W: makelib-dev: syntax-error-in-debian-changelog line 80 "found start of entry where expected more change data or trailer"
W: makelib-dev: syntax-error-in-debian-changelog line 85 "badly formatted trailer line"
W: makelib-dev: syntax-error-in-debian-changelog line 86 "found eof where expected more change data or trailer"
E: makelib-dev: extended-description-is-empty
W: makelib-dev: empty-binary-package
Finished running lintian.
echo "********"; dpkg-deb -I makelib_1.11.0-0.g95bf354.xenial_all.deb
********
dpkg-deb: error: failed to read archive 'makelib_1.11.0-0.g95bf354.xenial_all.deb': No such file or directory
Makefile:115: recipe for target 'makelib_1.11.0-0.g95bf354.xenial_all.deb' failed
make: *** [makelib_1.11.0-0.g95bf354.xenial_all.deb] Error 2
weakcamel commented 6 years ago

https://www.debian.org/doc/debian-policy/#document-ch-source

Apparently the syntax example - when taken literally - is illegal

package (version) distribution(s); urgency=urgency
  [optional blank line(s), stripped]
  * change details
  more change details
  [blank line(s), included in output of dpkg-parsechangelog]
  * even more change details
  [optional blank line(s), stripped]
-- maintainer name <email address>[two spaces]  date
abitrolly commented 3 years ago

Hopefully it will be fixed soon. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=976301