Subject: pkg/30529: [PATCH] XEmacs doesn't work in terminal mode on Darwin/OS X
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <idart@performancedesign.no>
List: pkgsrc-bugs
Date: 06/15/2005 12:10:00
>Number: 30529
>Category: pkg
>Synopsis: [PATCH] XEmacs doesn't work in terminal mode on Darwin/OS X
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jun 15 12:10:00 +0000 2005
>Originator: Idar Tollefsen
>Release: xemacs-21.4.17
>Organization:
Performance Design
>Environment:
Darwin fulcrum.local 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Power Macintosh powerpc
>Description:
If you start XEmacs in a terminal (as in xterm, OS X' Terminal, etc.)
the layout is garbled and unusable. Scrolling disrupts already
displayed text and it's impossible to follow the cursor or see where
in the text the cursor is.
>How-To-Repeat:
Install editors/xemacs on Darwin/OS X and then run it in a
terminal (e.g. xterm or OS X' Terminal).
If X is running, unset DISPLAY first.
>Fix:
Build XEmacs with ncurses.
Here's a patch against editors/xemacs/Makefile.common:
------------------------------------------------------
--- Makefile.common.orig Mon May 16 03:15:31 2005
+++ Makefile.common Wed Jun 15 12:57:35 2005
@@ -78,6 +78,10 @@
.include "../../databases/gdbm/buildlink3.mk"
.include "../../mk/ossaudio.buildlink3.mk"
+.if ${OPSYS} == "Darwin"
+.include "../../devel/ncurses/buildlink3.mk"
+.endif
+
INFOPATH= ${PREFIX}/info:${X11BASE}/info:/usr/local/info
@@ -86,7 +90,9 @@
CONFIGURE_ARGS+= --prefix=${PREFIX}
CONFIGURE_ARGS+= --with-clash-detection
CONFIGURE_ARGS+= --with-mule=yes
-.if ${OPSYS} != "Linux"
+.if ${OPSYS} == "Darwin"
+CONFIGURE_ARGS+= --with-ncurses
+.elif ${OPSYS} != "Linux"
CONFIGURE_ARGS+= --with-ncurses=no
.endif
CONFIGURE_ARGS+= --with-msw=no