Subject: | ExtUtils::Install fails to install and still reports success |
Hi,
When using ExtUtils::Install as user without the necessary permissions to write to the target directory (eg: Using INSTALLDIRS=vendor when installing a perl module as normal user), it outputs one warning (only one, all further ones are suppressed) and then continues with the usual "Installing $FILE\n".
In most environments at least one fatal error is generated when it tries to write the .packlist file, but on some systems the .packlist file is omitted (Debian Perl does that, for example)
This little test script should demonstrate the problem:
#!/bin/sh
wget -N http://search.cpan.org/CPAN/authors/id/A/AB/ABIGAIL/End-1.2.tgz && \
tar -xzf End-1.2.tgz && \
cd End/ && \
sudo mkdir -p $PWD/tmp/lib $PWD/tmp/arch $PWD/tmp/man1 $PWD/tmp/man3 && \
perl Makefile.PL INSTALLDIRS=vendor INSTALLVENDORLIB=$PWD/tmp/lib INSTALLVENDORARCH=$PWD/tmp/arch INSTALLVENDORMAN1DIR=$PWD/tmp/man1 INSTALLVENDORMAN3DIR=$PWD/tmp/man3 && \
make install
I'm using perl 5.8.4 with ExtUtils::MakeMaker 6.14.