Skip Menu |

This queue is for tickets about the Getopt-Long CPAN distribution.

Report information
The Basics
Id: 102207
Status: resolved
Priority: 0/
Queue: Getopt-Long

People
Owner: jv [...] cpan.org
Requestors: mrberman87 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.43
Fixed in: 2.44



Subject: Option spec <> cannot be used with pass_through error
I am on x64 Fedora 21. When using an application that uses perl (http://www.veripool.org/projects/verilator) I ran into a problem with Getopt::Long version 2.43-1. Upon running the application, it simply quit out with the error message 'Option spec <> cannot be used with pass_through'. I have rolled back Getopt::Long to 2.42-2 and everything is running just fine. Upon submitting a bug report to the application community, they suggested this should be filed with Perl. They suggested this should print a warning message instead of killing the application. For reference, I initially posted this rt.perl.org as bug #123875. It was closed and stated to be reposted here.
Subject: dead.letter
Download dead.letter
application/octet-stream 16.1k

Message body not shown because it is not plain text.

From: ppisar [...] redhat.com
Dne St 18.úno.2015 19:17:09, mrberman87@gmail.com napsal(a): Show quoted text
> I am on x64 Fedora 21. When using an application that uses perl > (http://www.veripool.org/projects/verilator) I ran into a problem with > Getopt::Long version 2.43-1. Upon running the application, it simply > quit out with the error message 'Option spec <> cannot be used with > pass_through'. I have rolled back Getopt::Long to 2.42-2 and > everything is running just fine. Upon submitting a bug report to the > application community, they suggested this should be filed with Perl. > They suggested this should print a warning message instead of killing > the application. > > For reference, I initially posted this rt.perl.org as bug #123875. It > was closed and stated to be reposted here.
See <https://rt.cpan.org/Public/Bug/Display.html?id=92462> for reason, why this use case results into an error instead of a warning. I will look if I can change it from error into a warning in Fedora < 22, but you should report this erroneous use of Getopt::Long against verilator because it can lead to undefined behavior. -- Petr
Using <> with pass_through is just waiting for disaster. However, I'll make an exception and release 2.44 that has the error message turned into a warning. I'll change it back into an error in a future release.
From: ppisar [...] redhat.com
Dne Čt 19.úno.2015 02:42:53, ppisar napsal(a): Show quoted text
> I will look if I can change it from error into a warning in Fedora < 22,
Changing the message into a warning while keeping 2.43 behavior would break 2.43 expectations. Based on the fact the pre-2.43 behavior was ill, the best approach is to fix broken applications. -- Petr
Stricktly speaking I agree fully. I'm just being gentle and allow them some time to fix it.