Gentoo Archives: gentoo-portage-dev

From: Fabian Groffen <grobian@g.o>
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] pty/termios problems on "alternative platforms"
Date: Fri, 25 May 2007 13:05:16
Message-Id: 20070525130424.GN1235@gentoo.org
1 Hi,
2
3 Recently Portage's spawn code was changed to make use of pty and
4 termios functions. From [1] it sounds like using pty is kind of
5 limited. It seems to work fine on Linux and Darwin, IRIX I assume so,
6 but on Solaris it does not. I would be surpriced if it would work on
7 AIX, not even thinking about Windows. Anyhow, it seems Python doesn't
8 raise an exception on the pty code, but only bails out on the
9 termios.tcgetattr function because it gets an "invalid argument".
10
11 Being not such a star in Python coding, but still requiring Portage to
12 work on Solaris and AIX (and Windows), I'd like to reverse the original
13 behaviour, but preferrably only when pty is not functional, as I think
14 the current code is better. Any suggestions for how to do this at best?
15
16
17 [1] http://www.python.org/doc/1.5.2p2/lib/module-pty.html
18
19 --
20 Fabian Groffen
21 Gentoo on a different level
22 --
23 gentoo-portage-dev@g.o mailing list

Replies