0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-01-06 02:26:34 +00:00
termux-packages/packages/perl/no-sudo.patch
2023-04-29 14:11:59 +09:00

15 lines
676 B
Diff

https://github.com/termux/termux-packages/issues/16467
--- a/cpan/CPAN/lib/CPAN/FirstTime.pm
+++ b/cpan/CPAN/lib/CPAN/FirstTime.pm
@@ -1110,7 +1110,8 @@
# as long as Windows needs $self->_build_command, we cannot
# support sudo on windows :-)
my $default = $CPAN::Config->{make} || "";
- if ( $default && $CPAN::Config->{install_help} eq 'sudo' ) {
+ # https://github.com/termux/termux-packages/issues/16467
+ if ( 0 && $default && $CPAN::Config->{install_help} eq 'sudo' ) {
if ( find_exe('sudo') ) {
$default = "sudo $default";
delete $CPAN::Config->{make_install_make_command}