svn commit: r533255 - in head/net/neatvnc: . files

Jan Beich jbeich at FreeBSD.org
Tue Apr 28 16:51:51 UTC 2020


Author: jbeich
Date: Tue Apr 28 16:51:50 2020
New Revision: 533255
URL: https://svnweb.freebsd.org/changeset/ports/533255

Log:
  net/neatvnc: drop unsafe optimization for modern CPUs
  
  Reported by:	Miguel Clara

Added:
  head/net/neatvnc/files/
  head/net/neatvnc/files/patch-default-target   (contents, props changed)
Modified:
  head/net/neatvnc/Makefile   (contents, props changed)

Modified: head/net/neatvnc/Makefile
==============================================================================
--- head/net/neatvnc/Makefile	Tue Apr 28 16:07:58 2020	(r533254)
+++ head/net/neatvnc/Makefile	Tue Apr 28 16:51:50 2020	(r533255)
@@ -3,6 +3,7 @@
 PORTNAME=	neatvnc
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.1.0
+PORTREVISION=	1
 CATEGORIES=	net
 
 MAINTAINER=	jbeich at FreeBSD.org

Added: head/net/neatvnc/files/patch-default-target
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/neatvnc/files/patch-default-target	Tue Apr 28 16:51:50 2020	(r533255)
@@ -0,0 +1,24 @@
+Revert https://github.com/any1/neatvnc/commit/a43bb5d3d438 in favor of CPUTYPE.
+Not all i386 and amd64 support AVX and not all armv6 support NEON.
+
+https://github.com/any1/wayvnc/issues/34
+
+--- meson.build.orig	2020-02-21 23:04:19 UTC
++++ meson.build
+@@ -19,16 +19,6 @@ if buildtype == 'release' or buildtype == 'plain'
+ 	c_args += '-DNDEBUG'
+ endif
+ 
+-cpu = host_machine.cpu_family()
+-
+-if cpu == 'x86_64'
+-	c_args += '-mavx'
+-elif cpu == 'arm'
+-	c_args += '-mfpu=neon'
+-endif
+-
+-add_project_arguments(c_args, language: 'c')
+-
+ cc = meson.get_compiler('c')
+ 
+ libm = cc.find_library('m', required: false)


More information about the svn-ports-all mailing list