From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Latest EMACS on BZR trunk does not compile with MinGW Date: Wed, 04 Jun 2014 19:05:29 +0300 Message-ID: <83ha407j92.fsf@gnu.org> References: <80sinlu5kt.fsf@gmail.com> <538E2E90.4020706@cs.ucla.edu> <83mwdt8zkw.fsf@gnu.org> <83lhtd892x.fsf@gnu.org> <83tx807qdx.fsf@gnu.org> <83k38w7k7i.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1401897966 3164 80.91.229.3 (4 Jun 2014 16:06:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Jun 2014 16:06:06 +0000 (UTC) Cc: vincent.b.1@hotmail.fr, eggert@cs.ucla.edu, emacs-devel@gnu.org To: Dani Moncayo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 04 18:05:55 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WsDhF-00064t-96 for ged-emacs-devel@m.gmane.org; Wed, 04 Jun 2014 18:05:49 +0200 Original-Received: from localhost ([::1]:35123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsDhE-0008BY-Kf for ged-emacs-devel@m.gmane.org; Wed, 04 Jun 2014 12:05:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36997) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsDh4-0008AX-IM for emacs-devel@gnu.org; Wed, 04 Jun 2014 12:05:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsDgy-0002UH-W9 for emacs-devel@gnu.org; Wed, 04 Jun 2014 12:05:38 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:44202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsDgy-0002U1-Nq for emacs-devel@gnu.org; Wed, 04 Jun 2014 12:05:32 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0N6N00E00J7JRA00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Wed, 04 Jun 2014 19:05:30 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N6N00ES3JD6CQD0@a-mtaout22.012.net.il>; Wed, 04 Jun 2014 19:05:30 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172337 Archived-At: > Date: Wed, 4 Jun 2014 17:54:33 +0200 > From: Dani Moncayo > Cc: Vincent Bela=C3=AFche ,=20 > =09Paul Eggert , Emacs development discussions = >=20 > > You need to invoke the shell with the --login switch, then it wil= l > > read /etc/profile. >=20 > It would be nice to have a more reliable way of checking for an MSY= S > environment. Patches are welcome. > For example, wouldn't it be possible to check the output of 'uname'= ? Maybe, but it's not simple, because there's more than one kind available out there. I have 3 on my system, and they report, respectively: MINGW32_NT-5.1 HOME-C4E4A596F7 1.0.17(0.48/3/2) 2011-04-24 23:39 i6= 86 Msys MINGW32_NT-5.1 HOME-C4E4A596F7 1.0.12(0.46/3/2) 2012-07-05 14:56 i6= 86 unknown windows32 home-c4e4a596f7 2.5.1 2600 i686-pc Intel unknown MinGW In a nutshell, most of what a ported 'uname' reports is hard-wired into it when it is built, because there's no such OS as "MinGW". That's hardly a good way of reliably identifying MinGW.