autarch@urth.org via RT wrote:
Show quoted text> <URL:
https://rt.cpan.org/Ticket/Display.html?id=43605 >
>
> On Wed, 25 Feb 2009, Henrik Tougaard via RT wrote:
>
>>> cpan[6]> look D/DR/DROLSKY/DateTime-TimeZone-0.84.tar.gz
>>>
>>> Trying to open a subshell in the build directory...
>>> Working directory is /root/.cpan/build/DateTime-TimeZone-0.84-xytpQS
>>> [root@clover DateTime-TimeZone-0.84-xytpQS]# perl Makefile.PL
>
> What happens if you do:
>
> perl Build.PL
> ./Build
>
> ?
>
Works perfectly in 0.84 and 0.83
The challenge is 'just' to get cpan.pm to use build....
Show quoted text>>> /usr/local/adapt/local/perl5.8.7/bin/perl "-Iblib/arch" "-Iblib/lib" Build.PL Build
>
> See, that makes no sense, and I hav eno idea why make would be calling it.
Doing
perl Makefile.PL
make
and then a 'make -n' after the failure gives me:
...
Manifying blib/man3/DateTime::TimeZone::OlsonDB.3
Manifying blib/man3/DateTime::TimeZone::Local::Win32.3
/usr/local/adapt/local/perl5.8.7/bin/perl "-Iblib/arch" "-Iblib/lib"
Build.PL Build
Too early to specify a build action 'Build'. Do 'Build Build' instead.
make: *** [Build] Error 9
[root@clover DateTime-TimeZone-0.84-jhVcu6]# make -n
/bin/sh -c true
/bin/sh -c true
/bin/sh -c true
/bin/sh -c true
/bin/sh -c true
/bin/sh -c true
/bin/sh -c true
/bin/sh -c true
/usr/local/adapt/local/perl5.8.7/bin/perl "-MExtUtils::Command::MM" -e
pod2man "--" --section=3 --perm_rw=644\
lib/DateTime/TimeZone/UTC.pm blib/man3/DateTime::TimeZone::UTC.3 \
lib/DateTime/TimeZone/Catalog.pm
blib/man3/DateTime::TimeZone::Catalog.3 \
lib/DateTime/TimeZone/Local.pm blib/man3/DateTime::TimeZone::Local.3 \
lib/DateTime/TimeZone/OffsetOnly.pm
blib/man3/DateTime::TimeZone::OffsetOnly.3 \
lib/DateTime/TimeZone/Floating.pm
blib/man3/DateTime::TimeZone::Floating.3 \
lib/DateTime/TimeZone/Local/Unix.pm
blib/man3/DateTime::TimeZone::Local::Unix.3 \
lib/DateTime/TimeZone/Local/VMS.pm
blib/man3/DateTime::TimeZone::Local::VMS.3 \
lib/DateTime/TimeZone.pm blib/man3/DateTime::TimeZone.3 \
lib/DateTime/TimeZone/OlsonDB.pm
blib/man3/DateTime::TimeZone::OlsonDB.3 \
lib/DateTime/TimeZone/Local/Win32.pm
blib/man3/DateTime::TimeZone::Local::Win32.3
/bin/sh -c true
/usr/local/adapt/local/perl5.8.7/bin/perl "-Iblib/arch" "-Iblib/lib"
Build.PL Build
/bin/sh -c true
/bin/sh -c true
[root@clover DateTime-TimeZone-0.84-jhVcu6]#
It seems that make wants to build Build as the last thing it does. Wierd....
Diff'ing the makefiles from 0.83 and 0.84 (and ignoring diffs due to the
version change and addition of Katmandu etc) gives:
*** /tmp/Makefile-0.83 2009-02-27 12:55:34.000000000 +0100
--- /tmp/Makefile-0.84 2009-02-27 12:55:14.000000000 +0100
***************
*** 13,19 ****
# EXE_FILES => []
# INSTALLDIRS => q[site]
# NAME => q[DateTime::TimeZone]
- # PL_FILES => { }
# PREREQ_PM => { Class::Singleton=>q[1.03],
Params::Validate=>q[0.72], Pod::Man=>q[1.14], Module::Build=>q[0],
Cwd=>q[3] }
# VERSION_FROM => q[lib/DateTime/TimeZone.pm]
***************
*** 1638,1643 ****
--- 1637,1648 ----
# --- MakeMaker processPL section:
+ all :: Build
+ $(NOECHO) $(NOOP)
+
+ Build :: Build.PL
+ $(PERLRUNINST) Build.PL Build
+
# --- MakeMaker installbin section:
***************
There is a minor change in the Makefile.PL:
*** Makefile.PL 2008-10-27 16:11:19.000000000 +0100
--- ../DateTime-TimeZone-0.84-jhVcu6/Makefile.PL 2009-01-21
21:47:30.000000000 +0100
***************
*** 1,4 ****
! # Note: this file was auto-generated by Module::Build::Compat version 0.30
use ExtUtils::MakeMaker;
WriteMakefile
(
--- 1,4 ----
! # Note: this file was auto-generated by Module::Build::Compat version
0.31012
use ExtUtils::MakeMaker;
WriteMakefile
(
***************
*** 12,18 ****
'Pod::Man' => '1.14'
},
'INSTALLDIRS' => 'site',
! 'EXE_FILES' => [],
! 'PL_FILES' => {}
)
;
--- 12,17 ----
'Pod::Man' => '1.14'
},
'INSTALLDIRS' => 'site',
! 'EXE_FILES' => []
)
;
The removal of the 'PL_FILES'-line might cause make to try to build
Build from Build.PL.
Hmmm...
Probably Module::Build::Compat v.0.31012 is the cause of the bug?
/Henrik