all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Glenn Morris <rgm@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: master 7555f93: Remove src/macuvs.h from Git repository
Date: Fri, 21 Jun 2019 16:33:19 -0700	[thread overview]
Message-ID: <b4a794f9-9bfe-e00f-4c1c-4ba02e58f30a@cs.ucla.edu> (raw)
In-Reply-To: <a7o92qilu4.fsf@fencepost.gnu.org>

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

On 6/21/19 4:02 PM, Glenn Morris wrote:
> src/macuvs.h is generated by an Emacs lisp script.
> So won't this cause a bootstrap failure on platforms where the emacs
> excutable requires src/macuvs.h in order to build; ie Mac OS?

Ouch, thanks, I didn't think of that. I installed the attached patch to 
work around the immediate problem. We could do something fancier to 
better automate a headlesss-then-headful build process, though that 
would require someone who can easily test on macOS. Alternatively, I 
could bring back macuvs.h even though it's ugly to commit that generated 
file into Git.


[-- Attachment #2: 0001-Fix-default-build-from-Git-on-macOS.patch --]
[-- Type: text/x-patch, Size: 1041 bytes --]

From 9b170060ba80c62a3a38e39d0c9692bdddd6ae47 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Fri, 21 Jun 2019 16:22:26 -0700
Subject: [PATCH] Fix default build-from-Git on macOS

* configure.ac (NS_IMPL_COCOA): Do not default to "yes" if
src/macuvs.h is absent, which is possible in a build from Git.
---
 configure.ac | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index be5c4e35b1..c1c4970002 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1960,7 +1960,10 @@ AC_DEFUN
 GNU_OBJC_CFLAGS=
 LIBS_GNUSTEP=
 if test "${with_ns}" != no; then
-  if test "${opsys}" = darwin; then
+  # macfont.o requires macuvs.h which is absent in the repository,
+  # so avoid NS_IMPL_COCOA if macuvs.h is absent.
+  # Even a headless Emacs can build macuvs.h, so this lets you bootstrap.
+  if test "${opsys}" = darwin && test -f "$srcdir/src/macuvs.h"; then
      NS_IMPL_COCOA=yes
      ns_appdir=`pwd`/nextstep/Emacs.app
      ns_appbindir=${ns_appdir}/Contents/MacOS
-- 
2.21.0


  reply	other threads:[~2019-06-21 23:33 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20190621220118.16051.70712@vcs0.savannah.gnu.org>
     [not found] ` <20190621220121.8B68D209DE@vcs0.savannah.gnu.org>
2019-06-21 23:02   ` master 7555f93: Remove src/macuvs.h from Git repository Glenn Morris
2019-06-21 23:33     ` Paul Eggert [this message]
2019-06-22  0:21       ` Glenn Morris
2019-06-22  0:25         ` Paul Eggert
2019-06-22  7:35           ` Eli Zaretskii
2019-06-22  8:23             ` martin rudalics
2019-06-22  9:34               ` Eli Zaretskii
2019-06-22 10:20             ` Robert Pluim
2019-06-22 18:50               ` Paul Eggert
2019-06-22 19:21               ` Alan Third
2019-06-22 19:27                 ` Paul Eggert
2019-06-22  8:56           ` Lars Ingebrigtsen
2019-06-22 20:56             ` Glenn Morris
2019-06-23  4:08     ` YAMAMOTO Mitsuharu

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=b4a794f9-9bfe-e00f-4c1c-4ba02e58f30a@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.org \
    --cc=rgm@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.