FINDDEPSDISTMETA(1) General Commands Manual FINDDEPSDISTMETA(1)

finddepsdistmetaparse Perl-module's distmeta file and find dependencies

finddepsdistmeta [-hv] [file]

The finddepsdistmeta utility parses so-called “distmeta” (CPAN distribution metadata) of Perl-module and find dependencies. It shows dependencies that are in the core Perl distribution and searches missing modules in the existing installed “p5-*” packages.

finddepsdistmeta operates on packages' sources repository to search dependencies in the packages' footprints, and therefore requires pkgman(1).

The options are as follows:

, --version
Print version and exit.
, --help
Print help and exit.

META.yml
CPAN distribution metadata file.

The finddepsdistmeta utility exits 0 on success, and >0 if an error occurs.

The typical usage of finddepsdistmeta is to call it from the Perl's module directory:

cd /var/cache/pkgmk/sources/URI-5.17
finddepsdistmeta

Or to specify the location of META.yml file manually:

finddepsdistmeta /var/cache/pkgmk/source/URI-5.17/META.yml

Another convenient way is to call finddepsdistmeta from the Pkgfile when you're building the package:

build() {
        cd URI-$version

        finddepsdistmeta
        ...
}

So, you can check the output, fix “Depends on:” field and remove unnecessary call afterwards.

finddepslinked(1), findredundantdeps(1)

Currently, finddepsdistmeta parses only META.yml file, which is generated by ExtUtils::MakeMaker(3pm). The parsing of META.json isn't added yet.

September 3, 2023 Zeppe-Lin