Bug#840099: libparse-debianchangelog-perl: Don't trim file name in error messages

Christoph Biedl debian.axhn at manchmal.in-ulm.de
Sat Oct 8 09:40:08 UTC 2016


Package: libparse-debianchangelog-perl
Version: 1.2.0-10
Severity: wishlist

Dear Maintainer,

at the moment, Parse::DebianChangelog left-trims the file name in
error messages. This caused some trouble when processing a major set
of packages where one had a zero-size debian/changelog.

As a demonstation:

=====================================================================
#!/usr/bin/perl

use 5.010;
use strict;
use warnings;

use File::Temp qw(tempfile);
use Parse::DebianChangelog;

my ($fh, $temp_file) = tempfile (
    "Parse::DebianChangelog.$$.XXXXX",
    'TMPDIR' => 1,
    'UNLINK' => 1,
);

print "Changelog file is $temp_file\n";
my $chglog = Parse::DebianChangelog->init();
$chglog->parse( { infile => $temp_file } );
=====================================================================

| Changelog file is /tmp/Parse::DebianChangelog.607990.0zl6f
| WARN: /tmp/Parse::DebianCh(l0): found eof where expected first heading

Identifying the culprit took more time for me than it should,
especially since the actual trimming wasn't marked as such, i.e. even
"/tmp/Parse::DebianCh(...)(l0)" would have been of help. The current
output however left me somewhat lost.

Suggestions:

- Don't trim at all
- Trim the file name on the left side, and to at least 30 characters.
  Rationale: A path name as in "project-name/debian/changelog" should
  still be fully visible.

And if you trim the name, mark it accordingly.

Regards,

    Christoph

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.7.5 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages libparse-debianchangelog-perl depends on:
ii  libcgi-pm-perl          4.32-1
ii  libclass-accessor-perl  0.34-1
ii  libio-string-perl       1.08-3
ii  liblocale-gettext-perl  1.07-3+b1
ii  libtimedate-perl        2.3000-2
ii  perl                    5.24.1~rc3-3

libparse-debianchangelog-perl recommends no packages.

Versions of packages libparse-debianchangelog-perl suggests:
ii  libhtml-parser-perl    3.72-2+b1
pn  libhtml-template-perl  <none>
pn  libxml-simple-perl     <none>

-- no debconf information

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20161008/75d3acf5/attachment.sig>


More information about the pkg-perl-maintainers mailing list