summaryrefslogtreecommitdiff
path: root/devel/m4
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2007-05-24 21:51:47 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2007-05-24 21:51:47 +0000
commitd3f1b2b29105e2d0c47ceb29c90146d7c297fa69 (patch)
tree61c78d5a09c6e594c4ae694c6b499ee32ea5792d /devel/m4
parent4a644be456000f7393fba58dd82fe34c8cca2bf8 (diff)
downloadpkgsrc-d3f1b2b29105e2d0c47ceb29c90146d7c297fa69.tar.gz
Fix a division bug when negative numbers are involved. Bump pkgrev.
Diffstat (limited to 'devel/m4')
-rw-r--r--devel/m4/Makefile3
-rw-r--r--devel/m4/distinfo3
-rw-r--r--devel/m4/patches/patch-aa20
3 files changed, 24 insertions, 2 deletions
diff --git a/devel/m4/Makefile b/devel/m4/Makefile
index f6e2a2356be..f1216baf4ec 100644
--- a/devel/m4/Makefile
+++ b/devel/m4/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.46 2007/04/08 18:04:22 wiz Exp $
+# $NetBSD: Makefile,v 1.47 2007/05/24 21:51:47 dmcmahill Exp $
DISTNAME= m4-1.4.9
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=m4/}
diff --git a/devel/m4/distinfo b/devel/m4/distinfo
index 45a7f51784b..e56fe460717 100644
--- a/devel/m4/distinfo
+++ b/devel/m4/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.15 2007/04/08 18:04:22 wiz Exp $
+$NetBSD: distinfo,v 1.16 2007/05/24 21:51:47 dmcmahill Exp $
SHA1 (m4-1.4.9.tar.gz) = 15ad35c65d4c4f2f856687288e7f6b51704d65e1
RMD160 (m4-1.4.9.tar.gz) = 5833efd8aaec3f60cff9997ca7cf15cc7a7ea3c1
Size (m4-1.4.9.tar.gz) = 770647 bytes
+SHA1 (patch-aa) = 2cc5688669b1dc5b5ab7ddc46a1912100ea147a4
diff --git a/devel/m4/patches/patch-aa b/devel/m4/patches/patch-aa
new file mode 100644
index 00000000000..6a0af43c433
--- /dev/null
+++ b/devel/m4/patches/patch-aa
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.4 2007/05/24 21:51:47 dmcmahill Exp $
+
+avoid the following incorrect behaviour.
+
+% echo "eval(-2/2)" | gm4 -
+2147483647
+
+has been reported on bug-m4@gnu.org
+
+--- src/eval.c.orig 2007-01-09 16:12:43.000000000 +0000
++++ src/eval.c
+@@ -721,7 +721,7 @@ mult_term (eval_token et, int32_t *v1)
+ /* Avoid the x86 SIGFPE on INT_MIN / -1. */
+ *v1 = (int32_t) -(uint32_t) *v1;
+ else
+- *v1 = (int32_t) ((uint32_t) *v1 / (uint32_t) v2);
++ *v1 = *v1 / v2;
+ break;
+
+ case MODULO: