Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133351 - no way to turn on /dev/pts support in app-editors/jove ebuild
Summary: no way to turn on /dev/pts support in app-editors/jove ebuild
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-14 23:50 UTC by Florian Berger
Modified: 2006-06-02 13:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Berger 2006-05-14 23:50:48 UTC
This is my first bug report ever, I'll try to get it right.

Overview Description:
app-editors/jove is a small emacs clone. By default it's built-in
shell support relies on the legacy /dev/ptyXX system. The new
2.6 Unix98 /dev/pts style can be activated via a switch in the
Makefile, but I can not find a way to set that switch upon
standard emerging.

Steps to Reproduce:
1) When building a 2.6 kernel, leave Device Drivers / 
   Character Devices / "Legacy (BSD) PTY support" empty
   (LEGACY_PTYS=n)
2) boot the kernel and "emerge jove"
3) run jove and enter shell mode (META-X shell).

Actual Results:
It complains "Out of ptys!". The shell can not be used.

Expected Results:
It should give a shell prompt.

Applies to:
jove-4.16.0.65.4.ebuild
jove-4.16.0.56.1.ebuild

Dirty fix:
The whole point is to set a variable in the Makefile (which
by the way contains a detailed description). Thus I was able to
fix it by adding the line

-e "s:^SYSDEFS =.*:SYSDEFS=\"-DSYSVR4 -D_XOPEN_SOURCE=500\":" \

within the sed command in src_unpack() in the ebuild file.
However, this is not very clean. It might be better to have
something like a USE flag "pts" to activate the Unix98 pts
style.
Comment 1 Florian Berger 2006-05-14 23:54:32 UTC
Here's my emerge --info:

Portage 2203-svn (default-linux/x86/2006.0, gcc-3.3.2, glibc-2.3.5-r2, 2.6.17-rc3 i686)
=================================================================
System uname: 2.6.17-rc3 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.3
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.4
sys-devel/binutils:  2.14.90.0.7-r4
sys-devel/libtool:   1.4.3-r4, 1.5.22
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 X aalib acl alsa apache2 apm audiofile avi berkdb bitmap-fonts bzip2 cdr cli crypt curl dri eds emboss encode esd exif expat flac foomaticdb fortran gdbm gif glut gpm gstreamer gtk gtk2 imagemagick imlib ipv6 isdnlog jack java jpeg lcms ldap libg++ libwww mad mmx mng motif mp3 mpeg ncurses nls nptl ogg oggvorbis opengl oss pam pcre pdflib perl png pppd python quicktime readline reflection ruby sasl sdl session slang spell spl ssl svga tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts udev vorbis win32codecs xml xml2 xmms xorg xv xvid zlib video_cards_mach64 userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2006-06-02 07:59:58 UTC
fixed in the newest version bump, please test.

Thanks!
Comment 3 Florian Berger 2006-06-02 13:17:01 UTC
OK here's what I did to check:

$ emerge --sync
$ echo app-editors/jove >> /etc/portage/package.keywords
$ USE="unix98 -X" emerge jove
$ jove
META-X shell

The shell buffer with a prompt opens. It works, and it's a clean solution. Thank you so much!

Cheers, Florian Berger, Leipzig, Germany