diff options
author | jklos <jklos@pkgsrc.org> | 2010-03-25 04:39:01 +0000 |
---|---|---|
committer | jklos <jklos@pkgsrc.org> | 2010-03-25 04:39:01 +0000 |
commit | 78e1282033d641373c72fdde3fd2fade3dfc8fb9 (patch) | |
tree | a15e126a26d17ee47ab3794e47babd504abf61c8 | |
parent | 0f59e13c66adb45210c90f606254aef23367e338 (diff) | |
download | pkgsrc-78e1282033d641373c72fdde3fd2fade3dfc8fb9.tar.gz |
Skip broken NaN and infinity handling on VAX. May not strictly be
"correct", but VAX doesn't support NaN and infinity in its floating point,
so this is just to make m4 build on VAX.
-rw-r--r-- | devel/m4/distinfo | 3 | ||||
-rw-r--r-- | devel/m4/patches/patch-aa | 13 |
2 files changed, 15 insertions, 1 deletions
diff --git a/devel/m4/distinfo b/devel/m4/distinfo index 263bb138383..d2c0fdf146f 100644 --- a/devel/m4/distinfo +++ b/devel/m4/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.28 2010/02/26 15:31:42 wiz Exp $ +$NetBSD: distinfo,v 1.29 2010/03/25 04:39:01 jklos Exp $ SHA1 (m4-1.4.14.tar.gz) = 8bf68b7a072d68affaccd281138ec73aca23b954 RMD160 (m4-1.4.14.tar.gz) = 80c6a4a7ac22419777fe2890f05dfaaa5c53f946 Size (m4-1.4.14.tar.gz) = 1509355 bytes +SHA1 (patch-aa) = fc7fc68865763098060ee11f0c13fc57956ec820 diff --git a/devel/m4/patches/patch-aa b/devel/m4/patches/patch-aa new file mode 100644 index 00000000000..94ec2134090 --- /dev/null +++ b/devel/m4/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.13 2010/03/25 04:39:01 jklos Exp $ + +--- lib/isnan.c.orig 2010-03-24 21:31:20.000000000 +0000 ++++ lib/isnan.c +@@ -117,7 +117,7 @@ FUNC (DOUBLE x) + # else + /* Be careful to not do any floating-point operation on x, such as x == x, + because x may be a signaling NaN. */ +-# if defined __SUNPRO_C || defined __DECC || (defined __sgi && !defined __GNUC__) ++# if defined __SUNPRO_C || defined __DECC || (defined __sgi && !defined __GNUC__) || defined __vax__ + /* The Sun C 5.0 compilers and the Compaq (ex-DEC) 6.4 compilers don't + recognize the initializers as constant expressions. The latter compiler + also fails when constant-folding 0.0 / 0.0 even when constant-folding is |