From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Han Boetes Newsgroups: gmane.emacs.devel Subject: How I build emacs-cvs on OpenBSD Date: Mon, 7 Jul 2003 12:32:35 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20030707103257.GC30853@boetes.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1057601599 9986 80.91.224.249 (7 Jul 2003 18:13:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 7 Jul 2003 18:13:19 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Jul 07 20:13:18 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19ZaUI-0002av-00 for ; Mon, 07 Jul 2003 20:13:18 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19ZaeG-0000Hl-00 for ; Mon, 07 Jul 2003 20:23:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19ZaAT-0001Oi-QB for emacs-devel@quimby.gnus.org; Mon, 07 Jul 2003 13:52:49 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19Za9R-0001Hv-VG for emacs-devel@gnu.org; Mon, 07 Jul 2003 13:51:45 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19ZYgl-0000x7-NV for emacs-devel@gnu.org; Mon, 07 Jul 2003 12:18:05 -0400 Original-Received: from cc15467-a.groni1.gr.home.nl ([217.120.147.78]) by monty-python.gnu.org with smtp (Exim 4.20) id 19ZYOi-000862-VV for emacs-devel@gnu.org; Mon, 07 Jul 2003 11:59:25 -0400 Original-Received: (qmail 19868 invoked by uid 1000); 7 Jul 2003 10:32:57 -0000 Original-To: emacs-devel@gnu.org Content-Disposition: inline User-Agent: Mutt/1.4.1i X-GPG-Key: http://www.xs4all.nl/~hanb/keys/Han_pubkey.gpg X-GPG-Fingerprint: EB66 D194 AB3F 4C57 49EF 6795 44AE E0D8 3F38 7301 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15462 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15462 Hi, I recently became Maintainer for the OpenBSD port for emacs. I also like testing emacs from cvs as lot. I made a little script for this. I will add some comments to it and I hope you can add the missing bits to emacs to make things easier for other people. Here it is: opties='--with-gtk' export LOCALBASE='/usr/local' export CFLAGS='-pipe -O2 -g' export CC=egcc # only libpng is strictly necesarry. All OpenBSD ports are installed in # /usr/local so lots of libraries can be found there. export CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng" # -Z is necessary because OpenBSD current on i386 has recently moved to # elf. # All OpenBSD platforms now use elf accept for vax and m68k # A not so nice comment from one of the developers in the ports-cvs-tree # # Work around the fact that emacs undump knows too much about the layout # of elf files (or thinks it does). These assumptions were just broken # by binutils/ld changes to put GOT and PLT into their own PT_LOAD # sections. Thus BSS is no longer part of the DATA PT_LOAD section. This # is a workaround using the '-Z' compatibility flag which disables the # GOT/PLT padding. export LDFLAGS="-Z -L${LOCALBASE}/lib" #if cvsup; then if [ "$1" = bootstrap ] ;then ./configure $opties && \ make bootstrap && \ sudo make install else ./configure $opties && \ make && \ cd lisp && \ make recompile EMACS=../src/emacs && \ cd .. && \ sudo make install fi #fi And I also have this patch: Index: openbsd.h =================================================================== RCS file: /cvsroot/emacs/emacs/src/s/openbsd.h,v retrieving revision 1.2 diff -u -r1.2 openbsd.h --- openbsd.h 22 Mar 2000 12:08:40 -0000 1.2 +++ openbsd.h 7 Jul 2003 10:20:14 -0000 @@ -9,3 +9,7 @@ /* David Mazieres says this is necessary. Otherwise Emacs dumps core when run -nw. */ #undef LIBS_TERMCAP + +/* Got this from the FreeBSD ports-list + +#define LIBS_TERMCAP -lncurses */ Now as you may notice, this patch does nothing at the moment. With the emacs-21.3 port enabling the #define solves all problems with running emacs -nw in a plain console, no problems in screen. but with current cvs it breaks X and emacs -nw in screen again so I accept the breakage in the normal console. It's a rather erratic bug :) # Han -- homepage : http://www.xs4all.nl/~hanb pgpkey : http://www.xs4all.nl/~hanb/keys/Han_pubkey.gpg ) email : h a n @ m i j n c o m p u t e r . n l ( irc : irc.freenode.net#UnixNL c[ ]