summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGeoffrey Oxberry <goxberry@gmail.com>2018-01-10 07:44:35 -0800
committerAdam J. Stewart <ajstewart426@gmail.com>2018-01-10 09:44:35 -0600
commit77a29f09f99ba4f0e6f628404bf03876602e27ce (patch)
treee63fda78b2452ac44f4e04cfbdd7595805479791 /var
parentac5b5724c6d42f19814dd97c2a3936d90f2a1c24 (diff)
downloadspack-77a29f09f99ba4f0e6f628404bf03876602e27ce.tar.gz
spack-77a29f09f99ba4f0e6f628404bf03876602e27ce.tar.bz2
spack-77a29f09f99ba4f0e6f628404bf03876602e27ce.tar.xz
spack-77a29f09f99ba4f0e6f628404bf03876602e27ce.zip
emacs: on darwin, do not build Cocoa app (#6882)
Building emacs on darwin throws an error when trying to build an Emacs app in the nextstep/Emacs.app path of the build tree. For now, disable building this app. It's possible to enable building the app also; Homebrew offers options to this effect, and also adds Mac-specific options for starting the emacs daemon. However, for the sake of simplicity and getting a workable up-to-date emacs installation on my machine as quickly as possible, this commit focuses on a minimal viable modification.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/emacs/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/emacs/package.py b/var/spack/repos/builtin/packages/emacs/package.py
index 21b6b1b17b..e654e9c9c7 100644
--- a/var/spack/repos/builtin/packages/emacs/package.py
+++ b/var/spack/repos/builtin/packages/emacs/package.py
@@ -24,6 +24,8 @@
##############################################################################
from spack import *
+import sys
+
class Emacs(AutotoolsPackage):
"""The Emacs programmable text editor."""
@@ -72,4 +74,9 @@ class Emacs(AutotoolsPackage):
else:
args = ['--without-x']
+ # On OS X/macOS, do not build "nextstep/Emacs.app", because
+ # doing so throws an error at build-time
+ if sys.platform == 'darwin':
+ args.append('--without-ns')
+
return args