NetBSD Problem Report #30529

From www@netbsd.org  Wed Jun 15 12:09:59 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 135C563B116; Wed, 15 Jun 2005 12:09:59 +0000 (UTC)
Message-Id: <20050615120959.135C563B116@narn.netbsd.org>
Date: Wed, 15 Jun 2005 12:09:59 +0000 (UTC)
From: idart@performancedesign.no
Reply-To: idart@performancedesign.no
To: gnats-bugs@netbsd.org
Subject: [PATCH] XEmacs doesn't work in terminal mode on Darwin/OS X
X-Send-Pr-Version: www-1.0

>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:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 15 12:10:00 +0000 2005
>Closed-Date:    Thu Nov 04 05:24:06 +0000 2010
>Last-Modified:  Thu Nov 04 05:24:06 +0000 2010
>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

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 25 Oct 2010 03:57:09 +0000
State-Changed-Why:
Is this still required with recent versions of MacOS?


State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 04 Nov 2010 05:24:06 +0000
State-Changed-Why:
macos 10.3 is no longer supported, and submitter's email is bouncing.
if anyone feels like checking up on this issue on recent macos and finds
that the patch is still needed, write back and I'll reopen the PR.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.