Recursively scan Perl code for dependencies

Edit Package perl-Module-ScanDeps
http://search.cpan.org/dist/Module-ScanDeps

This module scans potential modules used by perl programs, and returns a
hash reference; its keys are the module names as appears in '%INC' (e.g.
'Test/More.pm'); the values are hash references with this structure:

{
file => '/usr/local/lib/perl5/5.8.0/Test/More.pm',
key => 'Test/More.pm',
type => 'module', # or 'autoload', 'data', 'shared'
used_by => [ 'Test/Simple.pm', ... ],
uses => [ 'Test/Other.pm', ... ],
}

One function, 'scan_deps', is exported by default. Other functions such as
('scan_line', 'scan_chunk', 'add_deps', 'path_to_inc_name') are exported
upon request.

Users of *App::Packer* may also use this module as the dependency-checking
frontend, by tweaking their _p2e.pl_ like below:

use Module::ScanDeps;
...
my $packer = App::Packer->new( frontend => 'Module::ScanDeps' );
...

Please see the App::Packer::Frontend manpage for detailed explanation on
the structure returned by 'get_files'.

Refresh
Refresh
Source Files
Filename Size Changed
Module-ScanDeps-1.10.tar.gz 0000058946 57.6 KB
perl-Module-ScanDeps.changes 0000004945 4.83 KB
perl-Module-ScanDeps.spec 0000001910 1.87 KB
Revision 8 (latest revision is 34)
Stephan Kulow's avatar Stephan Kulow (coolo) accepted request 147926 from Robert Schweikert's avatar Robert Schweikert (rjschwei) (revision 8)
- update to 1.10:
  * add %Preload rule for Params::Validate to detect 
    its PP and XS implementations
  
  * Fix RT #80276 Module DateTime::Format::ISO8601 generates error 
    after being packaged
    - caused by failing to pack DateTime::Format::Builder::Parser::XXX modules 
      needed by DateTime::Format::Builder::Parser
    - add a corresponding %Preload rule
- update to 1.09:
  * teach Module::ScanDeps about "use if ..." constructs
    - fixes CPAN Testers failures for PAR::Packer with perl 5.17.1 and up
      (Roderich Schupp)
  
  * RT #79003: t/7-check-dynaloader.t failing when /usr/lib != /usr/lib64
    - scrap the test for "$entry{file} starts with $expected_prefix" as
      its assumptions are flawed (Roderich Schupp)
  
  * Mojo::Base is a loader (Alexandr Ciornii)
  * Special case for Class::Load (Alexandr Ciornii)
- update to 1.08:
  * RT #73785: scandeps -c fails on modules that depend on Getopt::Euclid
    - for "scandeps -c ..." switch from an INIT block to a CHECK block
      and call the augmented script with "perl -c"  instaed of "perl"
  
  * RT#72954 ":encoding(UTF-8)" doesn't imply a dependency on Encode.pm
    - if scan_chunk sees ":encoding(FOO)" or similar, it goes to some
      length to find the "external" Encode module to handle FOO; but it
      forgets that Encode.pm itself is needed at runtime (esp. if FOO
      is an encoding "internally" handled by Encode.pm, e.g. "UTF-8") (forwarded request 147889 from oertel)
Comments 0
openSUSE Build Service is sponsored by