From jsonntag@tesla.setcom.de  Sun Nov 27 13:26:59 2005
Return-Path: <jsonntag@tesla.setcom.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D8CF616A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 27 Nov 2005 13:26:59 +0000 (GMT)
	(envelope-from jsonntag@tesla.setcom.de)
Received: from archimedes.setcom.de (mail.setcom.de [213.23.78.3])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D248443D60
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 27 Nov 2005 13:26:56 +0000 (GMT)
	(envelope-from jsonntag@tesla.setcom.de)
Received: (qmail 74374 invoked from network); 27 Nov 2005 13:26:54 -0000
Received: from unknown (HELO tesla.setcom.de) (213.23.78.38)
  by archimedes.setcom.de with (NONE) encrypted SMTP; 27 Nov 2005 13:26:54 -0000
Received: from tesla.setcom.de (localhost [127.0.0.1])
	by tesla.setcom.de (8.13.1/8.13.1) with ESMTP id jARDOsDU038261;
	Sun, 27 Nov 2005 14:24:55 +0100 (CET)
	(envelope-from jsonntag@tesla.setcom.de)
Received: (from root@localhost)
	by tesla.setcom.de (8.13.1/8.13.1/Submit) id jARDOsmJ038260;
	Sun, 27 Nov 2005 14:24:54 +0100 (CET)
	(envelope-from jsonntag)
Message-Id: <200511271324.jARDOsmJ038260@tesla.setcom.de>
Date: Sun, 27 Nov 2005 14:24:54 +0100 (CET)
From: Jonas Sonntag <jonas@schiebtsich.net>
Reply-To: Jonas Sonntag <jonas@schiebtsich.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Jonas Sonntag <jonas@schiebtsich.net>
Subject: net/gtk-gnutella [maintainer-update]
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         89630
>Category:       ports
>Synopsis:       net/gtk-gnutella [maintainer-update]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 27 13:30:05 GMT 2005
>Closed-Date:    Tue Nov 29 00:31:52 GMT 2005
>Last-Modified:  Tue Nov 29 00:31:52 GMT 2005
>Originator:     Jonas Sonntag
>Release:        FreeBSD 4.11-RELEASE-p11 i386
>Organization:
>Environment:
System: FreeBSD tesla.setcom.de 4.11-RELEASE-p11 FreeBSD 4.11-RELEASE-p11 #5: Mon Jul 4 13:21:43 CEST 2005 jsonntag@tesla.setcom.de:/usr/obj/usr/src/sys/TESLA_COIL i386


	
>Description:
	fix build on 4.x using patch obtained from gtk-gnutella CVS
	
>How-To-Repeat:
	
>Fix:

	

--- gtk-gnutella0.96.b_1.patch begins here ---
diff -ruN gtk-gnutella.orig/Makefile gtk-gnutella/Makefile
--- gtk-gnutella.orig/Makefile	Sun Nov 27 13:47:46 2005
+++ gtk-gnutella/Makefile	Sun Nov 27 13:47:55 2005
@@ -60,10 +60,6 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} < 500000
-BROKEN=		"Does not compile"
-.endif
-
 .if !defined(INTERACTIVE_CONFIGURE)
 CONFIGURE_ARGS+=	-d -e
 .endif
diff -ruN gtk-gnutella.orig/files/patch-gcc2.diff gtk-gnutella/files/patch-gcc2.diff
--- gtk-gnutella.orig/files/patch-gcc2.diff	Thu Jan  1 01:00:00 1970
+++ gtk-gnutella/files/patch-gcc2.diff	Sun Nov 27 13:48:29 2005
@@ -0,0 +1,52 @@
+--- src/core/rx_inflate.h.orig	Tue Nov 22 22:47:05 2005
++++ src/core/rx_inflate.h	Sat Nov 26 18:15:09 2005
+@@ -46,7 +46,7 @@
+ struct rx_inflate_cb {
+ 	void (*add_rx_inflated)(gpointer owner, gint amount);
+ 	void (*inflate_error)(gpointer owner,
+-			const gchar *reason, ...) G_GNUC_PRINTF(2, 3);
++			const gchar *reason, ...) PRINTF_FUNC_PTR(2, 3);
+ };
+ 
+ /**
+--- src/core/rx_chunk.h.orig	Tue Nov 22 22:47:05 2005
++++ src/core/rx_chunk.h	Sat Nov 26 18:15:09 2005
+@@ -45,7 +45,7 @@
+  */
+ struct rx_chunk_cb {
+ 	void (*chunk_error)(gpointer owner,
+-			const gchar *reason, ...) G_GNUC_PRINTF(2, 3);
++			const gchar *reason, ...) PRINTF_FUNC_PTR(2, 3);
+ 	void (*chunk_end)(gpointer owner);
+ };
+ 
+--- src/core/rx_link.h.orig	Tue Nov 22 22:47:05 2005
++++ src/core/rx_link.h	Sat Nov 26 18:15:09 2005
+@@ -46,7 +46,7 @@
+ struct rx_link_cb {
+ 	void (*add_rx_given)(gpointer owner, gint amount);
+ 	void (*read_error)(gpointer owner,
+-			const gchar *reason, ...) G_GNUC_PRINTF(2, 3);
++			const gchar *reason, ...) PRINTF_FUNC_PTR(2, 3);
+ 	void (*got_eof)(gpointer owner);
+ };
+ 
+--- src/common.h.orig	Tue Nov 22 22:47:03 2005
++++ src/common.h	Sat Nov 26 18:15:08 2005
+@@ -366,6 +366,16 @@
+ #define NON_NULL_PARAM(x) __attribute__((nonnull x))
+ #else /* GCC < 3.3 */
+ #define NON_NULL_PARAM(x)
++#endif
++
++/**
++ * This is the same G_GNUC_FORMAT() but for function pointers. Older versions
++ * of GCC do not allow function attributes for function pointers.
++ */
++#if HAVE_GCC(3, 0)
++#define PRINTF_FUNC_PTR(x, y) __attribute__((format(printf, (x), (y))))
++#else /* GCC < 3.0 */
++#define PRINTF_FUNC_PTR(x, y)
+ #endif
+ 
+ /* Functions using this attribute cause a warning if the returned
--- gtk-gnutella0.96.b_1.patch ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Tue Nov 29 00:31:38 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=89630 
>Unformatted:
