ports/117732: [PATCH] games/mangband: unbreak with gcc42

Dmitry Marakasov amdmi3 at amdmi3.ru
Thu Nov 1 01:40:03 UTC 2007


>Number:         117732
>Category:       ports
>Synopsis:       [PATCH] games/mangband: unbreak with gcc42
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 01 01:40:02 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 6.1-RELEASE-p20 i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 6.1-RELEASE-p20 FreeBSD 6.1-RELEASE-p20 #1: Tue Oct 23 05:28:10 MSD 2007 root at hades.panopticon:/usr/obj/usr/src/sys/HADES i386


>Description:
Unbreak with gcc 4.2
>How-To-Repeat:
>Fix:

--- mangband.patch begins here ---
diff -ruN mangband.orig/Makefile mangband/Makefile
--- mangband.orig/Makefile	Thu Nov  1 04:37:41 2007
+++ mangband/Makefile	Thu Nov  1 04:37:30 2007
@@ -36,10 +36,4 @@
 	${CHOWN} -R root:games ${MALIB}/*
 	${CHOWN} ${SHAREOWN}:${SHAREGRP} ${MALIB}
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 700042
-BROKEN=		Does not compile with GCC 4.2
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -ruN mangband.orig/files/patch-server-netserver.c mangband/files/patch-server-netserver.c
--- mangband.orig/files/patch-server-netserver.c	Thu Jan  1 03:00:00 1970
+++ mangband/files/patch-server-netserver.c	Thu Nov  1 04:37:30 2007
@@ -0,0 +1,11 @@
+--- server/netserver.c.orig	2001-01-02 04:02:10.000000000 +0000
++++ server/netserver.c	2007-11-01 04:27:06.000000000 +0000
+@@ -98,7 +98,7 @@
+ 			(*drain_receive[256])(int ind);
+ int			login_in_progress;
+ static int		num_logins, num_logouts;
+-static long		Id;
++long			Id;
+ int			NumPlayers;
+ 
+ int		MetaSocket = -1;
--- mangband.patch ends here ---

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



More information about the freebsd-ports-bugs mailing list