From owner-svn-ports-head@freebsd.org Mon Aug 19 23:33:40 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B99D5D510C; Mon, 19 Aug 2019 23:33:40 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46C9Gr4T0cz4ZT8; Mon, 19 Aug 2019 23:33:40 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7B14922375; Mon, 19 Aug 2019 23:33:40 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x7JNXe55012859; Mon, 19 Aug 2019 23:33:40 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x7JNXe2P012857; Mon, 19 Aug 2019 23:33:40 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <201908192333.x7JNXe2P012857@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Mon, 19 Aug 2019 23:33:40 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r509385 - in head/math/sleef: . files X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: in head/math/sleef: . files X-SVN-Commit-Revision: 509385 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Aug 2019 23:33:40 -0000 Author: pkubaj Date: Mon Aug 19 23:33:39 2019 New Revision: 509385 URL: https://svnweb.freebsd.org/changeset/ports/509385 Log: math/sleef: fix build on powerpc64 Altivec needs {} for vectors instead of (). lib/libsleefgnuabi.so is not built on powerpc64. PR: 239468 Approved by: jmd (maintainer), mat (mentor) Differential Revision: https://reviews.freebsd.org/D21216 Added: head/math/sleef/files/ head/math/sleef/files/patch-src_libm-tester_tester3.c (contents, props changed) Modified: head/math/sleef/Makefile head/math/sleef/pkg-plist Modified: head/math/sleef/Makefile ============================================================================== --- head/math/sleef/Makefile Mon Aug 19 22:51:38 2019 (r509384) +++ head/math/sleef/Makefile Mon Aug 19 23:33:39 2019 (r509385) @@ -18,4 +18,12 @@ USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= shibatch +.include + +.if ${ARCH} == powerpc64 +PLIST_SUB+= NO_PPC64="@comment " +.else +PLIST_SUB+= NO_PPC64="" +.endif + .include Added: head/math/sleef/files/patch-src_libm-tester_tester3.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/sleef/files/patch-src_libm-tester_tester3.c Mon Aug 19 23:33:39 2019 (r509385) @@ -0,0 +1,14 @@ +--- src/libm-tester/tester3.c.orig 2019-07-26 21:42:15 UTC ++++ src/libm-tester/tester3.c +@@ -71,9 +71,9 @@ static INLINE float getsvfloat32_t(svfloat32_t v, int + #endif + + #ifdef __VSX__ +-static INLINE vector_double setvector_double(double d, int r) { double a[2]; memrand(a, sizeof(a)); a[r & 1] = d; return (vector double) ( a[0], a[1] ); } ++static INLINE vector_double setvector_double(double d, int r) { double a[2]; memrand(a, sizeof(a)); a[r & 1] = d; return (vector double) { a[0], a[1] }; } + static INLINE double getvector_double(vector double v, int r) { double a[2]; return unifyValue(v[r & 1]); } +-static INLINE vector_float setvector_float(float d, int r) { float a[4]; memrand(a, sizeof(a)); a[r & 3] = d; return (vector float) ( a[0], a[1], a[2], a[3] ); } ++static INLINE vector_float setvector_float(float d, int r) { float a[4]; memrand(a, sizeof(a)); a[r & 3] = d; return (vector float) { a[0], a[1], a[2], a[3] }; } + static INLINE float getvector_float(vector float v, int r) { float a[4]; return unifyValuef(v[r & 3]); } + #endif + Modified: head/math/sleef/pkg-plist ============================================================================== --- head/math/sleef/pkg-plist Mon Aug 19 22:51:38 2019 (r509384) +++ head/math/sleef/pkg-plist Mon Aug 19 23:33:39 2019 (r509385) @@ -6,6 +6,6 @@ lib/libsleef.so.3.4.0 lib/libsleefdft.so lib/libsleefdft.so.3 lib/libsleefdft.so.3.4.0 -lib/libsleefgnuabi.so -lib/libsleefgnuabi.so.3 -lib/libsleefgnuabi.so.3.4 +%%NO_PPC64%%lib/libsleefgnuabi.so +%%NO_PPC64%%lib/libsleefgnuabi.so.3 +%%NO_PPC64%%lib/libsleefgnuabi.so.3.4