Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jan 2005 00:39:01 -0500 (EST)
From:      "J.R. Oldroyd" <fbsd@opal.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/76528: update port: net/boinc-client fixes compilation problem on alpha/4.X
Message-ID:  <200501210539.j0L5d1ZZ080756@linwhf.opal.com>
Resent-Message-ID: <200501210920.j0L9KVBS084958@freefall.freebsd.org>

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

>Number:         76528
>Category:       ports
>Synopsis:       update port: net/boinc-client fixes compilation problem on alpha/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:   Fri Jan 21 09:20:31 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     J.R. Oldroyd
>Release:        FreeBSD 6.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD linwhf.opal.com 6.0-CURRENT FreeBSD 6.0-CURRENT #67: Fri Oct 8 14:11:54 EDT 2004 jr@linwhf.opal.com:/usr/src-current/sys/i386/compile/LINWHF i386

>Description:
Port would not compile for users of FreeBSD 4.X on the alpha.
Problem is, in fact, present on all 4.X systems but was only a
problem on the alpha due to type sizes being different on the 64-bit
arch.

Fix adds two new port files:
	files/extra-patch-client::gui_rpc_server.C
	files/extra-patch-client::net_xfer.C

Note that, since this patch fixes only a compilation problem on
one platform, and changes nothing else, the PORTREVISION has not
been incremented, as per the Porter's Handbook.

>How-To-Repeat:

>Fix:
diff -ruN /usr/ports/net/boinc-client/Makefile net/boinc-client/Makefile
--- /usr/ports/net/boinc-client/Makefile	Sat Jan  1 19:43:53 2005
+++ net/boinc-client/Makefile	Fri Jan 21 00:24:13 2005
@@ -35,15 +35,15 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${ARCH} == "alpha"
-BROKEN=		"Does not compile on alpha"
-.endif
-
 .if ${OSVERSION} < 500000
 EXTRA_PATCHES+=	${FILESDIR}/extra-patch-api::boinc_api.C
 .endif
 
 post-patch:
+.if ${OSVERSION} < 500000
+	${PATCH} -d ${WRKSRC} <${FILESDIR}/extra-patch-client::gui_rpc_server.C
+	${PATCH} -d ${WRKSRC} <${FILESDIR}/extra-patch-client::net_xfer.C
+.endif
 	${CHMOD} +x ${WRKDIR}/boinc_public/configure
 
 do-build:
diff -ruN /usr/ports/net/boinc-client/files/extra-patch-client::gui_rpc_server.C net/boinc-client/files/extra-patch-client::gui_rpc_server.C
--- /usr/ports/net/boinc-client/files/extra-patch-client::gui_rpc_server.C	Wed Dec 31 19:00:00 1969
+++ net/boinc-client/files/extra-patch-client::gui_rpc_server.C	Tue Dec 21 13:32:01 2004
@@ -0,0 +1,11 @@
+--- client/gui_rpc_server.C.orig	Tue Dec 21 13:25:39 2004
++++ client/gui_rpc_server.C	Tue Dec 21 13:27:04 2004
+@@ -49,7 +49,7 @@
+ typedef int socklen_t;
+ #elif defined(__APPLE__)
+ typedef int32_t socklen_t;
+-#elif !defined(GETSOCKOPT_SOCKLEN_T) && !defined(_SOCKLEN_T_DECLARED) && !defined(socklen_t)
++#elif !defined(__FreeBSD__)
+ typedef size_t socklen_t;
+ #endif
+ 
diff -ruN /usr/ports/net/boinc-client/files/extra-patch-client::net_xfer.C net/boinc-client/files/extra-patch-client::net_xfer.C
--- /usr/ports/net/boinc-client/files/extra-patch-client::net_xfer.C	Wed Dec 31 19:00:00 1969
+++ net/boinc-client/files/extra-patch-client::net_xfer.C	Tue Dec 21 13:32:05 2004
@@ -0,0 +1,11 @@
+--- client/net_xfer.C.orig	Tue Dec 21 13:25:39 2004
++++ client/net_xfer.C	Tue Dec 21 13:28:15 2004
+@@ -80,7 +80,7 @@
+ typedef int socklen_t;
+ #elif defined(__APPLE__)
+ typedef int32_t socklen_t;
+-#elif !defined(GETSOCKOPT_SOCKLEN_T) && !defined(_SOCKLEN_T_DECLARED) && !defined(socklen_t)
++#elif !defined(__FreeBSD__)
+ typedef size_t socklen_t;
+ #endif
+ 
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501210539.j0L5d1ZZ080756>