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

Do not install executables by default? #19

Closed
miyagawa opened this issue Apr 16, 2015 · 3 comments
Closed

Do not install executables by default? #19

miyagawa opened this issue Apr 16, 2015 · 3 comments

Comments

@miyagawa
Copy link

On many systems, if you accidentally install PerlPowerTools many of the tools get broken.

tokuhirom/plenv#78
miyagawa/cpanminus#443 (comment)

While I love the idea of replicating UNIX tools written in pure perl, it sounds a bit too easy to accidentally break the system. Could you consider not install these executables by default without some options such as --install-executables are passed to configure script Makefile.PL?

@briandfoy
Copy link
Owner

Well, the point of Perl Power Tools is to install the executables. We'll have to come up with something to work around, this though, and lots of warnings in the docs.

I think perhaps they should be installed into a directory that is not in PATH and that people should have to add that new path to PATH themselves, and at the end of PATH.

Note that plenv and cpanminus still have the problem of finding an unsuitable tool. Someone who wanted to do something malicious merely needs to drop a program of the right name in a suitable spot.

@miyagawa
Copy link
Author

I think perhaps they should be installed into a directory that is not in PATH and that people should have to add that new path to PATH themselves, and at the end of PATH.

Yeah that'd work for me as well. Thank you for considering the request!

briandfoy added a commit that referenced this issue Apr 17, 2015
This is important so these tools do not overwrite
the real tools that they mimic. People should be
very careful.

#19
@briandfoy
Copy link
Owner

In 1.005, I set INSTALL_BASE for the user and prompt them to set it themselves if they want something else. This should be good enough for the moment.

briandfoy added a commit to briandfoy/rakudo-star-chocolatey that referenced this issue Jan 19, 2022
This is important so these tools do not overwrite
the real tools that they mimic. People should be
very careful.

briandfoy/PerlPowerTools#19
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