From owner-svn-ports-all@FreeBSD.ORG Wed Dec 31 15:46:12 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4E89CBB0; Wed, 31 Dec 2014 15:46:12 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3A8992EDF; Wed, 31 Dec 2014 15:46:12 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id sBVFkC8w010802; Wed, 31 Dec 2014 15:46:12 GMT (envelope-from naddy@FreeBSD.org) Received: (from naddy@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id sBVFkCGk010801; Wed, 31 Dec 2014 15:46:12 GMT (envelope-from naddy@FreeBSD.org) Message-Id: <201412311546.sBVFkCGk010801@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: naddy set sender to naddy@FreeBSD.org using -f From: Christian Weisgerber Date: Wed, 31 Dec 2014 15:46:12 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r375895 - head/audio/opus-tools/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 15:46:12 -0000 Author: naddy Date: Wed Dec 31 15:46:11 2014 New Revision: 375895 URL: https://svnweb.freebsd.org/changeset/ports/375895 QAT: https://qat.redports.org/buildarchive/r375895/ Log: On i386, setting CPUTYPE=pentium-m or such will cause __SSE__ to appear. This in turn triggers an #ifdef branch that tries to include , but gcc on 9.x doesn't have that header. Make query_cpu_support() skip cpuid and always return 0 as it is only used for a sanity check that we don't need. PR: 195881 Added: head/audio/opus-tools/files/ head/audio/opus-tools/files/patch-src_cpusupport.h (contents, props changed) Added: head/audio/opus-tools/files/patch-src_cpusupport.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/opus-tools/files/patch-src_cpusupport.h Wed Dec 31 15:46:11 2014 (r375895) @@ -0,0 +1,13 @@ +--- src/cpusupport.h.orig 2012-12-17 23:17:07 UTC ++++ src/cpusupport.h +@@ -33,7 +33,9 @@ + on a host without those instructions. Therefore we disable + the query both if the compiler isn't supporting SSE, and on + targets which are guaranteed to have SSE. */ +-# if !defined(__SSE__) || defined(_M_X64) || defined(__amd64__) ++/* XXX GCC on FreeBSD 9 does not have . On i386, __SSE__ can ++ appear with -march=CPU-TYPE, so disable the SSE check completely. */ ++# if !defined(__SSE__) || defined(_M_X64) || defined(__amd64__) || defined(__i386__) + # define query_cpu_support() 0 + # else +