From: Han Boetes <han@mijncomputer.nl>
Subject: How I build emacs-cvs on OpenBSD
Date: Mon, 7 Jul 2003 12:32:35 +0200 [thread overview]
Message-ID: <20030707103257.GC30853@boetes.org> (raw)
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 <dm@reeducation-labor.lcs.mit.edu> 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[ ]
next reply other threads:[~2003-07-07 10:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-07 10:32 Han Boetes [this message]
2003-07-07 19:36 ` How I build emacs-cvs on OpenBSD Jason Rumney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030707103257.GC30853@boetes.org \
--to=han@mijncomputer.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).