From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.bugs Subject: bug#18955: Makefile:382: recipe for target 'src' failed Date: Sun, 9 Nov 2014 21:13:17 +0100 Message-ID: References: <0d4mudlgty.fsf@fencepost.gnu.org> <83ppd1t2eh.fsf@gnu.org> <83fvdwthpx.fsf@gnu.org> <8361est9ri.fsf@gnu.org> <838ujnrq7v.fsf@gnu.org> <83389vrow2.fsf@gnu.org> <83wq74nuwq.fsf@gnu.org> <83vbmonoky.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b3a8b1e4126ea050772ad74 X-Trace: ger.gmane.org 1415564066 6449 80.91.229.3 (9 Nov 2014 20:14:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Nov 2014 20:14:26 +0000 (UTC) Cc: 18955@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 09 21:14:19 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1XnYsM-0007ez-8r for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Nov 2014 21:14:18 +0100 Original-Received: from localhost ([::1]:39874 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnYsL-0004QH-AQ for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Nov 2014 15:14:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnYsC-0004QB-Jl for bug-gnu-emacs@gnu.org; Sun, 09 Nov 2014 15:14:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XnYs6-0000ZH-Ei for bug-gnu-emacs@gnu.org; Sun, 09 Nov 2014 15:14:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnYs6-0000ZD-CS for bug-gnu-emacs@gnu.org; Sun, 09 Nov 2014 15:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XnYs6-0008E6-6d for bug-gnu-emacs@gnu.org; Sun, 09 Nov 2014 15:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alexander Shukaev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Nov 2014 20:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18955 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18955-submit@debbugs.gnu.org id=B18955.141556400231553 (code B ref 18955); Sun, 09 Nov 2014 20:14:02 +0000 Original-Received: (at 18955) by debbugs.gnu.org; 9 Nov 2014 20:13:22 +0000 Original-Received: from localhost ([127.0.0.1]:55130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnYrR-0008Cr-Fx for submit@debbugs.gnu.org; Sun, 09 Nov 2014 15:13:21 -0500 Original-Received: from mail-la0-f50.google.com ([209.85.215.50]:53894) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnYrO-0008Cg-Rz for 18955@debbugs.gnu.org; Sun, 09 Nov 2014 15:13:19 -0500 Original-Received: by mail-la0-f50.google.com with SMTP id hs14so460967lab.9 for <18955@debbugs.gnu.org>; Sun, 09 Nov 2014 12:13:18 -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 :cc:content-type; bh=9CTeq+tyA7OphKrZ0LaUT7wR0DDgptW2KRqHE9H/5Qs=; b=KUTQrzkFktVV5g+wCqyZzBYkyk4jGvPM9/ryyxyzuv86Cuvoa1sbWEN2cTqOfR4Vws oxh0/HUsVnvLz6g1gPrgfiwvKNGQ6RrjAOhe7Xv0QY727tlGnR7dnd3LIri00dgokKzy yfFrbGSBez+iJwTMJ0iTIz3V/KM1Tc5nvKg07WIh+toeaSNMCykDbvsFzw4VyGp2veMc 38CaFIBkydat13WTEjl21xLjmMvahOHCUXY2NcH1fuRvAlnHjpTaspz783R54dOukn+7 fUclVuJ392/NHHaXJIph06lqjKvP4GKMgu8tRbeM12+WB327p4/r5BeOPXJ2vK3Co3fy 6UAg== X-Received: by 10.112.146.37 with SMTP id sz5mr25116602lbb.27.1415563997945; Sun, 09 Nov 2014 12:13:17 -0800 (PST) Original-Received: by 10.112.202.106 with HTTP; Sun, 9 Nov 2014 12:13:17 -0800 (PST) In-Reply-To: <83vbmonoky.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:95795 --047d7b3a8b1e4126ea050772ad74 Content-Type: text/plain; charset=UTF-8 > > To do this, we'd have to drag this support all the way down to the > lowest level where we pass file names to the OS APIs. And then we'd > have to disallow root directories of one letter, like C:/c, which are > entirely legitimate. All that just to handle the few commands during > the build process that need it. I find this solution even more ugly > than the unmsys--file-name gork. I'm afraid I don't understand your point here. To reiterate, the current problem is that Emacs does not know how to treat "/C" in the beginning, therefore it assumes that the path given does not have a drive letter, so it add "c:" in front of the given path as a wild guess. The only thing that I propose to change in that logic is to allow paths which contain a slash + a single letter in the beginning, e.g. "/C", so that when Emacs sees it, it simply converts that to "C:" and passes further to old logic of path manipulation. In other words, nothing has to be changed to the lowest level as you say. My change involves one `if' statement or so in the very beginning of the path processing. Furthermore, I don't get it why you would have to disallow "C:/c"? If somebody passes "C:/c" then it's perfectly valid Windows path. If somebody passes "/C/c", then according my proposal it will be converted to "C:/c" and then processed further. --047d7b3a8b1e4126ea050772ad74 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
To do this, we'd have to drag this su= pport all the way down to the
lowest level where we pass file names to t= he OS APIs.=C2=A0 And then we'd
have to disallow root directories of= one letter, like C:/c, which are
entirely legitimate.=C2=A0 All that ju= st to handle the few commands during
the build process that need it.=C2= =A0 I find this solution even more ugly
than the unmsys--file-name gork.=

I'm afraid I don't understand your= point here. To reiterate, the current problem is that Emacs does not know = how to treat "/C" in the beginning, therefore it assumes that the= path given does not have a drive letter, so it add "c:" in front= of the given path as a wild guess. The only thing that I propose to change= in that logic is to allow paths which contain a slash + a single letter in= the beginning, e.g. "/C", so that when Emacs sees it, it simply = converts that to "C:" and passes further to old logic of path man= ipulation. In other words, nothing has to be changed to the lowest level as= you say. My change involves one `if' statement or so in the very begin= ning of the path processing. Furthermore, I don't get it why you would = have to disallow "C:/c"? If somebody passes "C:/c" then= it's perfectly valid Windows path. If somebody passes "/C/c"= , then according my proposal it will be converted to "C:/c" and t= hen processed further.

--047d7b3a8b1e4126ea050772ad74--