Skip Menu |
 

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

Report information
The Basics
Id: 12318
Status: resolved
Priority: 0/
Queue: Module-Build

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

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



Subject: 'Build dist' dies horribly when an author can not be parsed from the pod
If neither the build.pl or the 'relevant' pod (however that may be determined) yields a valid author string, Module::Build dies with this error message: [kane@codebase2 /tmp/Foo-Bar]$ perl Build.PL Checking whether your kit is complete... Looks good Creating new 'Build' script for 'Foo-Bar' version '0.01' [kane@codebase2 /tmp/Foo-Bar]$ ./Build dist Deleting META.yml Couldn't load YAML.pm, generating a minimal META.yml without it. Please check and edit the generated metadata, or consider installing YAML.pm. Can't use an undefined value as an ARRAY reference at /usr/local/share/perl/5.8.4/Module/Build/Base.pm line 2177. [kane@codebase2 /tmp/Foo-Bar]$ perl -MModule::Build -e'print $Module::Build::VERSION' 0.2607 You can reproduce this with the attached tarball The fact that it can't find YAML is also a bit odd, as it's quite present on the system: [kane@codebase2 /tmp]$ perl -MYAML -e1 [kane@codebase2 /tmp]$ perldoc -l YAML /usr/local/share/perl/5.8.4/YAML.pod
Download Foo-Bar.tgz
application/x-gzip 871b

Message body not shown because it is not plain text.

Download (untitled) / with headers
text/plain 701b
Last things first: since YAML wasn't installed (or the wrong version was installed) when you installed M::B, its absence is noted during installation and it never attempts again to load it. This is fixed in the 0.27_01 beta: - The auto_features mechanism will now re-evaluate dependencies every time feature() is called for an auto-feature, rather than freezing the success/failure value during 'perl Build.PL' and using that value for all eternity (or module update, whichever comes first). This applies to both $build->feature() and FooModule::ConfigData->feature() calls. [Requested by many] As for the author-finding death problem: do you have Pod::Parser installed? -Ken
[KWILLIAMS - Mon Apr 18 15:51:17 2005]: Show quoted text
> Last things first: since YAML wasn't installed (or the wrong version > was installed) when you installed M::B, its absence is noted during > installation and it never attempts again to load it. This is fixed in > the 0.27_01 beta: > > - The auto_features mechanism will now re-evaluate dependencies every > time feature() is called for an auto-feature, rather than freezing > the success/failure value during 'perl Build.PL' and using that > value for all eternity (or module update, whichever comes first). > This applies to both $build->feature() and > FooModule::ConfigData->feature() calls. [Requested by many]
What's the ETA on taht release? as you can tell from quite a few other bug reports, the 0.26 line is having quite a few troubles. Show quoted text
> As for the author-finding death problem: do you have Pod::Parser > installed?
[kane@codebase2 ~]$ perl -MPod::Parser -le'print $Pod::Parser::VERSION' 1.14 [kane@codebase2 ~]$ perl -MYAML -le'print $YAML::VERSION' 0.35
Download (untitled) / with headers
text/plain 385b
[KWILLIAMS - Mon Apr 18 15:51:17 2005]: Show quoted text
> As for the author-finding death problem: do you have Pod::Parser > installed?
A bit to eager in hitting submit -- regardless whether or not a module is installed, the error should of course be handled more gracefully (by not dying on a missing ref), and probably shouldn't die at all as it's rreally No Bid Deal (a warning tops i'd say)
I've just fixed this in CVS. -Ken


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.