From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.devel Subject: Re: Building Emacs from a new MinGW environment Date: Tue, 17 Sep 2013 10:17:38 +0200 Message-ID: References: <83sixwfdjk.fsf@gnu.org> <834n9nhhp6.fsf@gnu.org> <83ppsbfoe7.fsf@gnu.org> <83mwnffkom.fsf@gnu.org> <83k3ijfhk0.fsf@gnu.org> <83hadnf7gs.fsf@gnu.org> <83hadmqvql.fsf@gnu.org> <83txhkpszv.fsf@gnu.org> <83pps8pnc9.fsf@gnu.org> <83ob7splia.fsf@gnu.org> <83k3ifq5o5.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1379405872 8065 80.91.229.3 (17 Sep 2013 08:17:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Sep 2013 08:17:52 +0000 (UTC) Cc: Emacs development discussions To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 17 10:17:55 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 1VLqTq-0007sO-AZ for ged-emacs-devel@m.gmane.org; Tue, 17 Sep 2013 10:17:54 +0200 Original-Received: from localhost ([::1]:38703 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLqTp-0007ta-T0 for ged-emacs-devel@m.gmane.org; Tue, 17 Sep 2013 04:17:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLqTj-0007tQ-DI for emacs-devel@gnu.org; Tue, 17 Sep 2013 04:17:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLqTd-0002CV-3f for emacs-devel@gnu.org; Tue, 17 Sep 2013 04:17:47 -0400 Original-Received: from mail-la0-x229.google.com ([2a00:1450:4010:c03::229]:64093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLqTb-0002C2-H2; Tue, 17 Sep 2013 04:17:39 -0400 Original-Received: by mail-la0-f41.google.com with SMTP id ec20so4190358lab.28 for ; Tue, 17 Sep 2013 01:17:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=pYDqhOGITPnwmtmKLDi9FHwiK2So8F7OFPC3tYY+Ghw=; b=ZTcmwHc6XujmGqJRo7kEn+sBwA3uGOiHkg5V55cplLPdFgHL9Lg3FuuRFihcqb4o+M BGOYVurXkxIu3DtiNSLWbhMjbNpALcY3y87Wf4qPjRkJ2UR+ZynNGgr2tGzMRCKqUWrU EOGv5v2TQeJYXHJ9VRQxVc/ZxBRYvojcT9L1HyQlDCPSC/C4bJ5JziraAvBqw5FKKvq+ pgXbkmIWyP365CEPnvB67Rel1dB8/pCRYK4hFRKED+WNdgln/oGOjrCTzxghkTHZri0n hWHZon4Y5t5Y+uqzJWTy3/lfx4JzBg1YMyckdikH2aURG1aCulcJ4QnxWGnVYJXm92wB htaQ== X-Received: by 10.112.167.3 with SMTP id zk3mr9942695lbb.23.1379405858264; Tue, 17 Sep 2013 01:17:38 -0700 (PDT) Original-Received: by 10.114.176.231 with HTTP; Tue, 17 Sep 2013 01:17:38 -0700 (PDT) In-Reply-To: <83k3ifq5o5.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::229 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:163382 Archived-At: > Change this: > > case "${srcdir}" in > [[\\/]]* | ?:[[\\/]]*) ;; > > into this: > > case "${srcdir}" in > [[\\/]]* | ?:[[\\/]]*) > test "$MSYSTEM" = "MINGW32" && srcdir=`(cd "$srcdir"; pwd -W)` > ;; > > This fix, if it works, is better, since it will fix also the stuff > that gets written into .gdbinit file in the build directory (it didn't > work for you because an MSYS file name was written there, and the > MinGW build of GDB doesn't grok that). This does't work in my case, because at that point, "${srcdir}" contains the relative path "../emacs.git", not something like "/c/whatever" or "c:/whatever". I think that the right fix is to replace *all* the treatment of patterns like the above ("/c/whatever" or "c:/whatever") with logic based on the "pwd -W" feature of MSYS. IOW, an MSYS path doesn't have to match none of the above patterns, so the only reliable way of getting a Windows-native path is with "pwd -W". Therefore, things line "msys_to_w32", "msys_lisppath_to_w32" should be replaced with the above criteria. -- Dani Moncayo