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 18:09:37 +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> <83d2o7q28r.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=089e0122976c2cf12704e6968c76 X-Trace: ger.gmane.org 1379434187 23021 80.91.229.3 (17 Sep 2013 16:09:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Sep 2013 16:09:47 +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 18:09:51 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 1VLxqY-0008WQ-Ct for ged-emacs-devel@m.gmane.org; Tue, 17 Sep 2013 18:09:50 +0200 Original-Received: from localhost ([::1]:42308 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLxqX-0007DN-Lx for ged-emacs-devel@m.gmane.org; Tue, 17 Sep 2013 12:09:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLxqU-0007BT-9m for emacs-devel@gnu.org; Tue, 17 Sep 2013 12:09:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLxqS-0005YR-TQ for emacs-devel@gnu.org; Tue, 17 Sep 2013 12:09:46 -0400 Original-Received: from mail-lb0-x234.google.com ([2a00:1450:4010:c04::234]:45257) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLxqN-0005W4-8y; Tue, 17 Sep 2013 12:09:40 -0400 Original-Received: by mail-lb0-f180.google.com with SMTP id q8so5652745lbi.11 for ; Tue, 17 Sep 2013 09:09: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=usy89+IRyitHa/oPj4oWho8gn6Izb1IcQkz5mXRJHIw=; b=TimaqdU3GjMHPqv8bP8fTJ4D5kz1/ZpCs1fkYHn5Z0amvAF7DB2YhW/61FU3P+ZNb4 +95cv35OxJsxxSZa/9p4nr1pcLD/MIrtLJAPvEyacLQOyCwtX74fI/Eh34uAPAd5yVVM MNGS7o4cKPh6lGwJaLvYcMPcHATNXCXRhbKjkJw2lZFeZEqu9MmcqCknK3tW9Vi6J4Jj 6MeuCewrmCRBs2px2EXa+YnnCDbHWsha+VhF9FBdovnLtpRKpiCWC4qCTVRMFk95dfzr 9p71euyhZ8nc+s72tuiJ1VPzf3Q+Jn7SMJRp6a+uPEj9w5eP5vc+UL/gOoZTf0yIJ87W etqg== X-Received: by 10.112.156.74 with SMTP id wc10mr1750042lbb.44.1379434178075; Tue, 17 Sep 2013 09:09:38 -0700 (PDT) Original-Received: by 10.114.176.231 with HTTP; Tue, 17 Sep 2013 09:09:37 -0700 (PDT) In-Reply-To: <83d2o7q28r.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::234 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:163390 Archived-At: --089e0122976c2cf12704e6968c76 Content-Type: text/plain; charset=ISO-8859-1 > OK, then we could put this line > > test "$MSYSTEM" = "MINGW32" && srcdir=`(cd "$srcdir"; pwd -W)` > > immediately below the 'esac' in the fragment I've shown. Does that do > the job for you? I've tried it but the bootstrap fails. I'm attaching the output of the corresponding "make bootstrap" . >> 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. > > I'm not sure I understand what you are suggesting, specifically. Can > you show a patch that works for you? I'm not yet familiar enough with the logic involved here. I've tried something but it didn't work either. But the general principle is that, it is conceptually wrong to do conversions of pathnames from MSYS format to native windows format based on pattern substitution, assuming that the MSYS paths will always be either in "/X/whatever" format or in "X:/whatever" format. Therefore, whenever we need to convert pathnames from any MSYS-compliant format to the windows-native counterpart, the only reliable way is using the "pwd -W" feature. > In any case, the problem with src/.gdbinit in the build tree still > needs to be solved; no amount of changes in the Makefile's can do > that, because that file is created by config.status. So we still need > something in configure.ac as well. FWIW, with the last change you suggested, the file "src/.gdbinit" in the build tree now contains this: source C:/msys/home/d.moncayo.melgar/emacs/emacs.git/src/.gdbinit > The advantage of my suggestion is that it solves this problem in a > single place, once and for all, while what you seem to suggest would > need multiple changes in many places. Why is that better? See above. Again: doing conversions to windows-native format like e.g. piping through "msys_to_w32" is conceptually wrong, I think, because not all MSYS-compliant paths will match the "/X/.." or "X:/..." patterns. -- Dani Moncayo --089e0122976c2cf12704e6968c76 Content-Type: application/zip; name="make-bootstrap.zip" Content-Disposition: attachment; filename="make-bootstrap.zip" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hlpba6hf1 UEsDBBQAAAAIAEuDMUNBqHsRuBIAAPdzAAASAAAAbWFrZS1ib290c3RyYXAubG9n7V17c9w0EP+b +xTiMQQC9uXSNIV2OhCuAQJNCUl4hg7R2bo7E9syln2X4/XZ2V1JflxC47x0DEOh9m8lWbta/byS bPl6wrycvTF83E/UQvWnMhH90E9kGvCF9BMRT3jeFwkPlD76k6joqzzoBzIdRxM/St9gL9kff7B3 WBCya1XD3n6b8bKQU8FDkbN3e1AB1MzwD+Yl/EwwNpKyUEXOMy+IBU97mHoyePmY7aaFyKN0wsIo F0Eh8wU7faXiURnFIdq+1ssT5o1ZoU0R54IFMhds3afTT2+uA5Qsjkbf74u0HAx8jkI897m50vf7 ogj6z74amoTayrpOQt7mlv/Af7iBKaYs2SFHv/hTkzCJ5YjHyp8C8lTBk0xngBW5UHAsbIqpc92H /2odVd35mIUiU7Zsxosp1qq7qgakgtHRmw4MkHF4nkBrexE6RhXUzL4/CUdRGhVPWDEVKfupx1gy a6Q3oK/4TDyhInUVN2GWrfANo5Rac7kiEStRGVRntgwfR1h2HNXMeS747IbEAYqCo4gWFUXhGKUF /BX5HXHUqjBEbTNxJyiiGS8EMJTthOEBTy08EjGi4XSCiQbaxFyYa56JGLIthGyNgL1ygXA3z2VO YPY5T0NEn0Yp6bHYXLSXKkw10CZik1NO+LkMjNIDqQo8H4pAJhmiI1Hs7H5t0Kf5bwZhhQaaCr8H K3eUkgEI3z+X8qwShnkF0f5K2Af3WyFK1a8l1Gg8iVnjKBa3JYPtIWJEPIcOgph1j4wgFWtVWJA2 HmGwWmqaEY93Pju6bStJKzWRGnjPTURVOmz8xt54A8cU3ZI6EYpM0hJa3cit0mrn1BfosI4BLzgL Swh6PI6BkxAKK+QVTOR5KiGNzpTCIKIGUToGyUKdMRGFzApINYgSeT7xUpmmZRxDTlOk7OC990Ix xkBsISXPeZ56MvVK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