summaryrefslogtreecommitdiff
path: root/devel/m4
diff options
context:
space:
mode:
authorjklos <jklos>2010-03-25 04:39:01 +0000
committerjklos <jklos>2010-03-25 04:39:01 +0000
commit13fe8410ee0a389d0fb123901fa5645fdc3c5cb9 (patch)
treea15e126a26d17ee47ab3794e47babd504abf61c8 /devel/m4
parent6ed776b9606e1c2b5a37267d83aad8d316025b38 (diff)
downloadpkgsrc-13fe8410ee0a389d0fb123901fa5645fdc3c5cb9.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.
Diffstat (limited to 'devel/m4')
-rw-r--r--devel/m4/distinfo3
-rw-r--r--devel/m4/patches/patch-aa13
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