diff options
author | Stefan Eßer <se@FreeBSD.org> | 2020-09-14 14:31:21 +0000 |
---|---|---|
committer | Stefan Eßer <se@FreeBSD.org> | 2020-09-14 14:31:21 +0000 |
commit | 7d84346b5c93243d51a9abfa3825a1eb62d5f34e (patch) | |
tree | 4c2fb3cc6cfa33594b2e12b7db6f7513d61767f8 /math | |
parent | sysutils/bpytop: Update to 1.0.31 (diff) |
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)
Notes
Notes:
svn path=/head/; revision=548613
Diffstat (limited to 'math')
-rw-r--r-- | math/openlibm/Makefile | 14 | ||||
-rw-r--r-- | math/openlibm/files/patch-src_math__private.h | 33 |
2 files changed, 40 insertions, 7 deletions
diff --git a/math/openlibm/Makefile b/math/openlibm/Makefile index e082f8503a23..88b793d1e012 100644 --- a/math/openlibm/Makefile +++ b/math/openlibm/Makefile @@ -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 <bsd.port.post.mk> diff --git a/math/openlibm/files/patch-src_math__private.h b/math/openlibm/files/patch-src_math__private.h new file mode 100644 index 000000000000..84dceabc77ae --- /dev/null +++ b/math/openlibm/files/patch-src_math__private.h @@ -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(). |