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
1 Hi,
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".
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?
17 [1]
19 --
20 Fabian Groffen
21 Gentoo on a different level
22 --
23 gentoo-portage-dev@g.o mailing list