From owner-svn-ports-all@freebsd.org Mon Sep 14 14:31:22 2020 Return-Path: Delivered-To: svn-ports-all@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 4C1143D7D5E; Mon, 14 Sep 2020 14:31:22 +0000 (UTC) (envelope-from se@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4BqphB1Cv0z3WLQ; Mon, 14 Sep 2020 14:31:22 +0000 (UTC) (envelope-from se@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 0C8CB183CE; Mon, 14 Sep 2020 14:31:22 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 08EEVLZX081848; Mon, 14 Sep 2020 14:31:21 GMT (envelope-from se@FreeBSD.org) Received: (from se@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 08EEVL8b081846; Mon, 14 Sep 2020 14:31:21 GMT (envelope-from se@FreeBSD.org) Message-Id: <202009141431.08EEVL8b081846@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: se set sender to se@FreeBSD.org using -f From: =?UTF-8?Q?Stefan_E=c3=9fer?= Date: Mon, 14 Sep 2020 14:31:21 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r548613 - in head/math/openlibm: . files X-SVN-Group: ports-head X-SVN-Commit-Author: se X-SVN-Commit-Paths: in head/math/openlibm: . files X-SVN-Commit-Revision: 548613 X-SVN-Commit-Repository: ports 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.33 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: Mon, 14 Sep 2020 14:31:22 -0000 Author: se Date: Mon Sep 14 14:31:21 2020 New Revision: 548613 URL: https://svnweb.freebsd.org/changeset/ports/548613 Log: Apply patch to restore prior and working state: Steve Kargl has noticed severely inaccurate results for some functions and has reported the issue as https://github.com/JuliaMath/openlibm/issues/215 This port update applies the patch he has suggested to the up-stream and which has been tested by him to fix the issue (see the Github issue for details and test results). While here adjust indentation and remove white-space from an empty line. Submitted by: Steve Kargl (sgk at troutmask.apl.washington.edu) Added: head/math/openlibm/files/patch-src_math__private.h (contents, props changed) Modified: head/math/openlibm/Makefile Modified: head/math/openlibm/Makefile ============================================================================== --- head/math/openlibm/Makefile Mon Sep 14 14:28:30 2020 (r548612) +++ head/math/openlibm/Makefile Mon Sep 14 14:31:21 2020 (r548613) @@ -4,7 +4,7 @@ PORTNAME= openlibm DISTVERSIONPREFIX= v DISTVERSION= 0.6.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math MAINTAINER= iblis@hs.ntnu.edu.tw @@ -14,12 +14,12 @@ LICENSE= MIT ISCL BSD2CLAUSE LICENSE_COMB= multi LICENSE_FILE= ${WRKSRC}/LICENSE.md -BROKEN_armv6= fails to compile: a parameter list without types is only allowed in a function definition -BROKEN_armv7= fails to compile: a parameter list without types is only allowed in a function definition -BROKEN_mips= fails to compile: No rule to make target mips/Make.files -BROKEN_mips64= fails to compile: No rule to make target mips64/Make.files +BROKEN_armv6= fails to compile: a parameter list without types is only allowed in a function definition +BROKEN_armv7= fails to compile: a parameter list without types is only allowed in a function definition +BROKEN_mips= fails to compile: No rule to make target mips/Make.files +BROKEN_mips64= fails to compile: No rule to make target mips64/Make.files -USES= gmake +USES= gmake USE_GITHUB= yes GH_ACCOUNT= JuliaMath GH_PROJECT= openlibm @@ -47,5 +47,5 @@ post-patch: -e 's/USECLANG =/USECLANG ?=/g' \ -e '/TOOLPREFIX)gcc/s/$$/${GCC_DEFAULT}/g' \ ${WRKSRC}/Make.inc - + .include Added: head/math/openlibm/files/patch-src_math__private.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/openlibm/files/patch-src_math__private.h Mon Sep 14 14:31:21 2020 (r548613) @@ -0,0 +1,33 @@ +--- src/math_private.h.orig 2018-06-18 21:22:47 UTC ++++ src/math_private.h +@@ -203,10 +203,10 @@ do { \ + } while (0) + + ++#ifndef __FreeBSD__ + //VBS + #define STRICT_ASSIGN(type, lval, rval) ((lval) = (rval)) +- +-/* VBS ++#else + #ifdef FLT_EVAL_METHOD + // Attempt to get strict C99 semantics for assignment with non-C99 compilers. + #if FLT_EVAL_METHOD == 0 || __GNUC__ == 0 +@@ -215,7 +215,7 @@ do { \ + #define STRICT_ASSIGN(type, lval, rval) do { \ + volatile type __lval; \ + \ +- if (sizeof(type) >= sizeof(double)) \ ++ if (sizeof(type) >= sizeof(long double)) \ + (lval) = (rval); \ + else { \ + __lval = (rval); \ +@@ -224,7 +224,7 @@ do { \ + } while (0) + #endif + #endif +-*/ ++#endif + + /* + * Common routine to process the arguments to nan(), nanf(), and nanl().