On Arch Linux, the XEmacs build breaks in src/gmalloc.c because extern

declarations conflict with system headers.  After patching this file,
the build then hangs at

 ./xemacs -nd -batch -l /var/obj/pkgsrc/editors/xemacs/work/xemacs-21.4.24/src/../lisp/update-elc.el

with the xemacs process spinning at 100% cpu.

Upstream states that the XEmacs malloc has not been updated in a long
time, and that it is safe to use the system malloc, so that's what
we'll do.
This commit is contained in:
hauke 2017-07-11 11:29:44 +00:00
parent 8f5fc6ea99
commit 88569f08c6

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile.common,v 1.24 2017/06/12 09:34:12 hauke Exp $
# $NetBSD: Makefile.common,v 1.25 2017/07/11 11:29:44 hauke Exp $
#
# used by editors/xemacs-nox11/Makefile
# used by editors/xemacs/Makefile
@ -43,6 +43,7 @@ CONFIGURE_ARGS+= --with-clash-detection
CONFIGURE_ARGS+= --with-mule=yes
CONFIGURE_ARGS+= --with-msw=no
CONFIGURE_ARGS+= --pdump
CONFIGURE_ARGS+= --with-system-malloc
CFLAGS+= -Dunix
# Use terminfo on NetBSD-6 and newer.