Your message dated Sat, 15 Jul 2017 22:17:19 +0000
with message-id <[email protected]>
and subject line Bug#855532: fixed in perl 5.24.1-3+deb9u1
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: https://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-3+deb9u1

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.
Dominic Hargreaves <[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, 11 Jul 2017 16:27:24 +0100
Source: perl
Binary: perl-base perl-doc perl-debug libperl5.24 libperl-dev perl-modules-5.24 
perl
Architecture: source
Version: 5.24.1-3+deb9u1
Distribution: stretch
Urgency: medium
Maintainer: Niko Tyni <[email protected]>
Changed-By: Dominic Hargreaves <[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 867170
Changes:
 perl (5.24.1-3+deb9u1) stretch; 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)
   * Apply upstream base.pm no-dot-in-inc fix (from 5.24.2-RC1)
     (Closes: #867170)
Checksums-Sha1:
 0dda727b1c495363e9c2d3164ec84e0430ff9950 2393 perl_5.24.1-3+deb9u1.dsc
 de4ca93fdd35829feb235ced0d9541fae4b32bf2 172800 
perl_5.24.1-3+deb9u1.debian.tar.xz
 322aa9b8f0265bd4a2663752d868ae67094b7804 4975 
perl_5.24.1-3+deb9u1_source.buildinfo
Checksums-Sha256:
 543956cb46686a577b7e6a6f3db713b4acb98e254d1f66a159757b7f2bf8ba68 2393 
perl_5.24.1-3+deb9u1.dsc
 928dc211d523b1e058cd2389873f564355c3b9df1ef7efc70f55dff106e5efea 172800 
perl_5.24.1-3+deb9u1.debian.tar.xz
 a5e0e8abdbdbe424cdb95048fd80ee19563f46463087559a6b8989183e0abe1e 4975 
perl_5.24.1-3+deb9u1_source.buildinfo
Files:
 36f9f3fe665078155fdf09bfbdcbc3b5 2393 perl standard perl_5.24.1-3+deb9u1.dsc
 efde87ddfd18f440008906c1bd1fdab3 172800 perl standard 
perl_5.24.1-3+deb9u1.debian.tar.xz
 707e2e1f3f24681cba9165f55fd961c5 4975 perl standard 
perl_5.24.1-3+deb9u1_source.buildinfo

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

iQJBBAEBCAArFiEEy0llJ/kAnyscGnbawAV+cU1pT7IFAllk9ckNHGRvbUBlYXJ0
aC5saQAKCRDABX5xTWlPshNoD/444u/9a9y34TgoT7am62N012Zbt3NuvU8EMXap
KlnafIy2pWKkr9aLcGQVO0KQhnLp9lsHFV7+Op197iQ5wLF0Hw2ugx+fmhep+VN5
ZzsOjLe36PkC0K1+iAAPCsqU2dGzSRvD8z40H5Pq/uAqh/e7tcB2jtxvi4w1I4VQ
kDXe6T20iUeqVJ/BS6xtGz/mKXNoPcYVjjzSUKeowTQWm9ztxNj8V/R8nbX7P0kB
IeD/wA942TOh4Wxk6n26oiBHP5UtADKXJ1uonZp7wGCRYbmYYkhq235Sv1TC9TBx
UTQ1RX3WJOlOKz6kXB+U+8AJq8tvkcHY4XxkxifjWxr0Z5uQpcJ6B3L8pqZ3i1MV
8lg9dmqAD0r3fBBwqQK0gCWohk7qrLct1jAcuNFyeluy8SCFW7JbA+iTWk9I+0Nq
oQwklTHgCJ9I9PFxYcwOoqGEbrGntEzek9cDJsCDITPm0mufGWZAv5361gxB88wT
GuCObYFJgLA1SnIr+yWg/W6YoYshf7DtXpv55Yq2gUB5CqYeMdNACj+7HOUtAUJV
PcV3Lhdbt3utLGlkwqZhxOWr9LMNmtYjqz9vXOo2dZwreA5Ak9QAay8Rs93ShGms
8450bpQLDSSTB1RDWQzN3cbhep3hlg9uIYG2sQJH4GW1CjOhH3n/D2daY4PlMIbQ
YHAaaw==
=7D44
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to