all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dani Moncayo <dmoncayo@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Emacs development discussions <emacs-devel@gnu.org>
Subject: Re: Building Emacs from a new MinGW environment
Date: Mon, 16 Sep 2013 21:25:29 +0200	[thread overview]
Message-ID: <CAH8Pv0grUDBRr4LLVTx8Ej-fgr2=03MkcEykcUjLPZW+f5KgzQ@mail.gmail.com> (raw)
In-Reply-To: <83txhkpszv.fsf@gnu.org>

>> Mmm, but I don't see what wrong with a path like
>> "/home/dani/whatever".  It is a perfectly legitimate MSYS path (like
>> "/c/msys/home/dani/whatever" or "c:/msys/home/dani/whatever"), isn't
>> it?
>
> It is, as long as it is used by MSYS programs.  But it is not
> legitimate when it is passed to MinGW Emacs, because Emacs will not
> find this directory.  Which is exactly what happens in your case.

I see.  But then, why doesn't the configure/build process make the
translation when needed?  That would remove this limitation.

I think I'm not doing anything extraordinary: just move to the build
directory with "cd emacs/build" (which is the easier way to specify
that path) and then invoking to the MSYS configure script with a
relative path (which again is the easier way of doing that).

If that "automatic translation" is difficult to implement, then I
think that Emacs at least should document the limitation (in
"nt/INSTALL") and also add some check to the configure script in order
to catch this use-case and stop the process with a helpful message.

>> Why that should be the culprit of the lack of expansion of "%emacs_dir%"?
>
> Expansion of %emacs_dir% is not the issue here, contrary to what I
> originally thought and wrote.  The issue is that temacs does not find
> the etc directory where it should, because temacs is a MinGW program,
> and doesn't know about the MSYS '/' magic.  That is why MSYS file
> names such as /home/dani/whatever should never end up in src/epaths.h.

Ok, but see below: the nicer solution would be IMO to automate this
translation of paths when necessary.

>> If you look at that code, you'll see that the "srcdir" variable can be
>> updated with either (a) the output of the "pwd" or (b) the contents of
>> the PWD variable.  But if I try those options in my MSYS bash, both
>> give me the same MSYS path "/home/dani/emacs/emacs.git".
>
> In my case, pwd gives an absolute /d/foo/bar file name.  It does that
> even if I chdir to a directory below the MSYS root, _provided_ that I
> use an absolute file name when I chdir (/usr is mounted on D:/usr/MSYS
> in my case):
>
>  $ cd /d/usr/MSYS && pwd
>  /d/usr/MSYS
>  $ cd /usr && pwd
>  /usr

Of course.  These are two _different_ paths which happen to refer to
the same directory.

>> Perhaps the key factor here is the fact that, in my case, the
>> directory holding the source code is inside the MSYS tree (under my
>> MSYS "home" directory).
>
> Are you saying that the previous builds, which worked, were not under
> the MSYS home directory?  If they were, then why the builds started
> failing?

No, in the previous build, both the source and build directories were
outside from the MSYS tree (under "c:\emacs").  That's why I didn't
experience this problem then.

>> I guess that in your case that directory is outside the MSYS tree,
>> so that its absolute path in MSYS has necessarily the form
>> "/X/some/dir" (where X is the letter of some windows drive).
>
> Yes, I build outside of the MSYS hierarchy.  But does this explain why
> your builds stopped working after whatever happened to your MinGW
> installation?

Yes.  As we have seen, the "%emacs_dir%" problem is related to the way
you reference the MSYS configure script: If you use a "long" path
("/c/msys/home/...) then the problem doesn't crop up, but if you
either (a) use a "short" path ("/home/...") or (b) use a relative path
_and_ the current directory is "short", then the problem does arise.

-- 
Dani Moncayo



  reply	other threads:[~2013-09-16 19:25 UTC|newest]

Thread overview: 70+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-26 18:38 Building Emacs from a new MinGW environment Dani Moncayo
2013-08-26 19:38 ` Eli Zaretskii
2013-08-26 20:08   ` Dani Moncayo
2013-09-13 14:31     ` Dani Moncayo
2013-09-14  9:32       ` Eli Zaretskii
2013-09-14  9:41         ` Dani Moncayo
2013-09-14 10:07           ` Eli Zaretskii
2013-09-14 14:25         ` Dani Moncayo
2013-09-14 14:50           ` Eli Zaretskii
2013-09-14 15:42             ` Dani Moncayo
2013-09-14 16:10               ` Eli Zaretskii
2013-09-14 16:34                 ` Dani Moncayo
2013-09-14 17:18                   ` Eli Zaretskii
2013-09-14 19:57                     ` Dani Moncayo
2013-09-14 20:56                       ` Eli Zaretskii
2013-09-14 21:19                         ` Dani Moncayo
2013-09-14 22:30                           ` Dani Moncayo
2013-09-15  9:35                             ` Eli Zaretskii
2013-09-15  9:28                           ` Eli Zaretskii
2013-09-16 16:48                             ` Dani Moncayo
2013-09-16 17:37                               ` Eli Zaretskii
2013-09-16 19:25                                 ` Dani Moncayo [this message]
2013-09-16 19:40                                   ` Eli Zaretskii
2013-09-16 19:44                                     ` Dani Moncayo
2013-09-16 20:19                                       ` Eli Zaretskii
2013-09-17  7:16                                         ` Eli Zaretskii
2013-09-17  8:17                                           ` Dani Moncayo
2013-09-17  8:30                                             ` Eli Zaretskii
2013-09-17 16:09                                               ` Dani Moncayo
2013-09-17 16:17                                                 ` Glenn Morris
2013-09-17 17:27                                                 ` Eli Zaretskii
2013-09-17 20:29                                                   ` Dani Moncayo
2013-09-18  7:46                                                     ` Eli Zaretskii
2013-09-18  9:32                                                       ` Dani Moncayo
2013-09-18 10:00                                                         ` Eli Zaretskii
2013-09-18 10:38                                                           ` Dani Moncayo
2013-09-18 11:21                                                             ` Eli Zaretskii
2013-09-18 12:39                                                               ` Dani Moncayo
2013-09-18 12:31                                                             ` Dani Moncayo
2013-09-18 13:14                                                               ` Eli Zaretskii
2013-09-18 16:51                                                                 ` Dani Moncayo
2013-09-18 19:20                                                                   ` Eli Zaretskii
2013-09-19 22:56                                                                     ` Dani Moncayo
2013-09-20  8:14                                                                       ` Eli Zaretskii
2013-09-20  9:29                                                                         ` Andy Moreton
2013-09-20 11:08                                                                           ` Dani Moncayo
2013-09-20 11:21                                                                             ` Eli Zaretskii
2013-09-20 12:22                                                                               ` Dani Moncayo
2013-09-20 12:30                                                                                 ` Dani Moncayo
2013-09-20 13:16                                                                                   ` Eli Zaretskii
2013-09-20 13:12                                                                                 ` Eli Zaretskii
2013-09-20 14:12                                                                             ` Eli Zaretskii
2013-09-20 15:05                                                                               ` Dani Moncayo
2013-09-18 10:46                                                           ` Andy Moreton
2013-09-18 11:24                                                             ` Eli Zaretskii
2013-09-18 12:44                                                               ` Sean Sieger
2013-09-18 13:16                                                                 ` Eli Zaretskii
2013-09-18 13:19                                                                   ` Sean Sieger
2013-09-18 14:33                                                                     ` Eli Zaretskii
2013-09-18 13:21                                                               ` Andy Moreton
2013-09-18 14:45                                                                 ` Eli Zaretskii
2013-09-18 20:51                                                                   ` Andy Moreton
2013-09-19  8:45                                                         ` Eli Zaretskii
2013-09-19  8:56                                                           ` Dani Moncayo
2013-09-19  9:38                                                             ` Eli Zaretskii
2013-09-19 10:04                                                               ` Dani Moncayo
2013-09-19 10:11                                                                 ` Eli Zaretskii
2013-11-09 14:47                                                                   ` Dani Moncayo
2013-11-10 16:32                                                                     ` Dani Moncayo
2013-11-12  2:56                                                                       ` Glenn Morris

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

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

  git send-email \
    --in-reply-to='CAH8Pv0grUDBRr4LLVTx8Ej-fgr2=03MkcEykcUjLPZW+f5KgzQ@mail.gmail.com' \
    --to=dmoncayo@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.