svn commit: r568012 - head/net/tightvnc

Piotr Kubaj pkubaj at FreeBSD.org
Wed Mar 10 16:03:07 UTC 2021


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


More information about the svn-ports-head mailing list