From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BD604138330 for ; Mon, 26 Sep 2016 22:55:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5EC59E0AA9; Mon, 26 Sep 2016 22:55:11 +0000 (UTC) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3C63EE0A9D for ; Mon, 26 Sep 2016 22:55:11 +0000 (UTC) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 292FB20856; Mon, 26 Sep 2016 18:55:10 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Mon, 26 Sep 2016 18:55:10 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=vntQip8FGEygz90 6t4UGlNU38Aw=; b=TrMZKGrjjhITEJJ6y4xt/v2grAqDzqAzwBSqbgWj2xz9XAr PYFrzczDTAjJGFzanlvXQjAw+uo1ajiAlh8jGgQZpX3R5CyoVLwfNVQsv5tCucDW crV1lZICnzGAngoeeGqE+SsjT2PYDI6JX/l2JA01cXPKuLYT5QvSmeYp4MN0= X-Sasl-enc: mpezUh9JwHv7d1CznbY2CFokEH20Fko17j5/+DoljCYz 1474930509 Received: from DESKTOP-TUEPEJF (cpc83015-enfi23-2-0-cust486.20-2.cable.virginm.net [77.102.145.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 26DF0F2985; Mon, 26 Sep 2016 18:55:08 -0400 (EDT) Date: Mon, 26 Sep 2016 23:55:06 +0100 From: Kerin Millar To: gentoo-portage-dev@lists.gentoo.org Cc: Zac Medico Subject: Re: [gentoo-portage-dev] [PATCH v2] AbstractEbuildProcess: disable ipc_daemon under Windows Subsystem for Linux Message-Id: <20160926235506.bf4ba019b79312a36d6f95c9@plushkava.net> In-Reply-To: References: X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.23; i686-pc-mingw32) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 140c0c64-a812-4b91-a5eb-e4468c764e86 X-Archives-Hash: 08325428f90a72c10787d42734d3f457 Hi Zac, On Thu, 22 Sep 2016 20:48:26 -0700 Zac Medico wrote: > On Thu, Sep 22, 2016 at 8:23 PM, Kerin Millar wrote: > > Duly updated to use any instead of ==, as recommended by Brian Dolbec. > > > > -- > > Kerin Millar > > My first choice would be to use a small test case to detect when ipc > is broken, and disable it dynamically. A good example of such a test > is the can_poll_device function here: > > https://gitweb.gentoo.org/proj/portage.git/tree/pym/portage/util/_eventloop/EventLoop.py?h=portage-2.3.1#n597 This is a good idea. I suspect a faulty implementation of (e)poll, but the exact manner in which WSL is falling short is something that eludes me. Should I manage to figure out, I'll likely propose an alternative workaround. > > If it's not possible to use a test similar to the above, maybe it's > best to use /proc/version or /proc/sys/kernel/osrelease as mentioned > in the following issue: > > https://github.com/Microsoft/BashOnWindows/issues/423 I had read this prior but didn't find it convincing. However unlikely it may seem, someone could add Microsoft to EXTRAVERSION - for an Azure guest perhaps - and break such a heuristic. By contrast, the chances of /dev/lxss existing outside of the (L)inu(X) (S)ub(S)ystem are infinitesimally small. -- Kerin Millar