CC: | "Andrew Psaltis" <apsaltis [...] akamai.com> |
Subject: | Could be a configure_requires problem (or me doing something wrong) |
Date: | Fri, 25 Oct 2013 15:35:51 -0400 |
To: | bug-Shipwright [...] rt.cpan.org |
From: | Matt Magri <mmagri [...] akamai.com> |
I ran into an issue that I think gets into how shipwright supports
configure_requires, and that is beyond my ken, so I don't have a code
fix to suggest this time. :)
When I tried to import Pod::Spell (well, originally I was importing
something else that had Pod::Spell as a build dependency, but this is
probably a more usefully-limited example), it failed like so:
------------8<-snip------------8<-snip------------8<-snip------------
mmagri@tibby:~/workspaces/mmagri_build_bigperl/bigperl$
./call-shipwright import Pod::Spell
CPAN related output will be at /tmp/shipwright_cpan.log
Fetching with LWP:
http://search.cpan.org/CPAN/authors/id/X/XE/XENO/Pod-Spell-1.12.tar.gz
command failed:
/home/mmagri/workspaces/mmagri_build_bigperl/perl5.14/export/usr/local/akamai/bin/perl5.14.2
Makefile.PL
$?: 512
cwd: /tmp/shipwright_source_a19QTk/cpan-Pod-Spell
stdout was:
stderr was:
Can't locate File/ShareDir/Install.pm in @INC (@INC contains:
/home/mmagri/workspaces/mmagri_build_bigperl/cpan-Shipwright/perl/lib/perl5/i686-linux-gnu
/home/mmagri/workspaces/mmagri_build_bigperl/cpan-Shipwright/perl/lib/perl5
/home/mmagri/workspaces/mmagri_build_bigperl/perl5.14/export/usr/local/akamai/lib/site_perl/5.14.2/i686-linux-gnu
/home/mmagri/workspaces/mmagri_build_bigperl/perl5.14/export/usr/local/akamai/lib/site_perl/5.14.2
/home/mmagri/workspaces/mmagri_build_bigperl/perl5.14/export/usr/local/akamai/lib/5.14.2/i686-linux-gnu
/home/mmagri/workspaces/mmagri_build_bigperl/perl5.14/export/usr/local/akamai/lib/5.14.2
/usr/local/akamai/lib/perl5/5.14/lib .) at Makefile.PL line 9.
BEGIN failed--compilation aborted at Makefile.PL line 9.
suggest: install File::ShareDir::Install first
cannot remove path when cwd is
/tmp/shipwright_source_a19QTk/cpan-Pod-Spell for
/tmp/shipwright_source_a19QTk: at
/home/mmagri/workspaces/mmagri_build_bigperl/perl5.14/export/usr/local/akamai/lib/5.14.2/File/Temp.pm
line 902
------------8<-snip------------8<-snip------------8<-snip------------
Since it couldn't delete the temp space, I took a look in the META.yml
and, sure enough, there is a configure_requires for
File::ShareDir::Install...
------------8<-snip------------8<-snip------------8<-snip------------
(ALSI6)mmagri@tibby:~/workspaces/mmagri_build_bigperl/bigperl$ head -17
/tmp/shipwright_source_a19QTk/cpan-Pod-Spell/META.yml
---
abstract: 'a formatter for spellchecking Pod'
author:
- 'Sean M. Burke <sburke@cpan.org>'
- 'Caleb Cushing <xenoterracide@gmail.com>'
build_requires:
File::Spec: 0
File::Temp: 0
IO::Handle: 0
IPC::Open3: 0
Test::Deep: 0
Test::More: 0.88
utf8: 0
configure_requires:
ExtUtils::MakeMaker: 6.30
File::ShareDir::Install: 0.03
dynamic_config: 0
------------8<-snip------------8<-snip------------8<-snip------------
Shipwright has dealt well with build_requires, but it may be that
configure_requires wasn't as fully supported since it usually just
consists of things that would already be a shipwright bootstrap module
(ExtUtils::MakeMaker).
Because I'm producing a package that will be installed later, I can't
use the work around it suggests of installing File::ShareDir::Install to
anything in that @INC, but I'll come up with some workaround that is
idiosyncratic to my setup. I figured you guys would like a heads up that
included an example CPAN so you could check it out, though.
Thanks!
Matt