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

Makefile.PL is installing modules itself instead of just reporting prerequisites #55

Open
perlpunk opened this issue Jul 5, 2024 · 1 comment

Comments

@perlpunk
Copy link

perlpunk commented Jul 5, 2024

I stumbled upon this: https://metacpan.org/release/NHORNE/Geo-Coder-Free-0.36/source/Makefile.PL#L42

system('perl -MCPAN -e \'CPAN::Shell->install("' . join('", "', @needfull) . '")\'');

A Makefile.PL should not mess with the user's system in that way.
Makefile.PL is there for reporting missing prerequisites and writing them to MYMETA.{json,yaml}, so that a CPAN client can install them if needed.
It should not install something on its own.

@nigelhorne
Copy link
Owner

nigelhorne commented Jul 5, 2024

The actual problem is that the database download and install should not be part of the Makefile.PL file. This has been a thorn for some time, I haven't got around to rewriting it.

Please feel free to submit a pull request, any fix must include a refactor of the database download and build system moving it out of the Makefile.

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

No branches or pull requests

2 participants