Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Jul 2005 11:54:09 +0900
From:      Tod McQuillin <devin@spamcop.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        kde@FreeBSD.org
Subject:   ports/82994: [PATCH] x11-wm/kdebase-kompmgr: fix build on 4.x
Message-ID:  <E1DpdZZ-0007Ly-NT@mail.distalzou.net>
Resent-Message-ID: <200507050300.j6530T8A056479@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         82994
>Category:       ports
>Synopsis:       [PATCH] x11-wm/kdebase-kompmgr: fix build on 4.x
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 05 03:00:29 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Tod McQuillin
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD plexi.pun-pun.prv 4.11-STABLE FreeBSD 4.11-STABLE #0: Sat May 21 11:14:44 JST 2005
>Description:
kompmgr.c was using the C++ism of declaring a variable in the middle
of a block.  C (and in particular gcc 2.95) doesn't allow this, so
the build was failing.

Fixed by moving the declaration to the top of the block.

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

Port maintainer (kde@FreeBSD.org) is cc'd.

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

--- kdebase-kompmgr-3.4.1.patch begins here ---
Index: files/patch-kwin_kompmgr_kompmgr.c
===================================================================
RCS file: files/patch-kwin_kompmgr_kompmgr.c
diff -N files/patch-kwin_kompmgr_kompmgr.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-kwin_kompmgr_kompmgr.c	5 Jul 2005 02:33:41 -0000
@@ -0,0 +1,19 @@
+--- kwin/kompmgr/kompmgr.c-	Mon May 23 21:14:55 2005
++++ kwin/kompmgr/kompmgr.c	Tue Jul  5 11:25:27 2005
+@@ -1807,6 +1807,7 @@
+ {
+ 	win				*new = malloc (sizeof (win));
+ 	win				**p;
++	unsigned int 			tmp;
+ 
+ 	if (!new)
+ 		return;
+@@ -1867,7 +1868,7 @@
+ 	new->shadowSize = get_shadow_prop (dpy, new);
+ 	new->shapable = get_shapable_prop(dpy, new);
+ 	new->titleHeight = get_titleHeight_prop(dpy, new);
+-        unsigned int tmp = get_dim_prop(dpy, new);
++        tmp = get_dim_prop(dpy, new);
+         new->dimPicture = (tmp < OPAQUE) ? solid_picture (dpy, True, (double)tmp/OPAQUE, 0.1, 0.1, 0.1) : None;
+ 	new->windowType = determine_wintype (dpy, new->id);
+         determine_mode (dpy, new);
--- kdebase-kompmgr-3.4.1.patch ends here ---

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



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