Bug 701891

Summary: Missing /dev breaks dejagnu=runtest
Product: [Fedora] Fedora Reporter: Jan Kratochvil <jan.kratochvil>
Component: mockAssignee: Clark Williams <williams>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: mebrown, williams
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-29 09:40:46 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:

Description Jan Kratochvil 2011-05-04 08:24:45 UTC
Description of problem:
One cannot run testsuites in mock chroots.

Version-Release number of selected component (if applicable):
mock-1.1.9-1.fc14.noarch

How reproducible:
Always.

Steps to Reproduce:
Download + build GDB.
cd gdb/testsuite; make site.exp; runtest gdb.base/return.exp 
  
Actual results:
gdb compile failed, spawn failed
# of untested testcases		1

Expected results:
# of expected passes		9

Additional info:
At least this may be a problem:
15737 open("/dev/tty", O_RDWR|O_NONBLOCK) = -1 ENOENT (No such file or directory)

When using my mock replacement:
  http://git.jankratochvil.net/?p=nethome.git;a=blob_plain;f=bin/mocksetup;hb=master
which uses full udev mount:
  udev on /dev type devtmpfs (rw,relatime,size=2988076k,nr_inodes=747019,mode=755)
it works fine.

Comment 1 Clark Williams 2011-05-06 18:58:59 UTC
Jan,

I'm trying to straighten out the non-interactive build cases with respect to controlling ttys right now. When I've got that fixed I'll look at dealing with more interactive uses (like test suites that depend on having a controlling terminal).

Comment 2 Clark Williams 2011-06-23 00:41:29 UTC
I've just built mock 1.1.11 which removes the 'newinstance' mount modifier for
the devpts filesystem inside the chroot. I believe this is what was causing pty
failures inside the chroot.

Comment 3 Andreas Schwab 2011-06-28 09:34:18 UTC
Please read Documentation/filesystems/devpts.txt in the kernel-doc package on how to use newinstance correctly, especially the bit about the /dev/ptmx -> /dev/pts/ptmx link.

Comment 4 Jan Kratochvil 2011-06-29 09:40:46 UTC

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