Freebsd-games patches...
Chris Pressey
cpressey at catseye.mine.nu
Mon Nov 3 22:12:41 PST 2003
On Tue, 4 Nov 2003 14:42:17 +1100
"Tim Hoban" <tim at e-easy.com.au> wrote:
> > -----Original Message-----
> > From: Frank Laszlo [mailto:laszlof at vonostingroup.com]
> > Sent: Tuesday, 4 November 2003 14:24
> > To: Tim Hoban
> > Cc: ports at freebsd.org
> > Subject: Re: Freebsd-games patches...
> >
> >
> > umm, why is the absolute path to that file in the src anyways?
> > it should be in an include file as a variable, and changed by the
> > configure script.
> >
> > -Frank Laszlo
> >
>
> Dunno. Here's a fix with a variable.
FYI, the version of hack in the base system has another problem - that
is, it relies on the obsolete terminal capability 'bs' and thus won't
work with the recent xterm termcap changes. I imagine the version in
ports has the same problem.
Quick patch from Erik Trulsson to fix this is included below, see
recent thread on stable@ for the full discussion.
Index: games/hack/hack.termcap.c
===================================================================
RCS file: /ncvs/src/games/hack/Attic/hack.termcap.c,v
retrieving revision 1.10
diff -u -4 -r1.10 hack.termcap.c
--- games/hack/hack.termcap.c 16 Nov 1999 10:26:38 -0000 1.10
+++ games/hack/hack.termcap.c 4 Nov 2003 00:15:45 -0000
@@ -35,10 +35,8 @@
flags.nonull = 1;
if(pc = tgetstr("pc", &tbufptr))
PC = *pc;
if(!(BC = tgetstr("bc", &tbufptr))) {
- if(!tgetflag("bs"))
- error("Terminal must backspace.");
BC = tbufptr;
tbufptr += 2;
*BC = '\b';
}
-Chris
More information about the freebsd-ports
mailing list