Date: Wed, 5 Oct 2005 21:09:21 -0400 From: Mark Bucciarelli <mark@gaiahost.coop> To: freebsd-questions@freebsd.org Subject: Cannot open /dev/tty for read Message-ID: <20051006010921.GD1936@rabbit>
next in thread | raw e-mail | index | archive | help
I get the error in the subject line when trying to install the www/interchange
port inside a jail. The full output of the make command is below.
I'm using the standard devfs rule set 4 with the following addition:
    # devfs -m /web/jail/myjail/dev rule apply add path 'tty' unhide
>From inside the jail:
    # ls -l /dev/tty
    crw-rw-rw-  1 root  wheel    5,   1 Oct  5 21:06 /dev/tty
The offending line in Makefile.PL is
            my $term;
            if($TermRead) {
 here. ---->  $term = new Term::ReadLine 'MakeFile';
              $Prompt_sub = sub {
                my($prompt, $default) = @_;
                $prompt .= "[$default] "
                  if defined $default && !$ENV{PERL_RL};
                return $term->readline($prompt, $default);
              };
            }
If I comment this out and just use Perl instead of Term::Readline, the 
install completes successfully.
Am I doing something wrong with devfs or should I file a problem report 
against this port?
Here's the full output of the make install:  
    # make -DCHECK_FOR_IC_USER install clean
    ===>  Installing for interchange-4.8.7
    ===>   interchange-4.8.7 depends on file: /usr/local/lib/perl5/site_perl/5.8.7/SQL/Statement.pm - found
    ===>   interchange-4.8.7 depends on file: /usr/local/lib/perl5/site_perl/5.8.7/mach/Storable.pm - found
    ===>   interchange-4.8.7 depends on file: /usr/local/lib/perl5/site_perl/5.8.7/mach/Safe/Hole.pm - found
    ===>   interchange-4.8.7 depends on file: /usr/local/lib/perl5/site_perl/5.8.7/mach/Digest/MD5.pm - found
    ===>   interchange-4.8.7 depends on file: /usr/local/lib/perl5/site_perl/5.8.7/mach/MIME/Base64.pm - found
    ===>   interchange-4.8.7 depends on file: /usr/local/lib/perl5/site_perl/5.8.7/LWP/Simple.pm - found 
    ===>   interchange-4.8.7 depends on file: /usr/local/lib/perl5/site_perl/5.8.7/URI/URL.pm - found
    ===>   interchange-4.8.7 depends on file: /usr/local/lib/perl5/site_perl/5.8.7/Term/ReadLine/Perl.p - found
    ===>   interchange-4.8.7 depends on file: /usr/local/lib/perl5/site_perl/5.8.7/mach/Term/ReadKey.pm - found
    ===>   interchange-4.8.7 depends on file: /usr/local/bin/perl5.8.7 - found
    ===>   Generating temporary packing list
    ===>  Checking if www/interchange already installed
    Writing /usr/local/lib/perl5/site_perl/5.8.7/mach/auto/Interchange/.packlist
    /usr/local/bin/perl5.8.7 Makefile.PL force nocpaninstall=1 INTERCHANGE_USER=interch final=/usr/local/interchange
    Cannot open /dev/tty for read at Makefile.PL line 64
    *** Error code 16
    Stop in /usr/ports/www/interchange/work/interchange-4.8.7.
    *** Error code 1
    Stop in /usr/ports/www/interchange.
Regards,
m
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051006010921.GD1936>
