Subject: | Dummy Makefile.PL Creation when Download Fails |
Dear Jos Boumans,
Hi. This is imacat from Taiwan. I found that CPANPLUS still
creates dummy Makefile.PL even when download fails and no archive is
available. Since no files were downloaded, CPANPLUS fails to chdir() to
that extracted directory, creates the dummy Makefile.PL in the current
working directory, and leaves several files there. For example, if I
want to test S/SE/SENGER/NET-IPFilterSimple_V1.1.tar.gz which shall fail
due to rt bug#34519,
imacat@rinse /tmp/t % ls -la
total 24
drwxr-xr-x 2 imacat users 4096 Mar 29 15:59 .
drwxrwxrwt 7 root root 20480 Mar 29 15:59 ..
imacat@rinse /tmp/t % /opt/perl/testers/5.8.8/bin/cpanp -t
S/SE/SENGER/NET-IPFilterSimple_V1.1.tar.gz
[MSG] Checking if source files are up to date
[MSG] Retrieving /home/imacat/.cpanplus/sourcefiles.2.18.stored
[MSG] No '/home/imacat/.cpanplus/custom-sources' dir, skipping custom
sources
Testing NET::IPFilterSimple (V1.1)
[MSG] Trying to get
'ftp://cpan.cdpa.nsysu.edu.tw/Unix/Lang/CPAN/authors/id/S/SE/SENGER/CHECKSUMS'
[MSG] Archive size is not known for 'NET-IPFilterSimple-V1.1.tar.gz'
[MSG] No 'md5' checksum known for 'NET-IPFilterSimple-V1.1.tar.gz'
Unable to read
'/home/imacat/.cpanplus/authors/id/S/SE/SENGER/NET-IPFilterSimple-V1.1.tar.gz':
at
/opt/perl/testers/5.8.8/lib/site_perl/5.8.8/CPANPLUS/Internals/Extract.pm
line 158
[MSG] Extracted 'NET::IPFilterSimple' to '/tmp/t'
[ERROR] Unable to find 'Build.PL' or 'Makefile.PL' for
'NET::IPFilterSimple'; Will default to 'CPANPLUS::Dist::MM' but might be
unable to install!
==> MISSING Signature file! <==
[MSG] No 'Makefile.PL' found - attempting to generate one
Running [/opt/perl/testers/5.8.8/bin/perl
/opt/perl/testers/5.8.8/bin/cpanp-run-perl /tmp/t/Makefile.PL ]...
Writing Makefile for NET::IPFilterSimple
Running [/usr/bin/make -j 2]...
Running [/usr/bin/make test -j 2]...
No tests defined for NET::IPFilterSimple extension.
[MSG] Sending test report for 'NET-IPFilterSimple-V1.1'
[MSG] Successfully sent 'pass' report for 'NET-IPFilterSimple-V1.1'
*** Install log written to:
/home/imacat/.cpanplus/install-logs/NET-IPFilterSimple-V1.1-1206777580.log
Module 'NET::IPFilterSimple' tested successfully
No errors testing all modules
imacat@rinse /tmp/t % ls -la
total 56
drwxr-xr-x 3 imacat users 4096 Mar 29 15:59 .
drwxrwxrwt 7 root root 20480 Mar 29 15:59 ..
-rw-r--r-- 1 imacat users 22226 Mar 29 15:59 Makefile
-rw-r--r-- 1 imacat users 304 Mar 29 15:59 Makefile.PL
drwxr-xr-x 8 imacat users 4096 Mar 29 15:59 blib
-rw-r--r-- 1 imacat users 0 Mar 29 15:59 pm_to_blib
imacat@rinse /tmp/t %
I suppose CPANPLUS shall check if download has succeed and stop if
nothing was downloaded for whatever reason. Keep running with
non-existing downloaded file is silly.
Please tell me if you need any more information, or if I could be of
any help. Thank you.