From miwi@miwi.homeunix.com  Tue Oct  2 13:00:57 2007
Return-Path: <miwi@miwi.homeunix.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C0F1B16A420
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  2 Oct 2007 13:00:57 +0000 (UTC)
	(envelope-from miwi@miwi.homeunix.com)
Received: from miwi.homeunix.com (dslb-082-083-155-037.pools.arcor-ip.net [82.83.155.37])
	by mx1.freebsd.org (Postfix) with ESMTP id 743BC13C43E
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  2 Oct 2007 13:00:57 +0000 (UTC)
	(envelope-from miwi@miwi.homeunix.com)
Received: by miwi.homeunix.com (Postfix, from userid 1010)
	id 02C1C2E3A1; Tue,  2 Oct 2007 15:00:57 +0200 (CEST)
Message-Id: <20071002130057.02C1C2E3A1@miwi.homeunix.com>
Date: Tue,  2 Oct 2007 15:00:57 +0200 (CEST)
From: Martin Wilke <miwi@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: llwang@infor.org
Subject: [PATCH] games/noegnud-nethack: Fix build with gcc 4.2
X-Send-Pr-Version: 3.113
X-GNATS-Notify: llwang@infor.org

>Number:         116822
>Category:       ports
>Synopsis:       [PATCH] games/noegnud-nethack: Fix build with gcc 4.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 02 13:10:00 GMT 2007
>Closed-Date:    Tue Oct 09 23:10:16 UTC 2007
>Last-Modified:  Tue Oct 09 23:10:16 UTC 2007
>Originator:     Martin Wilke
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD miwi.homeunix.com 7.0-CURRENT FreeBSD 7.0-CURRENT #305: Fri Sep 28 12:07:59 CEST 2007
>Description:
- Fix build with gcc 4.2

Tindy tested:
i386
http://head.miwibox.org/tb/index.php?action=describe_port&id=2157
amd64
http://amd64.miwibox.org/tb/index.php?action=describe_port&id=1598

Added file(s):
- files/patch-noegnud_noegnud_gui.c

Port maintainer (llwang@infor.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- noegnud-nethack-0.8.3_2.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/games/noegnud-nethack/Makefile,v
retrieving revision 1.7
diff -u -u -r1.7 Makefile
--- Makefile	2 Oct 2007 10:03:23 -0000	1.7
+++ Makefile	2 Oct 2007 12:49:38 -0000
@@ -35,10 +35,6 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 700042
-BROKEN=		Does not compile with GCC 4.2
-.endif
-
 pre-everything::
 .if ${HAVE_SDL}
 	@${ECHO_MSG} "This port depends on SDL with OpenGL support."
Index: files/patch-noegnud_noegnud_gui.c
===================================================================
RCS file: files/patch-noegnud_noegnud_gui.c
diff -N files/patch-noegnud_noegnud_gui.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-noegnud_noegnud_gui.c	2 Oct 2007 12:33:03 -0000
@@ -0,0 +1,11 @@
+--- noegnud/noegnud_gui.c.orig	2007-10-02 14:32:19.000000000 +0200
++++ noegnud/noegnud_gui.c	2007-10-02 14:32:30.000000000 +0200
+@@ -627,7 +627,7 @@
+     //button=(noegnud_gui_tbutton *)noegnud_gui_create_window(parent,x,y,width,height,(sizeof(noegnud_gui_twindow)-sizeof(noegnud_gui_twidget))+datasize);
+ 
+     text=noegnud_gui_create_text(
+-				 (noegnud_gui_twidget *)button=(noegnud_gui_tbutton *)noegnud_gui_create_window(
++				 button=(noegnud_gui_tbutton *)noegnud_gui_create_window(
+ 														parent,
+ 														x,y,
+ 														width,height,
--- noegnud-nethack-0.8.3_2.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Oct 2 13:10:11 UTC 2007 
Responsible-Changed-Why:  
Submitter has GNATS access 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116822 
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Tue Oct 2 13:10:19 UTC 2007 
State-Changed-Why:  
Awaiting maintainers feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116822 

From: "Li-Lun \"Leland\" Wang" <llwang@infor.org>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/116822: [PATCH] games/noegnud-nethack: Fix build with gcc 4.2
Date: Tue, 9 Oct 2007 15:54:34 -0500

 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
 The patch does fix build.  Please go ahead and commit it.
 Thanks.
 
 - -- llwang
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.4 (FreeBSD)
 Comment: http://firegpg.tuxfamily.org
 
 iD8DBQFHC+p2CQM7t5B2mhARAhbHAJ9VNA3ECfDII1foBs4WG7X2Dabw0ACfbrXF
 YNvHJ8u3KG8WDiYWbgnb814=
 =+Ozj
 -----END PGP SIGNATURE-----
State-Changed-From-To: feedback->closed 
State-Changed-By: miwi 
State-Changed-When: Tue Oct 9 23:10:15 UTC 2007 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116822 
>Unformatted:
