[MacPorts] #30268: emacs-app @23.3 fails to build on Lion ("unexec: cannot write section __data")
MacPorts
noreply at macports.org
Sat Jul 23 02:55:12 PDT 2011
#30268: emacs-app @23.3 fails to build on Lion ("unexec: cannot write section
__data")
--------------------------------+-------------------------------------------
Reporter: jmdeldin@… | Owner: css@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.2
Keywords: lion xcode4 | Port: emacs-app
--------------------------------+-------------------------------------------
Comment(by jmdeldin@…):
I've got it working! Bob Halley graciously sent me his upstream patch, so
here's what you need to do to fix the build error and title bar problem:
1. Update your Portfile with this patch:
{{{
Index: Portfile
===================================================================
--- Portfile (revision 81016)
+++ Portfile (working copy)
@@ -33,8 +33,10 @@
use_parallel_build yes
configure.args --with-ns --without-x --without-dbus
+configure.cflags-append -fno-pie -O2
+configure.ldflags-append -fno-pie
-patchfiles patch-src_unexmacosx.c.diff
+patchfiles patch-src_unexmacosx.c.diff patch-fix-title-bar.diff
variant fullscreen description {Add fullscreen patch from
http://gist.github.com/291150 as mentioned in http://www.sanityinc.com
/full-screen-support-for-cocoa-emacs-on-osx} {
patchfiles-append patch-fullscreen.diff
}}}
2. Add this patch to dports/aqua/emacs-app/files:
{{{
--- src/ChangeLog.orig 2011-07-23 03:35:36.000000000 -0600
+++ src/ChangeLog 2011-07-23 03:35:47.000000000 -0600
@@ -1,3 +1,9 @@
+2011-07-11 Bob Halley <rthalley at gmail.com>
+
+ * nsterm.m (initFrameFromEmacs): In OS X 10.7, a title bar
+ is no longer implied by NSResizableWindowMask and must be
+ requested with NSTitledWindowMask.
+
2011-03-07 Chong Yidong <cyd at stupidchicken.com>
* Version 23.3 released.
--- src/nsterm.m.orig 2011-07-23 03:32:56.000000000 -0600
+++ src/nsterm.m 2011-07-23 03:34:06.000000000 -0600
@@ -5106,7 +5106,8 @@
win = [[EmacsWindow alloc]
initWithContentRect: r
- styleMask: (NSResizableWindowMask |
+ styleMask: (NSTitledWindowMask |
+ NSResizableWindowMask |
NSMiniaturizableWindowMask |
NSClosableWindowMask)
backing: NSBackingStoreBuffered
}}}
3. port install emacs-app
This patch should hit upstream sometime, at which point the Portfile edits
and title-bar patch can be removed.
--
Ticket URL: <https://trac.macports.org/ticket/30268#comment:8>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list