FINDDEPS-DISTMETA(1) | General Commands Manual | FINDDEPS-DISTMETA(1) |
finddeps-distmeta
—
parse Perl-module's distmeta file and find
dependencies
finddeps-distmeta |
[-hv ] [file] |
The finddeps-distmeta
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.
finddeps-distmeta
operates on packages'
sources repository to search dependencies in the packages' footprints, and
therefore requires pkgman(1).
The options are as follows:
The typical usage of finddeps-distmeta
is
to call it from the Perl's module directory:
cd /var/cache/pkgmk/sources/URI-5.17 finddeps-distmeta
Or to specify the location of META.yml file manually:
finddeps-distmeta /var/cache/pkgmk/source/URI-5.17/META.yml
Another convenient way is to call
finddeps-distmeta
from the
Pkgfile when you're building the package:
build() { cd URI-$version finddeps-distmeta ... }
So, you can check the output, fix “Depends on:” field and remove unnecessary call afterwards.
Currently, finddeps-distmeta
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 |