patch for graphics/dia fixes with GCC 3.3.1..

Jeremy Messenger mezz7 at cox.net
Fri Jul 18 18:56:55 PDT 2003


Here's an attach of patch to fix the build, it works fine when I played 
with it.

Cheers,
Mezz


-- 
bsdforums.org 's moderator, mezz.
-------------- next part --------------
diff -urN dia.orig/Makefile dia/Makefile
--- dia.orig/Makefile	Sun Jun 15 18:34:23 2003
+++ dia/Makefile	Fri Jul 18 20:37:09 2003
@@ -7,7 +7,7 @@
 
 PORTNAME=	dia
 PORTVERSION=	0.91
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	graphics gnome
 MASTER_SITES=	${MASTER_SITE_GNOME}
 MASTER_SITE_SUBDIR=	sources/${PORTNAME}/0.91
diff -urN dia.orig/files/patch-plug-ins::python::pydia-geometry.c dia/files/patch-plug-ins::python::pydia-geometry.c
--- dia.orig/files/patch-plug-ins::python::pydia-geometry.c	Wed Dec 31 18:00:00 1969
+++ dia/files/patch-plug-ins::python::pydia-geometry.c	Fri Jul 18 20:38:07 2003
@@ -0,0 +1,11 @@
+--- plug-ins/python/pydia-geometry.c.orig	Fri Jul 18 20:32:03 2003
++++ plug-ins/python/pydia-geometry.c	Fri Jul 18 20:33:56 2003
+@@ -211,7 +211,7 @@
+ {
+ #define I_OR_F(v) \
+   (self->is_int ? \
+-   PyInt_FromLong(self->r.ri.##v) : PyFloat_FromDouble(self->r.rf.##v))
++   PyInt_FromLong(self->r.ri.v) : PyFloat_FromDouble(self->r.rf.v))
+ 
+   if (!strcmp(attr, "__members__"))
+     return Py_BuildValue("[ssss]", "top", "left", "right", "bottom" );


More information about the freebsd-gnome mailing list