Bug 714137 - perl-IO-Tty can't be rebuild in mock
Summary: perl-IO-Tty can't be rebuild in mock
Keywords:
Status: CLOSED DUPLICATE of bug 711175
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: perl-IO-Tty
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: perl-maint-list
QA Contact:
URL:
Whiteboard:
Depends On: 711175
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-17 12:16 UTC by Levente Farkas
Modified: 2011-06-23 06:24 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-23 06:24:43 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Levente Farkas 2011-06-17 12:16:11 UTC
while try to rebuild in mock perl-IO-Tty-1.08-4.el6.src.rpm gives this error:
--------------------------
Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.MgPT14
+ umask 022
+ cd /builddir/build/BUILD
+ cd IO-Tty-1.08
+ unset DISPLAY
+ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
1..4
Configuration: -DHAVE_DEV_PTMX -DHAVE_GETPT -DHAVE_GRANTPT -DHAVE_OPENPTY -DHAVE_POSIX_OPENPT -DHAVE_PTSNAME -DHAVE_PTSNAME_R -DHAVE_PTY_H -DHAVE_SIGACTION -DHAVE_TERMIOS_H -DHAVE_TERMIO_H -DHAVE_TTYNAME -DH
AVE_UNLOCKPT
Checking for appropriate ioctls: TIOCNOTTY TIOCSCTTY
Checking that returned fd's don't clash with stdin/out/err...
trying posix_openpt()...
trying grantpt()...
IO::Tty::pty_allocate(nonfatal): grantpt(): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
trying unlockpt()...
trying ptsname_r()...
IO::Tty::open_slave(nonfatal): ptsname_r(): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
trying to open /dev/pts/0...
IO::Tty::open_slave(nonfatal): open(/dev/pts/0): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
pty_allocate(nonfatal): posix_openpt(): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
trying getpt()...
trying grantpt()...
IO::Tty::pty_allocate(nonfatal): grantpt(): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
trying unlockpt()...
trying to open /dev/pts/0...
IO::Tty::open_slave(nonfatal): open(/dev/pts/0): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
pty_allocate(nonfatal): getpt(): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
trying openpty()...
pty_allocate(nonfatal): openpty(): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
trying /dev/ptmx...
trying grantpt()...
IO::Tty::pty_allocate(nonfatal): grantpt(): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
trying unlockpt()...
trying to open /dev/pts/0...
IO::Tty::open_slave(nonfatal): open(/dev/pts/0): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
pty_allocate(nonfatal): open(/dev/ptmx): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
trying BSD /dev/pty??...
Cannot open a pty at test.pl line 42
trying posix_openpt()...
trying grantpt()...
IO::Tty::pty_allocate(nonfatal): grantpt(): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
trying unlockpt()...
trying ptsname_r()...
IO::Tty::open_slave(nonfatal): ptsname_r(): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
trying to open /dev/pts/0...
IO::Tty::open_slave(nonfatal): open(/dev/pts/0): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
pty_allocate(nonfatal): posix_openpt(): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
trying BSD /dev/pty??...
Cannot open a pty at test.pl line 42
trying posix_openpt()...
trying grantpt()...
IO::Tty::pty_allocate(nonfatal): grantpt(): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
trying unlockpt()...
trying ptsname_r()...
IO::Tty::open_slave(nonfatal): ptsname_r(): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
trying to open /dev/pts/0...
IO::Tty::open_slave(nonfatal): open(/dev/pts/0): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
pty_allocate(nonfatal): posix_openpt(): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
trying getpt()...
trying grantpt()...
IO::Tty::pty_allocate(nonfatal): grantpt(): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
trying unlockpt()...
trying to open /dev/pts/0...
IO::Tty::open_slave(nonfatal): open(/dev/pts/0): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
pty_allocate(nonfatal): getpt(): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
trying openpty()...
pty_allocate(nonfatal): openpty(): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
trying /dev/ptmx...
trying grantpt()...
IO::Tty::pty_allocate(nonfatal): grantpt(): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
trying unlockpt()...
trying to open /dev/pts/0...
IO::Tty::open_slave(nonfatal): open(/dev/pts/0): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
pty_allocate(nonfatal): open(/dev/ptmx): No such file or directory at /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.
trying BSD /dev/pty??...
Cannot open a pty at test.pl line 58
child exit=512
not ok 1
# Test failed at test.pl line 52.
Checking if child gets pty as controlling terminal...
make: *** [test_dynamic] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.MgPT14 (%check)
--------------------------

Comment 2 Petr Pisar 2011-06-17 12:46:40 UTC
> Checking that returned fd's don't clash with stdin/out/err...
> trying posix_openpt()...
> trying grantpt()...
> IO::Tty::pty_allocate(nonfatal): grantpt(): No such file or directory at
> /builddir/build/BUILD/IO-Tty-1.08/blib/lib/IO/Pty.pm line 24.

The error message is from Tty.xs:263 because XS fuction grantpt() failed
because it sais:

> No such file or directory

The grantpt() is glibc function accepting file descriptor of PTY master and
changes ownership and permission of corresponding PTY slave i-node in devpts
pseudo-file system mounted usually into /dev/pts.

I guess you are missing /dev/pts in your mock.

Comment 3 Levente Farkas 2011-06-17 12:49:01 UTC
because it's probably missing from all mock:-) which cause this rpm can't be build in mock...

Comment 4 Petr Pisar 2011-06-17 13:04:34 UTC
If you think, this is bug in mock, reassign it to mock component.

Comment 5 Levente Farkas 2011-06-17 13:07:02 UTC
it's a known bug in mock, but (as i know from many other bugreport) rh's position is that all package should have to build in mock and if a package is not able to build in mock then it's a buggy rpm.

Comment 6 Levente Farkas 2011-06-22 19:30:03 UTC
fixed by #711175 and can be closed.

Comment 7 Petr Pisar 2011-06-23 06:24:43 UTC

*** This bug has been marked as a duplicate of bug 711175 ***


Note You need to log in before you can comment on or make changes to this bug.