emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How I build emacs-cvs on OpenBSD


From: Han Boetes
Subject: How I build emacs-cvs on OpenBSD
Date: Mon, 7 Jul 2003 12:32:35 +0200
User-agent: Mutt/1.4.1i

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 <address@hidden> 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[ ]




reply via email to

[Prev in Thread] Current Thread [Next in Thread]