Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Something wrong with metacpan.org? (or Astro::Montenbruck)

by Anonymous Monk
on Feb 03, 2023 at 15:09 UTC ( [id://11150126]=note: print w/replies, xml ) Need Help??


in reply to Something wrong with metacpan.org?

I don't know if it's relevant to the metacpan problem but Astro::Montenbruck, despite working very well as an ephemeris, has weird install issues with regard to CPAN and Perl. A few past releases failed the tests because it didn't install the prerequisite List::MoreUtils. I never noticed it before but the 10 included scripts are simply not installed anywhere. Also it is invisible to ExtUtils::Installed:
perl -MAstro::Montenbruck -le 'print $Astro::Montenbruck::VERSION'
> 1.26
perl -MExtUtils::Installed -MData::Dumper -le 'print Dumper(ExtUtils:: +Installed->new->files("Astro::Montenbruck"))'
> Astro::Montenbruck is not installed at -e line 1.

But Module::Metadata sees it (perldoc works too):

perl -MModule::Metadata -MData::Dumper -le 'print Module::Metadata->ne +w_from_module("Astro::Montenbruck")->{filename}'
> /lib/site_perl/5.36.0/Astro/Montenbruck.pm

I guess something's wrong with the installation configs (packlist?) and hope that someone who understands such things can figure it out and contact the author with the required fixes for this otherwise excellent distribution.

Replies are listed 'Best First'.
Re^2: Something wrong with metacpan.org? (or Astro::Montenbruck)
by Anonymous Monk on Feb 03, 2023 at 19:11 UTC
    Noticed an inconsistency in the name of this module. Searching CPAN brings up this result:

    Search results for "Astro::Montenbruck"

    Astro::Montenbruck - Lightweight Ephemeris


    The top of the page shows this (note the dash):

    Sergey Krushinsky / Astro-Montenbruck-1.26 / Astro::Montenbruck


    The perldoc says:

    NAME

    Montenbruck - Lightweight Ephemeris


    ExtUtils does find the module with a dash instead of colons:
    perl -MExtUtils::Installed -MData::Dumper -le 'print Dumper(ExtUtils:: +Installed->new->files("Astro-Montenbruck"))'
      That's normal behaviour, distributions usually have names different to the modules they contain. A colon is not permitted in file names in MSWin32, so you can't name your distribution archive Astro::Montenbruck-1.26.tgz.

      Cf. my Syntax::Construct.

      The ExtUtils find is weird, though:

      perl -MExtUtils::Installed -MData::Dumper -le 'print Dumper(ExtUtils:: +Installed->new->files("Syntax::Construct"))' $VAR1 = '/home/choroba/perl5/lib/perl5/Syntax/Construct.pm'; $VAR2 = '/home/choroba/perl5/man/man3/Syntax::Construct.3pm'; perl -MExtUtils::Installed -MData::Dumper -le 'print Dumper(ExtUtils:: +Installed->new->files("Syntax-Construct"))' Syntax-Construct is not installed at -e line 1.

      map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
        The ExtUtils find is weird

        I've never ever had to use a dash instead of colons to find a module with ExtUtils::Installed. I think that since Astro::Montenbruck can be found by ExtUtils with a dash, and not found with the usual colons, suggests that the author put a dash in some config file where there should have been colons. I tried the dash out of desperation and was shocked that it worked.

        Perhaps this is related to the failure to install the scripts?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11150126]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2024-04-25 15:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found