Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing list of feature dependencies in warning for Module::Build features. #12

Open
schwern opened this issue Mar 18, 2013 · 1 comment

Comments

@schwern
Copy link
Contributor

schwern commented Mar 18, 2013

tl;dr... we need a way to get at the values of %$auto_features from Module::Build::ConfigData.

_warn_mb_feature_deps is for warning about missing Module::Build features, as opposed to features of the current distribution. For example, without Software::License MB can't generate a LICENSE file. Here's an example from perl5i.

$ PERL5OPT=-MDevel::Hide=Software::License ./Build distmeta
Devel::Hide hides Software/License.pm
Devel::Hide hides Software/License.pm
Devel::Hide hides Software/License.pm
Devel::Hide hides Software/License.pm
Creating README using Pod::Text
Creating LICENSE file
The 'license_creation' feature is not available.  Please install missing

feature dependencies and try again.

Aborting.

There's supposed to be an additional message there, generated by _feature_deps_msg, which tells the user what modules to install. Its missing.

_warn_mb_feature_deps incorrectly uses _feature_deps_msg which references the distribution's features (in this example its perl5i) not Module::Build's. Unfortunately I see no way to get the list of auto features out of Module::Build::ConfigData.

@KES777
Copy link

KES777 commented Jun 5, 2016

I found this for workaround

In certain circumstances, you may need to install some packages to get this to run properly. If you see the following error, you should install Software::License:
The 'license_creation' feature is not available. Please install missing feature dependencies and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants