Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 2021 16:03:07 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r568012 - head/net/tightvnc
Message-ID:  <202103101603.12AG371X067963@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Wed Mar 10 16:03:06 2021
New Revision: 568012
URL: https://svnweb.freebsd.org/changeset/ports/568012

Log:
  net/tightvnc: fix build on powerpc64* and probably also on aarch64 and riscv64
  
  Clang can't build this, use GCC:
  In file included from ./cfbmskbits.h:39:
  ../hw/xfree86/common/compiler.h:437:8: error: invalid output constraint '=a' in asm
         "=a" (ret) :

Modified:
  head/net/tightvnc/Makefile

Modified: head/net/tightvnc/Makefile
==============================================================================
--- head/net/tightvnc/Makefile	Wed Mar 10 15:00:42 2021	(r568011)
+++ head/net/tightvnc/Makefile	Wed Mar 10 16:03:06 2021	(r568012)
@@ -14,8 +14,6 @@ COMMENT=	Enhanced version of VNC
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/LICENCE.TXT
 
-BROKEN_aarch64=	Fails to build: invokes x86 asm
-BROKEN_riscv64=	Fails to build: invokes x86 asm
 
 RUN_DEPENDS=	showrgb:x11/rgb \
 		xauth:x11/xauth \
@@ -32,6 +30,7 @@ WRKSRC=		${WRKDIR}/vnc_unixsrc
 SHEBANG_FILES=	vncserver
 CFLAGS+=	-Wno-return-type
 ALL_TARGET=	World
+MAKE_ARGS=	CC=${CC}
 
 OPTIONS_DEFINE=	JVNC_VIEWER
 OPTIONS_SUB=	yes
@@ -44,6 +43,10 @@ PREFIX=${TIGHTVNC_BASE}
 .endif
 
 .include <bsd.port.pre.mk>
+
+.if ${ARCH} == aarch64 || ${ARCH:Mpowerpc64*} || ${ARCH} == riscv64
+USE_GCC=	any
+.endif
 
 .if exists(${PREFIX}/share/vnc/classes/index.vnc)
 IGNORE=		vnc has already been installed, please uninstall it first



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