From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12955: 24.3.50; Build process on MS-Windows: sometimes needs "human intervention" Date: Fri, 23 Nov 2012 10:53:24 +0200 Message-ID: <83r4nku2d7.fsf@gnu.org> References: <83a9uauwwo.fsf@gnu.org> <83zk29tvo8.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1353660833 24140 80.91.229.3 (23 Nov 2012 08:53:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Nov 2012 08:53:53 +0000 (UTC) Cc: 12955@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 23 09:54:04 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Tbp1Q-0008IY-Cq for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Nov 2012 09:54:04 +0100 Original-Received: from localhost ([::1]:42889 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tbp1F-0001L5-PL for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Nov 2012 03:53:53 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tbp18-0001Hv-CB for bug-gnu-emacs@gnu.org; Fri, 23 Nov 2012 03:53:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tbp0z-0004eo-HC for bug-gnu-emacs@gnu.org; Fri, 23 Nov 2012 03:53:46 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52036) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tbp0z-0004ek-CL for bug-gnu-emacs@gnu.org; Fri, 23 Nov 2012 03:53:37 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tbp2M-0005v0-3F for bug-gnu-emacs@gnu.org; Fri, 23 Nov 2012 03:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Nov 2012 08:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12955 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12955-submit@debbugs.gnu.org id=B12955.135366089822740 (code B ref 12955); Fri, 23 Nov 2012 08:55:02 +0000 Original-Received: (at 12955) by debbugs.gnu.org; 23 Nov 2012 08:54:58 +0000 Original-Received: from localhost ([127.0.0.1]:34054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tbp2E-0005uf-PX for submit@debbugs.gnu.org; Fri, 23 Nov 2012 03:54:58 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:55223) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tbp2A-0005uV-7m for 12955@debbugs.gnu.org; Fri, 23 Nov 2012 03:54:54 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MDX00A00N0X1H00@a-mtaout21.012.net.il> for 12955@debbugs.gnu.org; Fri, 23 Nov 2012 10:53:23 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MDX009Y4NCYW570@a-mtaout21.012.net.il>; Fri, 23 Nov 2012 10:53:23 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:67345 Archived-At: > Date: Thu, 22 Nov 2012 20:16:18 +0100 > From: Dani Moncayo > Cc: 12955@debbugs.gnu.org > > > I don't quite understand your line of thinking. If there is an > > annoyance here (I don't see it), then it is self-imposed, because you > > are deliberately using an unsupported environment -- unsupported > > _precisely_ because of problems like this one. > > I thought it was supported, since the makefiles do care about > SHELLTYPE being CMD or SH, and since the build process work just fine > with SH (modulo the problem at hand). The SH part is not for MSYS. It's for Cygwin Bash. It also worked with the old port of zsh, which I used for some time. > The restriction is preventing the use of the SH shell. And those two > programs are included in the msys-base package of MinGW, which I find > very convenient and easy to install (with its package manager). Installing the GnuWin32 port of Coreutils is equally easy. > > I would like to find a good solution now. Does it work for you to get > > rid of the "cmd /c" part entirely and remove the quotes, i.e. use > > this: > > > > fc.exe /b gl-tmp globals.h >nul 2>&1 || $(CP) gl-tmp globals.h > > > > ? (Note the ".exe" part, it's important because "fc" is a shell > > builtin in Bash.) If "/b" causes the same trouble as "/c" in the cmd > > command, we can make a Make variable, set to "//b" under MSYS and to > > "/b" otherwise. MSYS can be recognized by having MSYSTEM in the > > environment (Make converts all environment variables to Make > > variables, so you can use ifdef etc.). > > Yes that seems to work for me. I've tested both cases (SH and CMD). I committed a variant of that in trunk revision 110989. Please test. > > If you or someone else wants to > > work on such an MSYS build, _that_ would be a worthy investment of > > time and energy, and an excellent use of MSYS the way MSYS is supposed > > to be used. When used that way, MSYS really shines. > > > > If you are willing to work on the MSYS build, I promise you all the > > support I can give. Otherwise, you really should start migrating to > > cmd. > > I'm kind of a novice in these matters, but if you give me some > guidelines to get started and I find enough time, I'd like to learn > and try to help. Thanks for the offer.