unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Alexander Shukaev <haroogan@gmail.com>
Cc: 18955@debbugs.gnu.org
Subject: bug#18955: Makefile:382: recipe for target 'src' failed
Date: Sun, 09 Nov 2014 21:47:25 +0200	[thread overview]
Message-ID: <83vbmonoky.fsf@gnu.org> (raw)
In-Reply-To: <CAKu-7Wy=8kXm-fbAcFPr3qhaaN0Q6k5tHWaYrdDhLA3SmWjYnw@mail.gmail.com>

> Date: Sun, 9 Nov 2014 18:42:06 +0100
> From: Alexander Shukaev <haroogan@gmail.com>
> Cc: 18955@debbugs.gnu.org, Glenn Morris <rgm@gnu.org>
> 
> To be honest, from my point of view, workarounds like `unmsys--file-name' all
> over the place are not a good idea. Look at the path passed:
> 
>     /C/Users/Haroogan/Projects/GitHub/MINGW-packages/mingw-w64-emacs/src/emacs/admin/unidata/IVD_Sequences.txt
>    
> 
> I get it that on Windows, Emacs currently gets confused and as a last resort
> tries to prepend "c:", hence:
> 
>     Opening input file: no such file or directory,
>     c:/C/Users/Haroogan/Projects/GitHub/MINGW-packages/mingw-w64-emacs/src/emacs/admin/unidata/IVD_Sequences.txt

It's not Emacs who becomes confused, it's MSYS.  When MSYS invokes a
native Windows program, it converts /c/foo/bar file names into the
Windows C:\foo\bar form, because otherwise native Windows programs
will not be able to access such files.  There's some logic in MSYS
that is used to decide when to do this conversion, and that logic
fails when the /c/foo/bar file name is not at the beginning of the
command-line argument, as in this case.  That's why we use
unmsys--file-name: to paper over these failures of MSYS.

> I believe it's better to teach it to treat "/C" as "C:" by default, i.e. to
> accept both variants because there is no ambiguity here and, as a result, it
> will support both Windows and MSYS(2)/Cygwin paths out of the box.

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.

IOW, the MSYS build process needs a few ugly tweaks to make it work.
I consider those ugly tweaks a necessary evil, but making ugly hacks
in Emacs per se just to support these tweaks sounds excessive and
unjustified, since the ratio of the number of people who build Emacs
to the number of those who just use it is quite small.  Letting those
many suffer inconveniences and limitations so that the few could live
easier sounds wrong to me.





  reply	other threads:[~2014-11-09 19:47 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-05 15:52 bug#18955: Makefile:382: recipe for target 'src' failed Alexander Shukaev
2014-11-05 16:55 ` Glenn Morris
2014-11-05 17:03   ` Alexander Shukaev
2014-11-05 17:04     ` Glenn Morris
     [not found]       ` <CAKu-7WzwmwmqCswS+b32zdY6DLZb7G=uLu-8FZjCQgVUvBwNRQ@mail.gmail.com>
2014-11-05 17:33         ` bug#18955: Fwd: " Alexander Shukaev
2014-11-05 17:39           ` Alexander Shukaev
2014-11-05 18:31             ` Glenn Morris
2014-11-05 22:41               ` Alexander Shukaev
2014-11-06  3:48                 ` Eli Zaretskii
2014-11-06 13:17                   ` Alexander Shukaev
2014-11-06 16:30                     ` Eli Zaretskii
2014-11-06 18:48                       ` Alexander Shukaev
2014-11-06 19:21                         ` Eli Zaretskii
2014-11-06 20:56                           ` Alexander Shukaev
2014-11-07 15:02                             ` Alexander Shukaev
2014-11-07 15:21                               ` Eli Zaretskii
2014-11-07 15:34                                 ` Alexander Shukaev
2014-11-07 15:36                                   ` Alexander Shukaev
2014-11-07 15:50                                   ` Eli Zaretskii
2014-11-07 15:56                                     ` Alexander Shukaev
2014-11-07 15:57                                       ` Alexander Shukaev
2014-11-07 19:53                                         ` Eli Zaretskii
2014-11-07 19:52                                       ` Eli Zaretskii
2014-11-09 17:30                                       ` Eli Zaretskii
2014-11-09 17:42                                         ` Alexander Shukaev
2014-11-09 19:47                                           ` Eli Zaretskii [this message]
2014-11-09 20:10                                             ` Dani Moncayo
2014-11-09 20:15                                               ` Eli Zaretskii
2014-11-09 20:25                                                 ` Alexander Shukaev
2014-11-09 20:33                                                   ` Eli Zaretskii
2014-11-09 20:43                                                     ` Dani Moncayo
2014-11-09 20:46                                                     ` Eli Zaretskii
2014-11-09 20:13                                             ` Alexander Shukaev
2014-11-09 20:28                                               ` Eli Zaretskii
2014-11-09 20:38                                                 ` Alexander Shukaev
2014-11-09 20:43                                                   ` Alexander Shukaev
2014-11-09 20:49                                                     ` Eli Zaretskii
2014-11-09 22:43                                                       ` Glenn Morris
2014-11-10  7:17                                                         ` Glenn Morris
2014-11-09 20:47                                                   ` Eli Zaretskii
2014-11-05 19:00           ` bug#18955: Fwd: " Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83vbmonoky.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=18955@debbugs.gnu.org \
    --cc=haroogan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).