# Read the core packlist
$self->{Perl}{packlist} =
- ExtUtils::Packlist->new("$installarchlib/.packlist");
+ ExtUtils::Packlist->new( File::Spec->catfile($installarchlib, '.packlist') );
$self->{Perl}{version} = $Config{version};
# Read the module packlists
# avoid warning and death by localizing glob
local *ExtUtils::Installed::Config;
+ my $fake_mod_dir = File::Spec->catdir(cwd(), 'auto', 'FakeMod');
%ExtUtils::Installed::Config = (
- archlib => cwd(),
- sitearch => cwd() . 'auto/FakeMod',
+ archlib => cwd(),
+ installarchlib => cwd(),
+ sitearch => $fake_mod_dir,
);
# necessary to fool new()
- push @INC, cwd() . '/auto/FakeMod';
+ push @INC, $fake_mod_dir;
my $realei = ExtUtils::Installed->new();
ok( exists $realei->{FakeMod}, 'new() should find modules with .packlists');
# files
$ei->{goodmod} = {
packlist => {
- $Config{installman1dir} . '/foo' => 1,
- $Config{installman3dir} . '/bar' => 1,
- $Config{prefix} . '/foobar' => 1,
+ File::Spec->catdir($Config{installman1dir}, 'foo') => 1,
+ File::Spec->catdir($Config{installman3dir}, 'bar') => 1,
+ File::Spec->catdir($Config{prefix}, 'foobar') => 1,
foobaz => 1,
},
};