0
0
mirror of https://github.com/termux-pacman/glibc-packages.git synced 2024-11-27 06:08:57 +00:00
glibc-packages/gpkg/perl/no-sudo.patch
2023-10-15 11:16:13 +03: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}