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: Bootstrap failure on MS-Windows Date: Wed, 6 Nov 2013 16:38:26 +0100 Message-ID: References: <134n7uab5v.fsf@fencepost.gnu.org> <83r4au7li4.fsf@gnu.org> <83mwli7gwq.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 1383752311 771 80.91.229.3 (6 Nov 2013 15:38:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Nov 2013 15:38:31 +0000 (UTC) To: Emacs development discussions Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 06 16:38:37 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 1Ve5Bk-0002bN-7l for ged-emacs-devel@m.gmane.org; Wed, 06 Nov 2013 16:38:36 +0100 Original-Received: from localhost ([::1]:34543 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ve5Bj-0002CE-Sd for ged-emacs-devel@m.gmane.org; Wed, 06 Nov 2013 10:38:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ve5Bg-00029x-Fj for emacs-devel@gnu.org; Wed, 06 Nov 2013 10:38:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ve5Bb-0002Eg-IO for emacs-devel@gnu.org; Wed, 06 Nov 2013 10:38:32 -0500 Original-Received: from mail-la0-x22c.google.com ([2a00:1450:4010:c03::22c]:64555) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ve5Bb-0002EM-B3 for emacs-devel@gnu.org; Wed, 06 Nov 2013 10:38:27 -0500 Original-Received: by mail-la0-f44.google.com with SMTP id er20so3499814lab.31 for ; Wed, 06 Nov 2013 07:38:26 -0800 (PST) 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 :content-type; bh=R8impEm2u32tqrvOC7upkjLeJH8S8JrcVDuob2ilFWg=; b=ViCHJ5kKvjbU768DkMargirYUgjsmsH+ec/JUENh+dXtnYKIgXo5Lc1f8sx/d9y5fd oRsDEPT7hDy3BvW8U2X0gX1H2ULS5WYepYEQR5WzmE4y3V5dQnVo+rbyof2gi882KBRf iFVcUMvr5WmHr4in1boYWrAksXeSSkvdPBikwmqWTfkEnEu0RaOxeWyC9/4DbiL8bWdk 7VLKQtcj6HBKIUNxiGsLaEz4/xAHEwA92VlvfHhhJdhGeOSIELeOcN+1FzHXSsdM/1X0 qsnlws9KbGk59v4LMJ1tJLCOlp/fQy+HvZS+UiuXwAYAXB/OntjMtBOzEVqUSHaxnxY4 Ydgg== X-Received: by 10.152.21.133 with SMTP id v5mr2835878lae.14.1383752306182; Wed, 06 Nov 2013 07:38:26 -0800 (PST) Original-Received: by 10.114.176.231 with HTTP; Wed, 6 Nov 2013 07:38:26 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22c 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:165006 Archived-At: > So this is the final patch that has worked for me: I want to suggest the following simplification/improvement. It is tested on a real bootstrap. Explanation: * The ouput of "pwd -W" is in windows-native format (c:/foo/bar), and we are converting it to MSYS-format (/c/foo/bar) and then converting it back to windows-native format. That double conversion is obviously pointless. * "${srcdir}" should expand to an existing directory. If somehow it expands to anything else, it is better to error out, because something is going wrong. So I've chained the commands with "&&" instead of ";". diff --git a/Makefile.in b/Makefile.in index 984dcea..3de8209 100644 --- a/Makefile.in +++ b/Makefile.in @@ -351,7 +351,7 @@ msys_sed_sh_escape=sed -e 's/[];$$*.^[]/\\\\&/g' # the data directory. "pwd -W" produces Windows-style 'd:/foo/bar' # absolute directory names, so we use it here to countermand that lossage. epaths-force-w32: FRC - @(w32srcdir=`cd "${srcdir}"; pwd -W | sed -e 's,^\([A-Za-z]\):,/\1,' | ${msys_to_w32}` ; \ + @(w32srcdir=`cd "${srcdir}" && pwd -W` ; \ prefixpattern=`echo '${prefix}' | ${msys_to_w32} | ${msys_sed_sh_escape}` ; \ locallisppath=`echo '${locallisppath}' | ${msys_lisppath_to_w32} | ${msys_prefix_subst}` ; \ sed < ${srcdir}/nt/epaths.nt > epaths.h.$$$$ \ -- Dani Moncayo