From nobody@FreeBSD.org  Thu Nov  3 04:58:37 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 672F7106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  3 Nov 2011 04:58:37 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 573F18FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  3 Nov 2011 04:58:37 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pA34wbaN051654
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 3 Nov 2011 04:58:37 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pA34wbUT051651;
	Thu, 3 Nov 2011 04:58:37 GMT
	(envelope-from nobody)
Message-Id: <201111030458.pA34wbUT051651@red.freebsd.org>
Date: Thu, 3 Nov 2011 04:58:37 GMT
From: "4721@hushmail.com" <4721@hushmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] unbreak net/tridiavnc for non-i386
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         162264
>Category:       ports
>Synopsis:       [patch] unbreak net/tridiavnc for non-i386
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    cy
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 03 05:00:20 UTC 2011
>Closed-Date:    Tue Nov 27 22:46:23 UTC 2012
>Last-Modified:  Tue Nov 27 22:46:23 UTC 2012
>Originator:     4721@hushmail.com
>Release:        
>Organization:
>Environment:
>Description:
net/tridiavnc is marked broken due to a failure of the Xvnc component to compile outside of i386.
>How-To-Repeat:

>Fix:
attached patch disables build of Xvnc for non-i386 archs. tested working on 8.2-amd64

Patch attached with submission follows:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net/tridiavnc/Makefile,v
retrieving revision 1.20
diff -u -r1.20 Makefile
--- Makefile	13 Oct 2011 02:53:50 -0000	1.20
+++ Makefile	3 Nov 2011 04:49:44 -0000
@@ -38,7 +38,6 @@
 .include <bsd.port.pre.mk>
 
 .if ${ARCH} != i386
-BROKEN=		Does not compile on ${MACHINE_ARCH}
 NO_XVNC=	yes
 PLIST_SUB+=	XVNC="@comment "
 .else
@@ -51,6 +50,9 @@
 .endfor
 	@${PERL} -pi -e "s,/usr/local/vnc/classes,${DATADIR}/classes,g ; \
 		s,^#!/usr/bin/perl,#!${PERL},g" ${WRKSRC}/vncserver
+.if defined(NO_XVNC)
+	@${REINPLACE_CMD} -e 's|cd Xvnc; make World||' ${WRKSRC}/Imakefile
+.endif
 
 # We have to frob a few things, and we want our own permissions, so it's easier
 # to do the install ourselves.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->cy 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Nov 3 05:00:33 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162264 
State-Changed-From-To: open->analyzed 
State-Changed-By: cy 
State-Changed-When: Thu Nov 3 05:33:10 UTC 2011 
State-Changed-Why:  
Are you sure this patch will work this time? 

Do you realise that this is not a complete fix? It only builds the client 
piece of this port. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162264 
State-Changed-From-To: analyzed->closed 
State-Changed-By: nox 
State-Changed-When: Tue Nov 27 22:46:22 UTC 2012 
State-Changed-Why:  
Closed at submitter's request, he now uses net/tightvnc instead of 
net/tridiavnc. 

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