Bug 701891 - Missing /dev breaks dejagnu=runtest
Summary: Missing /dev breaks dejagnu=runtest
Keywords:
Status: CLOSED DUPLICATE of bug 683111
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: 14
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Clark Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-04 08:24 UTC by Jan Kratochvil
Modified: 2011-06-29 09:40 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-29 09:40:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


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