Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Oct 2003 22:39:37 +0300
From:      "Samy Al Bahra" <samy@kerneled.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/58533: Fix games/44bsd-hunt in 5.X
Message-ID:  1067024360@beastie.freebsd.local
Resent-Message-ID: <200310251840.h9PIeDmO061062@freefall.freebsd.org>

| raw e-mail | index | archive | help

>Number:         58533
>Category:       ports
>Synopsis:       Fix games/44bsd-hunt in 5.X
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 25 11:40:13 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Samy Al Bahra
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
Kerneled 
>Environment:


System: FreeBSD beastie.freebsd.local 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Wed Aug 20 18:35:24 AST 2003     samy@beastie.freebsd.local:/usr/src/sys/i386/compile/KERNELED i386  


>Description:


games/44bsd-hunt does not build on 5.X
machines because of incorrect abort()
usage.


>How-To-Repeat:


Build on a 5.X machine.


>Fix:


diff -ruN 44bsd-hunt/Makefile /tmp/44bsd-hunt/Makefile
--- 44bsd-hunt/Makefile	Fri Oct 24 22:24:24 2003
+++ /tmp/44bsd-hunt/Makefile	Fri Oct 24 22:24:33 2003
@@ -14,10 +14,4 @@
 
 MAN6=	hunt.6 huntd.6
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 501000
-BROKEN=		"Does not compile"
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -ruN 44bsd-hunt/files/patch-driver.c /tmp/44bsd-hunt/files/patch-driver.c
--- 44bsd-hunt/files/patch-driver.c	Thu Jan  1 03:00:00 1970
+++ /tmp/44bsd-hunt/files/patch-driver.c	Fri Oct 24 22:24:50 2003
@@ -0,0 +1,11 @@
+--- driver.c.orig	Fri Oct 24 22:24:13 2003
++++ driver.c	Fri Oct 24 22:24:13 2003
+@@ -653,7 +653,7 @@
+ 					if (np->p_flying < 0)
+ 						break;
+ 				if (np >= &Boot[NBOOTS])
+-					abort(1, "Too many boots");
++					abort();
+ 				np->p_undershot = FALSE;
+ 				np->p_x = pp->p_x;
+ 				np->p_y = pp->p_y;



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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1067024360>