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: make distclean and quail Date: Sun, 11 Aug 2013 20:17:25 +0300 Message-ID: <83d2pkqh96.fsf@gnu.org> References: <8338rf4yor.fsf@gnu.org> <83txjv3iui.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1376241452 27510 80.91.229.3 (11 Aug 2013 17:17:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Aug 2013 17:17:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 11 19:17:34 2013 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 1V8ZGn-0002Fh-Ll for ged-emacs-devel@m.gmane.org; Sun, 11 Aug 2013 19:17:33 +0200 Original-Received: from localhost ([::1]:37474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8ZGn-0002e4-8G for ged-emacs-devel@m.gmane.org; Sun, 11 Aug 2013 13:17:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8ZGe-0002d3-MT for emacs-devel@gnu.org; Sun, 11 Aug 2013 13:17:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V8ZGY-00031c-IJ for emacs-devel@gnu.org; Sun, 11 Aug 2013 13:17:24 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:43259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8ZGY-00031P-9l for emacs-devel@gnu.org; Sun, 11 Aug 2013 13:17:18 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MRD00600MFSNS00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Sun, 11 Aug 2013 20:17:03 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MRD00657MOENJ20@a-mtaout21.012.net.il>; Sun, 11 Aug 2013 20:17:03 +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.169 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:162573 Archived-At: > From: Juanma Barranquero > Date: Sun, 11 Aug 2013 04:48:54 +0200 > Cc: Emacs developers > > distclean: clean > @echo SRC = ${srcdir} > @echo PWD = `/bin/pwd` > -[ `cd ${srcdir} && /bin/pwd` != `/bin/pwd` ] && rm -rf quail > rm -f Makefile > > and I've got: > > SRC = /c/devel/emacs/repo/trunk/leim > PWD = /c/Devel/emacs/repo/trunk/leim > > The previous bootstrap, which succeeded (I mean, didn't delete > leim/quail/* files) had identical PWD, but SRC = > /c/Devel/emacs/repo/trunk/leim. > > Looking at ./Makefile, > > # We use $(srcdir) explicitly in dependencies so as not to depend on VPATH. > srcdir=/c/Devel/emacs/repo/trunk > > and, in fact, all along the bootstrap's log, make output uses the > "right" casing: > > make[2]: Entering directory '/c/Devel/emacs/repo/trunk' > > while shell commands do not: > > [ -r "/c/devel/emacs/repo/trunk/src/config.in" ] || ( cd > /c/devel/emacs/repo/trunk && autoheader ) > > In both cases the bootstraps were invoked through the same alias, > paths, binaries, etc. > > Any idea what can be causing this? So you are saying that _all_ of the Makefile's set srcdir to its correct value, and yet the commands issued by Make have "Devel" downcased, is that right? That kinda blames Make and it alone, because it is Make who expands variables when it invokes commands. Did you try to install a newer snapshot of MSYS Make? And you also say that this happens only sometimes? Is it possible that you invoke the bootstrap a bit differently when the problem happens, like with different environment variables or from a different shell? Or maybe you have more than one Make which could come into play somehow? FWIW, this never happened to me, but then I don't think I've built packages using MSYS in a directory that has mixed-case letters, they are always lower-case here.