Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 77084
Status: open
Priority: 0/
Queue: CPANPLUS

People
Owner: Nobody in particular
Requestors: kmx [...] cpan.org
Cc:
AdminCc:

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



Subject: makemakerflags do not support more than 1 param
 Scenario - I want to pass some commandline options to Makefile.PL via makemakerflags e.g.

$conf->set_conf(makemakerflags => '--mysql_config=mysql_config');

For one parameter it works nice, however when I try to pass more params like:

$conf->set_conf(makemakerflags => 'INSTALLDIRS=vendor --mysql_config=mysql_config');

it fails (Makefile.PL simply do not thing it was given --mysql_config option).



To make it work it seems to be necessary to:

1/ split makemakerflags (when scalar/string) into parts via something like split_command (see http://search.cpan.org/~mschwern/ExtUtils-MakeMaker-6.62/lib/ExtUtils/MM_Any.pm#split_command)

2/ allow passing arrayref like this:
$conf->set_conf(makemakerflags => ['INSTALLDIRS=vendor', '--mysql_config=mysql_config']);

3/ or allow both 1/ + 2/

There will be probably similar issue with makeflags and buildflags (I have not tested those)

--
kmx
From: SOMIAN [...] CPAN.org
On Wed May 09 10:23:27 2012, KMX wrote: Show quoted text
> For one parameter it works nice, however when I try to pass more > params like: > > $conf->set_conf(makemakerflags => 'INSTALLDIRS=vendor > --mysql_config=mysql_config'); > > it fails (Makefile.PL simply do not thing it was given --mysql_config > option).
I would like to confirm as an "interested user" that this is broken for me on a fresh CPANPLUS install of release 0.9142 and that having looked at the code in lieu of finding adequate API documentation (which is lacking - that's a bug too), it appears that some code intends to allow the use of an arrayref in order to convince the beast to pass along multiple parameters for makemakerflags; but that code is not working either (in any case one would have to manually edit the User.pm config file to get such a work-around - since there is no way to enter a "list" of things in the interactive setup dialog). I think multiple parameters worked as some earlier point, and that this is a regressive condition for CPANPLUS to be in.