Hide Forgot
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) --------------------------
> 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.
because it's probably missing from all mock:-) which cause this rpm can't be build in mock...
If you think, this is bug in mock, reassign it to mock component.
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.
fixed by #711175 and can be closed.
*** This bug has been marked as a duplicate of bug 711175 ***