all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Alexander Shukaev <haroogan@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>,
	eggert@cs.ucla.edu, emacs-devel <emacs-devel@gnu.org>,
	Yuri Khan <yuri.v.khan@gmail.com>
Subject: Re: Whitespace in `${srcdir}' during `configure'
Date: Mon, 10 Nov 2014 12:17:11 -0500	[thread overview]
Message-ID: <g8wq73q8ko.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <CAKu-7WzneMnjbHC5Q0ncN5_uk485aB5pN-+y=UP7ScmHPRFS=w@mail.gmail.com> (Alexander Shukaev's message of "Mon, 10 Nov 2014 17:03:12 +0100")

Alexander Shukaev wrote:

> It is relevant. Yesterday I've tried to build it in a directory
> "C:\Users\Haroogan\Projects\Bitbucket\Emacs for Windows", where name
> corresponds to the name of the project on Bitbucket. Yes, this case occurs
> not too often, but directories with spaces are generally allowed and
> therefore should be supported. It's an element of build robustness after
> all.

Just to be clear: building Emacs in a directory with spaces works fine.
(Tested with 24.4 tarfile just now on GNU/Linux.
There could be some MS Windows specific issue I don't know about.)

What doesn't work is passing an explicit srcdir containing spaces to
configure. This is something that configure itself rejects.
This would be an (odd) out-of-tree build.
IMO this is of very minor interest.

> My patch at least prevents:
>
> configure: line 3557: ...: No such file or directory
>
> And leads to the official error:
>
>    checking whether build environment is sane... configure: error:
>    unsafe srcdir value: ...

But line 3557, which in Emacs 24.4 is

  . $srcdir/nt/mingw-cfg.site

comes _after_ the check for an unsafe srcdir, so how is this sequence possible?

But yes, we could certainly quote that one srcdir if it somehow gets
accessed before the spaces check.

(I see that most of your patch is entirely stylistic, changing $var for
${var}.)

> and this limitation might be gone someday.

I think we should wait till that day arrives in autotools and make,
before worrying about it in Emacs.



  parent reply	other threads:[~2014-11-10 17:17 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-10  2:28 Whitespace in `${srcdir}' during `configure' Alexander Shukaev
2014-11-10  7:14 ` Glenn Morris
2014-11-10  7:20   ` Paul Eggert
2014-11-10  8:26     ` Glenn Morris
2014-11-10 14:28       ` Yuri Khan
2014-11-10 15:12         ` Eli Zaretskii
2014-11-10 16:03           ` Alexander Shukaev
2014-11-10 16:27             ` Eli Zaretskii
2014-11-10 17:17             ` Glenn Morris [this message]
2014-11-10 18:04               ` Alexander Shukaev
2014-11-10 19:25                 ` Glenn Morris
2014-11-10 19:39                   ` Glenn Morris
2014-11-17  2:24                     ` Glenn Morris
2014-11-10 10:47     ` Eli Zaretskii
2014-11-10  7:17 ` Paul Eggert
2014-11-10  7:24   ` Glenn Morris
2014-11-10  9:04     ` Andreas Schwab

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=g8wq73q8ko.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=haroogan@gmail.com \
    --cc=yuri.v.khan@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 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.