From nobody@FreeBSD.org  Thu Aug 23 05:55:51 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E447116A418
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 23 Aug 2007 05:55:51 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id D369813C483
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 23 Aug 2007 05:55:51 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l7N5tp2C046899
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 23 Aug 2007 05:55:51 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l7N5tpiI046898;
	Thu, 23 Aug 2007 05:55:51 GMT
	(envelope-from nobody)
Message-Id: <200708230555.l7N5tpiI046898@www.freebsd.org>
Date: Thu, 23 Aug 2007 05:55:51 GMT
From: Simun Mikecin <numisemis@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] misc/alevt: unbreak on 7.x (gcc 4.2)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         115744
>Category:       ports
>Synopsis:       [patch] misc/alevt: unbreak on 7.x (gcc 4.2)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    itetcu
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 23 06:00:06 GMT 2007
>Closed-Date:    Thu Aug 23 07:36:14 GMT 2007
>Last-Modified:  Thu Aug 23 07:40:02 GMT 2007
>Originator:     Simun Mikecin
>Release:        FreeBSD/amd64 7.0-CURRENT
>Organization:
>Environment:
FreeBSD data.home.hr 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Tue Aug 21 18:58:27 CEST 2007     root@data.home.hr:/usr/obj/usr/src.current/sys/DATA  amd64

>Description:
This port is marked broken on 7-CURRENT since it doesn't compile with gcc 4.2

>How-To-Repeat:

>Fix:
With this patch alevt compiles with gcc 4.2


Patch attached with submission follows:

diff -urN alevt.orig/Makefile alevt/Makefile
--- alevt.orig/Makefile	2007-05-26 00:58:53.000000000 +0200
+++ alevt/Makefile	2007-08-23 07:43:52.099869878 +0200
@@ -22,10 +22,6 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 700042
-BROKEN=		Broken with gcc 4.2
-.endif
-
 .if defined(WITH_PNG)
 LIB_DEPENDS+=	png.5:${PORTSDIR}/graphics/png
 MAKE_ARGS+=	-DWITH_PNG
diff -urN alevt.orig/files/patch-ad alevt/files/patch-ad
--- alevt.orig/files/patch-ad	1970-01-01 01:00:00.000000000 +0100
+++ alevt/files/patch-ad	2007-08-23 07:49:27.381000655 +0200
@@ -0,0 +1,30 @@
+--- xio.c.orig	2002-08-20 05:09:38.000000000 +0200
++++ xio.c	2007-08-23 07:48:59.587926513 +0200
+@@ -31,11 +31,11 @@
+ 
+ static struct dl_head dpys[1];		/* list of all displays */
+ 
++static void xio_timer();
+ 
+ static int
+ timer_init(int argc, char **argv)
+ {
+-    static void xio_timer();
+     int p[2], timer_pid, i;
+ 
+     if (pipe(p) == -1)
+@@ -154,13 +154,12 @@
+ 	fdset_del_fd(fds, fd);
+ }
+ 
+-
++static void handle_event(); //forward ref
+ 
+ struct xio *
+ xio_open_dpy(char *dpy, int argc, char **argv)
+ {
+     XClassHint classhint[1];
+-    static void handle_event(); //forward ref
+     struct xio *xio;
+ 
+     if (local_init(argc, argv) == -1)


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->itetcu 
Responsible-Changed-By: itetcu 
Responsible-Changed-When: Thu Aug 23 07:34:13 UTC 2007 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115744 
State-Changed-From-To: open->closed 
State-Changed-By: itetcu 
State-Changed-When: Thu Aug 23 07:36:12 UTC 2007 
State-Changed-Why:  
Committed, with minor changes. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/115744: commit references a PR
Date: Thu, 23 Aug 2007 07:35:59 +0000 (UTC)

 itetcu      2007-08-23 07:35:53 UTC
 
   FreeBSD ports repository
 
   Modified files:
     misc/alevt           Makefile 
   Added files:
     misc/alevt/files     patch-xio.c 
   Log:
   - Unbreak on HEAD (gcc 4.2)
   
   PR:             ports/115744
   Submitted by:   Simun Mikecin
   
   Revision  Changes    Path
   1.22      +0 -4      ports/misc/alevt/Makefile
   1.1       +30 -0     ports/misc/alevt/files/patch-xio.c (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
