Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:prefix commit in: pym/portage/util/
Date: Sun, 06 Feb 2011 21:01:31
Message-Id: efe4b99bd72d4ac9b13b5885c33cc3f8bd6059f9.grobian@gentoo
1 commit: efe4b99bd72d4ac9b13b5885c33cc3f8bd6059f9
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 6 20:58:46 2011 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 6 20:58:46 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=efe4b99b
7
8 pty: disable the use of openpty on FreeMiNT
9
10 As reported by Alan Hourihane, openpty seems not to work at all, making
11 Portage non-usable, so disable it, like we do for Solaris.
12
13 ---
14 pym/portage/util/_pty.py | 5 ++++-
15 1 files changed, 4 insertions(+), 1 deletions(-)
16
17 diff --git a/pym/portage/util/_pty.py b/pym/portage/util/_pty.py
18 index f45ff0a..db1c9ac 100644
19 --- a/pym/portage/util/_pty.py
20 +++ b/pym/portage/util/_pty.py
21 @@ -131,9 +131,12 @@ else:
22 # Disable the use of openpty on Solaris as it seems Python's openpty
23 # implementation doesn't play nice on Solaris with Portage's
24 # behaviour causing hangs/deadlocks.
25 + # Similarly, on FreeMiNT, reading just always fails, causing Portage
26 + # to think the system is malfunctioning, and returning that as error
27 + # message.
28 # Additional note for the future: on Interix, pipes do NOT work, so
29 # _disable_openpty on Interix must *never* be True
30 - _disable_openpty = platform.system() in ("SunOS",)
31 + _disable_openpty = platform.system() in ("SunOS", "FreeMiNT",)
32 _tested_pty = False
33
34 if not _can_test_pty_eof():