ports/69007: Fix palm/jpilot build on 4.10 with GTK2 enabled
Alex Varju
varju at webct.com
Tue Jul 13 17:00:40 UTC 2004
>Number: 69007
>Category: ports
>Synopsis: Fix palm/jpilot build on 4.10 with GTK2 enabled
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Tue Jul 13 17:00:38 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Alex Varju
>Release: FreeBSD 5.2-RELEASE i386
>Organization:
WebCT
>Environment:
System: FreeBSD snapple.webct.com 5.2-RELEASE FreeBSD 5.2-RELEASE #10: Fri Jan 16 17:24:29 PST 2004 varju at snapple.webct.com:/usr/obj/usr/src/sys/SNAPPLE i386
>Description:
There is a bug in jpilot 0.99.7 which prevents builds from succeeding
on 4.10 when USE_GTK2 is enabled. The attached patch fixes the code
so that it can compile with older versions of GCC.
I have not bumped the PORTREVISION because this bug prevent builds on
4.10, and the patch doesn't change anything significant for 5.x.
This fix was pointed out by Alexander Koch <mail at kochalexander.de>
>How-To-Repeat:
>Fix:
--- /dev/null Tue Jul 13 09:44:33 2004
+++ ports/palm/jpilot/files/patch-address_gui.c Mon Jul 12 18:14:34 2004
@@ -0,0 +1,20 @@
+--- address_gui.c~ 2004-05-11 22:33:45.364123000 -0400
++++ address_gui.c 2004-05-11 22:38:37.506140000 -0400
+@@ -1427,13 +1427,15 @@
+ char number[100];
+ char ext[100];
+
+- number[0]=ext[0]='\0';
+- text=data;
+ #ifdef ENABLE_GTK2
+ GtkTextIter start_iter;
+ GtkTextIter end_iter;
+ GtkTextBuffer *text_buffer;
++#endif
+
++ number[0]=ext[0]='\0';
++ text=data;
++#ifdef ENABLE_GTK2
+ text_buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text));
+ gtk_text_buffer_get_bounds(GTK_TEXT_BUFFER(text),&start_iter,&end_iter);
+ str = gtk_text_buffer_get_text(GTK_TEXT_BUFFER(text),&start_iter,&end_iter,TRUE);
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list