Subject: | module_name undefined warning |
In current CVS HEAD I'm getting this error:
Use of uninitialized value in string eq at
Module-Build/lib/Module/Build/Base.pm line 2976.
This is happening because my module declares a dist_name, but not a
module_name. So, the "eq" comparison below is causing warnings.
# Since we're building ourself, we have to do some special stuff
# here: the ConfigData module is found in blib/lib.
local @INC = @INC;
if ($self->module_name eq 'Module::Build') {
$self->depends_on('config_data');
push @INC, File::Spec->catdir($self->blib, 'lib');
}
The fix should be like line 439 of the same file:
if (($self->module_name || '') eq 'Module::Build') {
--Chris