ports/115744: [patch] misc/alevt: unbreak on 7.x (gcc 4.2)
Simun Mikecin
numisemis at yahoo.com
Thu Aug 23 06:00:08 UTC 2007
>Number: 115744
>Category: ports
>Synopsis: [patch] misc/alevt: unbreak on 7.x (gcc 4.2)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Aug 23 06:00:06 GMT 2007
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list