Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 714137

Summary: perl-IO-Tty can't be rebuild in mock
Product: Red Hat Enterprise Linux 6 Reporter: Levente Farkas <lfarkas>
Component: perl-IO-TtyAssignee: perl-maint-list
Status: CLOSED DUPLICATE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1CC: ppisar
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-23 06:24:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 711175    
Bug Blocks:    

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 ***