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.
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).
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.
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.
*** This bug has been marked as a duplicate of bug 683111 ***