From efe4b99bd72d4ac9b13b5885c33cc3f8bd6059f9 Mon Sep 17 00:00:00 2001 From: Fabian Groffen <grobian@gentoo.org> Date: Sun, 6 Feb 2011 21:58:46 +0100 Subject: [PATCH] pty: disable the use of openpty on FreeMiNT As reported by Alan Hourihane, openpty seems not to work at all, making Portage non-usable, so disable it, like we do for Solaris. --- pym/portage/util/_pty.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pym/portage/util/_pty.py b/pym/portage/util/_pty.py index f45ff0aa1..db1c9acae 100644 --- a/pym/portage/util/_pty.py +++ b/pym/portage/util/_pty.py @@ -131,9 +131,12 @@ else: # Disable the use of openpty on Solaris as it seems Python's openpty # implementation doesn't play nice on Solaris with Portage's # behaviour causing hangs/deadlocks. + # Similarly, on FreeMiNT, reading just always fails, causing Portage + # to think the system is malfunctioning, and returning that as error + # message. # Additional note for the future: on Interix, pipes do NOT work, so # _disable_openpty on Interix must *never* be True - _disable_openpty = platform.system() in ("SunOS",) + _disable_openpty = platform.system() in ("SunOS", "FreeMiNT",) _tested_pty = False if not _can_test_pty_eof(): -- 2.26.2