Bug 123992

Summary: No BSD pty's in FC2 kernel
Product: [Fedora] Fedora Reporter: Kenneth Porter <shiva>
Component: kernelAssignee: Dave Jones <davej>
Status: CLOSED WONTFIX QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 2CC: barryn, pfrields
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://www.uwsg.iu.edu/hypermail/linux/kernel/0402.1/0252.html
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-11-03 04:27:24 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 Kenneth Porter 2004-05-22 16:31:07 UTC
A 3rd party app I'm using, Lugaru Epsilon (http://www.lugaru.com/)
fails to spawn a process buffer. An strace reveals that it can't open
/dev/ptyp0 and friends. The nodes exist but report "no such device"
when I attempt to cat them.

If I've read everything right, these are "BSD" pty's and the default
FC2 kernels have them disabled.

Comment 1 Kenneth Porter 2004-06-09 06:08:45 UTC
The Epsilon author reports that he's added SysV pty support to come in
the next update. Meanwhile, I built a kernel with "legacy pty" support
and the process buffer in Epsilon is again working.

I unpacked the stock kernel SRPM, edited the desired .config file in
SOURCES, edited the SPEC file to add a custom suffix to the revision
string, and rebuilt the binary RPM. The only funny bit is that one has
to define a config variable to set the number of PTY's that's not
"unset" in the default file, so it's useful to run "make config" once
to get the syntax right for setting that variable right.

Here's the edit for i686:

1340c1340,1341
< # CONFIG_LEGACY_PTYS is not set
---
> CONFIG_LEGACY_PTYS=y
> CONFIG_LEGACY_PTY_COUNT=256

Here's the edit for the SPEC file:

23c23
< %define release %(R="$Revision: 1.358 $"; RR="${R##: }"; echo
${RR%%?})%{rhbsys}
---
> %define release %(R="$Revision: 1.358 $"; RR="${R##: }"; echo
${RR%%?})%{rhbsys}bsdpty
796a797,799
> * Sun May 23 2004 Kenneth Porter <shiva>
> - Custom kernel: Re-enable BSD ptys for Epsilon.


Comment 2 Kenneth Porter 2004-08-12 01:34:29 UTC
Epsilon 12.06 with SysV PTY support is now available at the Lugaru
website. (See above.)

Feel free to close this with a wontfix. (I entered this as an FYI to
others looking for a solution.)