Your message dated Tue, 20 Jun 2017 19:01:40 +0000
with message-id <[email protected]>
and subject line Bug#855532: fixed in perl 5.24.1-4
has caused the Debian Bug report #855532,
regarding perl: Getopt::Long option value : and :+ processing broken
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
855532: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=855532
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libgetopt-long-descriptive-perl
Version: 0.100-1
Severity: important

Dear Maintainer,

I have just realised that a long-established cron job is not doing what it 
should as
Getopt::Long processing of option values is broken. I do not know when this 
happened.
It used to work but it no longer does so, and I notice that Getopt::Long in 
debian
seems to have been replaced by Getopt::Long::Descriptive. I assume that
Getopt::Long::Descriptive is the problem but I have not gone back and tested 
with the
CPAN version of Getopt::Long to be sure.

The problem is that the implementation of ":i" and ":+" is wrong, compared with 
the
documentation of (and earlier behaviour of) Getopt::Long.

The examples below use the following test script (getopt-test.pl):

#!/usr/bin/perl
use strict;
use warnings;
use Getopt::Long 2.33 qw(:config gnu_getopt auto_help auto_version);
my $VERBOSITY = 0;
my $HISTORY = 0;
GetOptions(
    "verbose|v:+" => \$VERBOSITY,
    "history|h:1" => \$HISTORY
    );
print "VERBOSITY = $VERBOSITY\n";
print "HISTORY = $HISTORY\n";

The first problem is that ":1" does not allow the value to be set except using 
"=".
For example, none of the following commands set the value of $HISTORY:

getopt-test.pl -h
getopt-test.pl -h 2
getopt-test.pl -h2
getopt-test.pl --history
getopt-test.pl --history 2

The second problem is that ":+" does not increment the value.
For example, none of the following commands set the value of $VERBOSITY:

getopt-test.pl -v
getopt-test.pl -vvvv
getopt-test.pl -v3
getopt-test.pl --verbose
getopt-test.pl --verbose 2

Extracts from the documentation of Getopt::Long:

: number [ desttype ]
    Like :i, but if the value is omitted, the number will be assigned.
: + [ desttype ]
    Like :i, but if the value is omitted, the current value for the option will 
be incremented.

If this bug is in the upstream version of Getopt::Long::Descriptive and cannot 
be fixed,
then debian should revert to packaging Getopt::Long.

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64
 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_IE.utf8, LC_CTYPE=en_IE.utf8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_IE.utf8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages libgetopt-long-descriptive-perl depends on:
ii  libio-stringy-perl       2.111-2
ii  libparams-validate-perl  1.26-1
ii  libsub-exporter-perl     0.986-1
ii  perl                     5.24.1-2

libgetopt-long-descriptive-perl recommends no packages.

libgetopt-long-descriptive-perl suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: perl
Source-Version: 5.24.1-4

We believe that the bug you reported is fixed in the latest version of
perl, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Niko Tyni <[email protected]> (supplier of updated perl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 20 Jun 2017 20:26:51 +0300
Source: perl
Binary: perl-base perl-doc perl-debug libperl5.24 libperl-dev perl-modules-5.24 
perl
Architecture: source
Version: 5.24.1-4
Distribution: unstable
Urgency: medium
Maintainer: Niko Tyni <[email protected]>
Changed-By: Niko Tyni <[email protected]>
Description:
 libperl-dev - Perl library: development files
 libperl5.24 - shared Perl library
 perl       - Larry Wall's Practical Extraction and Report Language
 perl-base  - minimal Perl system
 perl-debug - debug-enabled Perl interpreter
 perl-doc   - Perl documentation
 perl-modules-5.24 - Core Perl modules
Closes: 855532 864544 864782
Changes:
 perl (5.24.1-4) unstable; urgency=medium
 .
   * Backport various Getopt-Long fixes from upstream 2.49..2.51.
     (Closes: #855532, #864544)
   * Backport upstream patch fixing regexp "Malformed UTF-8 character"
     crashes. (Closes: #864782)
   * Update the kernel versions in $Config{myuname} et al.
   * Refresh cross build support files.
Checksums-Sha1:
 28d3ed2b32ff3eb3149ebefaf4717829565b544e 2369 perl_5.24.1-4.dsc
 1fd537cf618c60c216cc85cc47f1d643d9fc05de 170032 perl_5.24.1-4.debian.tar.xz
 ff12bd4337a746b4daaf2ef4f3df927b95c2be9f 4773 perl_5.24.1-4_source.buildinfo
Checksums-Sha256:
 01074d8365ed5d9288096b4d2c22515631287ce6c9d0c82f2fc3d7dad189fa4d 2369 
perl_5.24.1-4.dsc
 1b197dbafd7e8b6fbf86eec00a85cabe70290006d3e40d65b78f984b6f4b2c52 170032 
perl_5.24.1-4.debian.tar.xz
 e137ecfb2ff8af43bce2ff98547bbaf07096c0ed44a640fb2f7db7b64144faf9 4773 
perl_5.24.1-4_source.buildinfo
Files:
 4790d1d4625ea2a97d6e34c2ea2cbea2 2369 perl standard perl_5.24.1-4.dsc
 ada492d8bd0f8cf0bdc91a24fd191d53 170032 perl standard 
perl_5.24.1-4.debian.tar.xz
 2a6f2ad3787d9638371cec4e3cd27d21 4773 perl standard 
perl_5.24.1-4_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCAAvFiEEdqKOQsmBHZHoj7peLsD/s7cwGx8FAllJai0RHG50eW5pQGRl
Ymlhbi5vcmcACgkQLsD/s7cwGx+foQ//YOZqcyge5u84P4ESmKKQG/b5s1QfLHtu
Yc4ZA37sqUiHhSEP8rtAj++cCUxH/JgwlvAsU2sFe9G8vTF15K2f7aQI5skLv/4a
vCCw9EcAeJJIIuk7fdJyQSpFrZxVTcvYVN978+pVp2bwh3iT7x92OlRS+L7TppGO
VOr8gvGePL9842LEXqCwTn1RwdL0AT8+KdEcmqlWqQGx9IxmsEuxvOtnMJHLWo3H
WWYHd05meBl8CSeZwLePGQOs4xny54/6aqYBw2qKXDkKzH9gE9ry7GmDVYbGAjk4
1FCzB2dAJ146VaJCDfrOeXeJRG5TwATHxNtzxddk6YBnVfSeRyIz7XpBNlClZL5P
+yoGZCxH02N95+9axLWm7Eo9SAXJRjEzVLyh+rAR8thF/mk3DnY4letC6TKDktR4
2rXlIZaEWyYyuqVjKOn7KN8Gjg8KLf2o8wxeKoccpuW0/ZfBZ+z75bxOAIioHhPK
80132RYO2Z744OqmIeZI5mKWx06ybh4IvyNPRLPvjK4wv39sYxt5fD9ey5Tj+xhx
kk8XNVfHnm6SrY0mZUHct43UNeci6V2aamay9xZclAxyXK+hp1EZUw/go2RPCbLa
3AGd0rshL34swh8A23hVl5RFN7AJoyuE0VxRIsGvxh8yiExWw7qoqIu9i6oJnqPJ
kSIuVDGXbI4=
=n964
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to