Skip Menu |
 

This queue is for tickets about the Devel-CheckLib CPAN distribution.

Report information
The Basics
Id: 75753
Status: new
Priority: 0/
Queue: Devel-CheckLib

People
Owner: Nobody in particular
Requestors: jolemartin [...] gmail.com
Cc:
AdminCc:

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



Subject: make test fails on spaces in config options ( and a patch )
make test was failing because my perl's Config{ldflags} was ldflags => ' ' ( for some reason, I think this might also be the problem on the solaris bug ). adding to the config list only non empty options removed the make test errors and warnings. except that STORE one but that looks intentional diff -u lib/Devel/CheckLib.pm blib/lib/Devel/CheckLib.pm --- lib/Devel/CheckLib.pm 2012-02-26 16:13:25.000000000 -0800 +++ blib/lib/Devel/CheckLib.pm 2012-03-13 16:10:01.537795796 -0700 @@ -359,7 +359,10 @@ sub _findcc { # Need to use $keep=1 to work with MSWin32 backslashes and quotes my $Config_ccflags = $Config{ccflags}; # use copy so ASPerl will compile - my @Config_ldflags = @Config{qw(ldflags perllibs)}; + my @Config_ldflags = (); + for my $config_val ( @Config{qw(ldflags perllibs)} ){ + push @Config_ldflags, $config_val if ( $config_val =~ /\S/ ); + } my @ccflags = grep { length } quotewords('\s+', 1, $Config_ccflags); my @ldflags = grep { length } quotewords('\s+', 1, @Config_ldflags); my @paths = split(/$Config{path_sep}/, $ENV{PATH});


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.