Perl portgroup, +perl5_30 depends on perl5.28, etc

Craig Treleaven ctreleaven at macports.org
Fri May 22 14:52:43 UTC 2020


I’m working on a new port and was using the fsdb port as a model.  Oddly, when a non-default variant is selected, it seems the perl portgroup still adds a dependency on the default perl version.  In the case of fsdb, the default variant is +perl5_28:

$ port info --variants --depends_lib fsdb +perl5_30
variants: perl5_26, perl5_28, perl5_30
depends_lib: perl5.30, perl5.28, gzip, p5.30-html-parser, p5.30-io-compress, p5.30-io-compress-lzma, p5.30-test-pod, p5.30-test-pod-coverage, p5.30-test-simple, p5.30-text-csv_xs, p5.30-xml-simple, p5.30-yaml-libyaml

Note that the first two library dependencies are "perl5.30, perl5.28,”.  Not a huge problem for most users but it could lead to a redundant port installation and/or confusion.

I can’t follow the code in the port group well enough to say why this is happening.  It isn’t deliberate, is it?

Craig



More information about the macports-dev mailing list