From owner-freebsd-ports@FreeBSD.ORG Mon Nov 3 22:12:40 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DDD5416A4CF for ; Mon, 3 Nov 2003 22:12:40 -0800 (PST) Received: from catseye.mine.nu (d154-5-164-0.bchsia.telus.net [154.5.164.0]) by mx1.FreeBSD.org (Postfix) with SMTP id 1458543F75 for ; Mon, 3 Nov 2003 22:12:40 -0800 (PST) (envelope-from catseye@catseye.mine.nu) Received: (qmail 41081 invoked by uid 1001); 4 Nov 2003 06:15:20 -0000 Date: Mon, 3 Nov 2003 22:15:20 -0800 From: Chris Pressey To: "Tim Hoban" Message-Id: <20031103221520.5c0a07e7.cpressey@catseye.mine.nu> In-Reply-To: <00f601c3a285$a5228980$030aa8c0@corp.eeasy.com.au> References: <1067916211.2673.6.camel@star.vonostingroup.com> <00f601c3a285$a5228980$030aa8c0@corp.eeasy.com.au> Organization: Cat's Eye Technologies X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: ports@freebsd.org cc: laszlof@vonostingroup.com Subject: Re: Freebsd-games patches... X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2003 06:12:41 -0000 On Tue, 4 Nov 2003 14:42:17 +1100 "Tim Hoban" wrote: > > -----Original Message----- > > From: Frank Laszlo [mailto:laszlof@vonostingroup.com] > > Sent: Tuesday, 4 November 2003 14:24 > > To: Tim Hoban > > Cc: ports@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