Skip Menu |

This queue is for tickets about the Module-Install CPAN distribution.

Report information
The Basics
Id: 122166
Status: open
Priority: 0/
Queue: Module-Install

Owner: Nobody in particular
Requestors: KENTNL [...]

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: (no value)

Subject: M:I:DSL: Syntax derived configure failures exit true

This looks like legal Perl code, however, it isn't legal for M:I:DSL

use lib q[.]; use inc::Module::Install::DSL;

version 1;

M:I:DSL seems to have its own dark magic where it parses the "use" line itself.

And when that fails, it fails as follows:


perl Makefile.PL ; echo $?
Failed to execute the generated code...
syntax error at (eval 20) line 4, near "use 'lib'"

Note: the complaint here is not that DSL is spooky,
but that fatal errors are "true" instead of "false"

And this can lead tools to proceed to later stages
when they should halt in configure.

- Gentoo Perl Maintainer ( )

Download (untitled) / with headers
text/plain 518b
On 2017-06-21 23:25:45, KENTNL wrote: Show quoted text
> This looks like legal Perl code, however, it isn't legal for M:I:DSL
Unless someone has an appetite for diving in and figuring out what's going on (not me!!) probably the best recourse here is to slap huge documentation warnings on this module and try to persuade any cpan users to stop using it... fortunately for me (yayyy! I am full of sarcasm already), it looks like most consumers are ADAMK dists...
Well, for a good start, checking what "$@" contains and invoking "die" somehow, instead of just printing "we had an error" and then calling exit(0) .... that might be a huge improvement.

- Gentoo Perl Maintainer ( )
( And well, printing the generated code along with the exception might be helpful too )

- Gentoo Perl Maintainer ( )

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to