all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: 36332@debbugs.gnu.org
Subject: bug#36332: non-GUI build broken on macOS
Date: Sat, 22 Jun 2019 21:19:43 +0100	[thread overview]
Message-ID: <20190622201943.GD57900@breton.holly.idiocy.org> (raw)
In-Reply-To: <40c3dd4f-3866-044e-0607-92bc493b0a9c@cs.ucla.edu>

[-- Attachment #1: Type: text/plain, Size: 1141 bytes --]

On Sat, Jun 22, 2019 at 12:44:40PM -0700, Paul Eggert wrote:
> Alan Third wrote:
> > It is. What doesn’t work is defining HAVE_NS but not setting the
> > requirements for an NS build.
> > 
> > './configure --without-ns' works fine as is.
> 
> OK, thanks, in that case I guess that the problem is only that after one
> does 'make extraclean' then one cannot build with the current master without
> manually specifying './configure --without-ns' at some point. This makes the
> bug less urgent to fix.

I haven’t been following the clean build chat on emacs-devel, does
make extraclean delete macuvs.h?

We could try returning a useful message at configure time instead of
just failing during the build. Do you think the attached patch is OK?

I’d rather not just build headless as the usual build process on the
Mac is to do ’make; make install’, which just builds the NS app
directory. If we were to configure headless then run that same command
it would attempt to install a headless Emacs to /usr or somewhere. It
would probably fail due to permissions, but I’d prefer to avoid any
confusion in the first place.
-- 
Alan Third

[-- Attachment #2: 0001-Provide-a-useful-message-if-macuvs.h-doesn-t-exist-b.patch --]
[-- Type: text/plain, Size: 1220 bytes --]

From 8ece63cd67d158b0349dda83c303e1f02a947f40 Mon Sep 17 00:00:00 2001
From: Alan Third <alan@idiocy.org>
Date: Sat, 22 Jun 2019 21:13:50 +0100
Subject: [PATCH] Provide a useful message if macuvs.h doesn't exist
 (bug#36332)

* configure.ac (with-ns): Error out if attempting to configure with
Cocoa but macuvs.h doesn't exist.
---
 configure.ac | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 0507f58054..d7efe467fa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1963,7 +1963,12 @@ AC_DEFUN
   # macfont.o requires macuvs.h which is absent after 'make extraclean',
   # so avoid NS_IMPL_COCOA if macuvs.h is absent.
   # Even a headless Emacs can build macuvs.h, so this should let you bootstrap.
-  if test "${opsys}" = darwin && test -f "$srcdir/src/macuvs.h"; then
+  if test "${opsys}" = darwin; then
+     if test \! -f "$srcdir/src/macuvs.h"; then
+       AC_MSG_ERROR([Cocoa build requested, however macuvs.h is missing.
+Rerun configure with the option '--without-ns' and run make before
+configuring '--with-ns'.])
+     fi
      NS_IMPL_COCOA=yes
      ns_appdir=`pwd`/nextstep/Emacs.app
      ns_appbindir=${ns_appdir}/Contents/MacOS
-- 
2.21.0


  reply	other threads:[~2019-06-22 20:19 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-22 18:46 bug#36332: non-GUI build broken on macOS Paul Eggert
2019-06-22 19:38 ` Alan Third
2019-06-22 19:44   ` Paul Eggert
2019-06-22 20:19     ` Alan Third [this message]
2019-06-22 20:25       ` Paul Eggert
2019-06-22 20:37         ` Alan Third
2019-06-22 20:50       ` Glenn Morris
2019-06-22 20:55         ` Lars Ingebrigtsen
2019-06-22 21:10           ` Alan Third
2019-06-23  2:36           ` Eli Zaretskii
2019-06-23 14:11             ` Robert Pluim
2019-06-25  1:43             ` Glenn Morris
2019-06-25 11:24               ` Lars Ingebrigtsen
2019-06-27  9:45                 ` Paul Eggert

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=20190622201943.GD57900@breton.holly.idiocy.org \
    --to=alan@idiocy.org \
    --cc=36332@debbugs.gnu.org \
    --cc=eggert@cs.ucla.edu \
    /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.