ports/64113: [PATCH] make games/freebsd-games hack(1) work again

Jens Schweikhardt schweikh at FreeBSD.org
Thu Mar 11 18:00:35 UTC 2004


>Number:         64113
>Category:       ports
>Synopsis:       [PATCH] make games/freebsd-games hack(1) work again
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 11 10:00:28 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jens Schweikhardt
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
FreeBSD
>Environment:
System: FreeBSD hal9000.schweikhardt.net 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Wed Feb 18 19:22:21 CET 2004 toor at hal9000.schweikhardt.net:/share/HEAD/obj/share/HEAD/src/sys/HAL9000 i386


>Description:
	This patch, along with my recent commit to termcap.src makes
	hack(1) work again (and not bail out with "Terminal must backspace.")

>How-To-Repeat:
	run hack from games/freebsd-games
>Fix:

Put this patch in games/freebsd-games/files/patch-hack::hack.termcap.c

--- hack/hack.termcap.c.orig	Sat Mar  6 22:18:53 2004
+++ hack/hack.termcap.c	Thu Mar 11 18:42:47 2004
@@ -35,7 +35,8 @@
 		flags.nonull = 1;
 	if(pc = tgetstr("pc", &tbufptr))
 		PC = *pc;
-	if(!(BC = tgetstr("bc", &tbufptr))) {
+	if(!(BC = tgetstr("bc", &tbufptr))
+	 &&!(BC = tgetstr("le", &tbufptr))) {
 		if(!tgetflag("bs"))
 			error("Terminal must backspace.");
 		BC = tbufptr;

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list