You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Term::Rendezvous is required when the noTTY option is specified, but it is not available either in the standard distribution or on CPAN.
% cpanm Term::Rendezvous
! Finding Term::Rendezvous on cpanmetadb failed.
! Finding Term::Rendezvous () on mirror file:///proj/axaf/simul/export/darkpan failed.
! Finding Term::Rendezvous () on mirror https://cpan.org failed.
! Couldn't find module or a distribution Term::Rendezvous
Steps to Reproduce
% PERLDB_OPTS='noTTY' perl -dE '$DB::single=1; require POSIX'
Can't locate Term/Rendezvous.pm in @INC (you may need to install the Term::Rendezvous module)
(@INC entries checked:
[...]/lib/perl5/x86_64-linux_RHEL-8-thread-multi
[...]/lib/perl5
[...]/lib/site_perl/5.38.2/x86_64-linux_RHEL-8-thread-multi
[...]/lib/site_perl/5.38.2
[...]/lib/5.38.2/x86_64-linux_RHEL-8-thread-multi
[...]/lib/5.38.2
at [...]/lib/5.38.2/perl5db.pl line 6854.
DB::setterm() called at [...]/lib/5.38.2/perl5db.pl line 1849
DB::_DB__read_next_cmd(undef) called at [...]/lib/5.38.2/perl5db.pl line 3100
DB::DB called at -e line 1
[...]
END failed--call queue aborted.
at -e line 0.
Expected behavior
Either Term::Rendezvous should ship with Perl or it should be available on CPAN.
If there's anyone who would like a meaningful project involving the Perl debugger, please step forward.
The else block starting at 6894 of lib/perl5db.pl is what needs reformulation:
6881 # If noTTY is set, but we have a TTY name, go ahead and hook up to it.
6882 if ($notty) {
6883 if ($tty) {
6884 my ( $i, $o ) = split $tty, /,/;
6885 $o = $i unless defined $o;
6886 open( IN, '<', $i ) or die "Cannot open TTY '$i' for read: $!";
6887 open( OUT, '>', $o ) or die "Cannot open TTY '$o' for write: $!";
6888 $IN = \*IN;
6889 $OUT = \*OUT;
6890 _autoflush($OUT);
6891 } ## end if ($tty)
6892
6893 # We don't have a TTY - try to find one via Term::Rendezvous.
6894 else {
6895 require Term::Rendezvous;
6896
6897 # See if we have anything to pass to Term::Rendezvous.
6898 # Use $HOME/.perldbtty$$ if not.
6899 my $rv = $ENV{PERLDB_NOTTY} || "$ENV{HOME}/.perldbtty$$";
6900
6901 # Rendezvous and get the filehandles.
6902 my $term_rv = Term::Rendezvous->new( $rv );
6903 $IN = $term_rv->IN;
6904 $OUT = $term_rv->OUT;
6905 } ## end else [ if ($tty)
6906 } ## end if ($notty)
6907
Module: perl5db.pl
Description
Term::Rendezvous
is required when the noTTY option is specified, but it is not available either in the standard distribution or on CPAN.Steps to Reproduce
Expected behavior
Either
Term::Rendezvous
should ship with Perl or it should be available on CPAN.Perl configuration
The text was updated successfully, but these errors were encountered: