Skip Menu |

This queue is for tickets about the Shipwright CPAN distribution.

Report information
The Basics
Id: 47846
Status: rejected
Priority: 0/
Queue: Shipwright

People
Owner: Nobody in particular
Requestors: b.cavanagh [...] jach.hawaii.edu
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.2.1
Fixed in: (no value)



Subject: Shipwright doesn't follow its internal dependencies
I have imported a module that doesn't exist on CPAN. If I try to import a second module that depends on the first, Shipwright crashes: % shipwright import -r fs:`pwd` file:/home/bradc/development/starlink/perlmods/Starlink/HDSPACK/Starlink-HDSPACK-undef.tar.gz CPAN related output will be at /tmp/shipwright_cpan.log Use of uninitialized value in numeric eq (==) at /local/perl-5.8/lib/site_perl/5.8.8/Shipwright/Source/CPAN.pm line 85. invalid source: can't find 'NDF' in your CPAN mirror(s) [http://cpan.mirror.facebook.com http://cpan.knowledgematters.net http://cpan.yahoo.com]. at /local/perl-5.8/lib/site_perl/5.8.8/Shipwright/Source/CPAN.pm line 97 Shipwright::Source::CPAN::run('Shipwright::Source::CPAN=HASH(0x789c8d0)') called at /local/perl-5.8/lib/site_perl/5.8.8/Shipwright/Source/Base.pm line 441 Shipwright::Source::Base::_follow('Shipwright::Source::Compressed=HASH(0x6ca0770)', '/tmp/shipwright_source_gIMm9O/Starlink-HDSPACK-undef') called at /local/perl-5.8/lib/site_perl/5.8.8/Shipwright/Source/Compressed.pm line 33 Shipwright::Source::Compressed::run('Shipwright::Source::Compressed=HASH(0x6ca0770)', 'copy', 'HASH(0x661ac80)') called at /local/perl-5.8/lib/site_perl/5.8.8/Shipwright/Script/Import.pm line 157 Shipwright::Script::Import::run('Shipwright::Script::Import=HASH(0x639b500)', 'file:/home/bradc/development/starlink/perlmods/Starlink/HDSPA...') called at /local/perl-5.8/lib/site_perl/5.8.8/App/CLI/Command.pm line 53 App::CLI::Command::run_command('Shipwright::Script::Import=HASH(0x639b500)', 'file:/home/bradc/development/starlink/perlmods/Starlink/HDSPA...') called at /local/perl-5.8/lib/site_perl/5.8.8/App/CLI.pm line 79 App::CLI::dispatch('Shipwright::Script') called at /local/perl/bin/shipwright line 16 Shipwright should first check to see if a required module has already been imported to its repository before going off to CPAN.
Shipwright assumes the deps in Makefile.PL are all on cpan as CPAN module does. you could --skip NDF when importing, and we use this to get around the issue too. btw, it's not so practical to check if we imported NDF or not before, since people can name it whatever they want. On Mon Jul 13 18:06:02 2009, BRADC wrote: Show quoted text
> I have imported a module that doesn't exist on CPAN. If I try to > import > a second module that depends on the first, Shipwright crashes: > > % shipwright import -r fs:`pwd` > file:/home/bradc/development/starlink/perlmods/Starlink/HDSPACK/Starlink- > HDSPACK-undef.tar.gz > CPAN related output will be at /tmp/shipwright_cpan.log > Use of uninitialized value in numeric eq (==) at > /local/perl-5.8/lib/site_perl/5.8.8/Shipwright/Source/CPAN.pm line 85. > invalid source: can't find 'NDF' in your CPAN mirror(s) > [http://cpan.mirror.facebook.com http://cpan.knowledgematters.net > http://cpan.yahoo.com]. at > /local/perl-5.8/lib/site_perl/5.8.8/Shipwright/Source/CPAN.pm line 97 > > Shipwright::Source::CPAN::run('Shipwright::Source::CPAN=HASH(0x789c8d0)') > called > at /local/perl-5.8/lib/site_perl/5.8.8/Shipwright/Source/Base.pm line > 441 > >
Shipwright::Source::Base::_follow('Shipwright::Source::Compressed=HASH(0x6ca0770)', Show quoted text
> '/tmp/shipwright_source_gIMm9O/Starlink-HDSPACK-undef') called at > /local/perl-5.8/lib/site_perl/5.8.8/Shipwright/Source/Compressed.pm > line 33 > >
Shipwright::Source::Compressed::run('Shipwright::Source::Compressed=HASH(0x6ca0770)', Show quoted text
> 'copy', 'HASH(0x661ac80)') called at > /local/perl-5.8/lib/site_perl/5.8.8/Shipwright/Script/Import.pm line > 157 > >
Shipwright::Script::Import::run('Shipwright::Script::Import=HASH(0x639b500)', Show quoted text
> 'file:/home/bradc/development/starlink/perlmods/Starlink/HDSPA...') > called at /local/perl-5.8/lib/site_perl/5.8.8/App/CLI/Command.pm line > 53 > >
App::CLI::Command::run_command('Shipwright::Script::Import=HASH(0x639b500)', Show quoted text
> 'file:/home/bradc/development/starlink/perlmods/Starlink/HDSPA...') > called at /local/perl-5.8/lib/site_perl/5.8.8/App/CLI.pm line 79 > App::CLI::dispatch('Shipwright::Script') called at > /local/perl/bin/shipwright line 16 > > > Shipwright should first check to see if a required module has already > been imported to its repository before going off to CPAN.