From: Fabian Groffen Date: Sun, 6 Feb 2011 20:58:46 +0000 (+0100) Subject: pty: disable the use of openpty on FreeMiNT X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=efe4b99bd72d4ac9b13b5885c33cc3f8bd6059f9;p=portage.git 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. --- 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():