Skip Menu |

This queue is for tickets about the B-Generate CPAN distribution.

Report information
The Basics
Id: 27994
Status: resolved
Priority: 0/
Queue: B-Generate

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

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



Subject: Improper use of $self->{config}
I noticed some warnings during the build process. Use of uninitialized value in substitution (s///) at /private/var/local/cpan_shell/build/B-Generate-1.09-wiiPcm/_build/lib/My/Builder.pm line 9. Use of uninitialized value in substitution (s///) at /private/var/local/cpan_shell/build/B-Generate-1.09-wiiPcm/_build/lib/My/Builder.pm line 10. Use of uninitialized value in concatenation (.) or string at /private/var/local/cpan_shell/build/B-Generate-1.09-wiiPcm/_build/lib/My/Builder.pm line 11. Use of uninitialized value in concatenation (.) or string at /private/var/local/cpan_shell/build/B-Generate-1.09-wiiPcm/_build/lib/My/Builder.pm line 11. This is because $self->{config}{lddlflags} is not defined, in fact its almost empty. DB<2> n My::Builder::compile_c(/private/var/local/cpan_shell/build/B-Generate-1.09-wiiPcm/_build/lib/My/Builder.pm:9): 9: $self->{config}->{lddlflags} =~ s/-flat_namespace/-twolevel_namespace/; DB<2> x $self->{config} 0 Module::Build::Config=HASH(0x1a4a8b0) 'stack' => HASH(0x1a49934) empty hash 'values' => HASH(0x1a59f8c) empty hash I think you're supposed to work with $self->{config} via methods like get() and set(). This is with Module::Build 0.2808 on OS X 10.4.10 w/5.8.8.
I believe the proper way to do it is to use the $self->config($key, $value) accessor method as documented in Module::Build::API.
Resolved. I changed over to a sane EUMM environment with 1.30 -- Reini Urban