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: Building Emacs from a new MinGW environment Date: Tue, 17 Sep 2013 10:16:26 +0300 Message-ID: <83k3ifq5o5.fsf@gnu.org> 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1379402210 32046 80.91.229.3 (17 Sep 2013 07:16:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Sep 2013 07:16:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: dmoncayo@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 17 09:16:53 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 1VLpWn-0000Te-Ag for ged-emacs-devel@m.gmane.org; Tue, 17 Sep 2013 09:16:53 +0200 Original-Received: from localhost ([::1]:38509 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLpWm-0001kq-Pf for ged-emacs-devel@m.gmane.org; Tue, 17 Sep 2013 03:16:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLpWe-0001di-PI for emacs-devel@gnu.org; Tue, 17 Sep 2013 03:16:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLpWZ-0000em-94 for emacs-devel@gnu.org; Tue, 17 Sep 2013 03:16:44 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:51481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLpWZ-0000ea-14 for emacs-devel@gnu.org; Tue, 17 Sep 2013 03:16:39 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MT900600DIRSU00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Tue, 17 Sep 2013 10:16:30 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MT9006WJDJG52C0@a-mtaout22.012.net.il>; Tue, 17 Sep 2013 10:16:28 +0300 (IDT) In-reply-to: <83ob7splia.fsf@gnu.org> 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:163379 Archived-At: > Date: Mon, 16 Sep 2013 23:19:41 +0300 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org > > Does it work to replace this line in the top-level Makefile.in > > @(w32srcdir=`echo "${srcdir}" | ${msys_to_w32}` ; \ > > with this: > > @(w32srcdir=`(cd "${srcdir}" && pwd -W) | ${msys_to_w32}` ; \ Actually, a better fix might be in configure.ac, here: #### Make srcdir absolute, if it isn't already. It's important to #### avoid running the file name through pwd unnecessarily, since pwd can #### give you automounter prefixes, which can go away. We do all this #### so Emacs can find its files when run uninstalled. ## Make sure CDPATH doesn't affect cd (in case PWD is relative). unset CDPATH case "${srcdir}" in [[\\/]]* | ?:[[\\/]]*) ;; . ) ## We may be able to use the $PWD environment variable to make this ## absolute. But sometimes PWD is inaccurate. ## Note: we used to use $PWD at the end instead of `pwd`, ## but that tested only for a well-formed and valid PWD, ## it did not object when PWD was well-formed and valid but just wrong. if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ; then srcdir="$PWD" else srcdir=`(cd "$srcdir"; pwd)` fi ;; * ) srcdir=`(cd "$srcdir"; pwd)` ;; esac 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).