diff options
author | wiz <wiz> | 2007-07-22 06:34:41 +0000 |
---|---|---|
committer | wiz <wiz> | 2007-07-22 06:34:41 +0000 |
commit | 4511e2613a970f27bf227b8b83f5a7a7b92068bb (patch) | |
tree | 0ea291d8bd4b1f3dbf7bea9a7a6c94b673bc0b96 /devel/m4/patches | |
parent | 2b017d9add555594bbbb896fc8b37128eda29ed7 (diff) | |
download | pkgsrc-4511e2613a970f27bf227b8b83f5a7a7b92068bb.tar.gz |
Update to 1.4.10nb1. Like previous update to 1.4.10, but includes
a patch from Eric Blake that fixes the problem that appeared e.g.
in dosbox or mng.
Diffstat (limited to 'devel/m4/patches')
-rw-r--r-- | devel/m4/patches/patch-aa | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/devel/m4/patches/patch-aa b/devel/m4/patches/patch-aa index 3981b0f550c..9467cee1150 100644 --- a/devel/m4/patches/patch-aa +++ b/devel/m4/patches/patch-aa @@ -1,20 +1,18 @@ -$NetBSD: patch-aa,v 1.6 2007/07/20 22:52:44 wiz Exp $ +$NetBSD: patch-aa,v 1.7 2007/07/22 06:34:41 wiz Exp $ -avoid the following incorrect behaviour. +From Eric Blake -- will be in m4-1.4.11. -% 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; +--- src/output.c.orig 2007-07-05 03:56:06.000000000 +0000 ++++ src/output.c +@@ -252,6 +252,11 @@ m4_tmpopen (int divnum) + else if (set_cloexec_flag (fileno (file), true) != 0) + M4ERROR ((warning_status, errno, + "Warning: cannot protect diversion across forks")); ++ /* POSIX states that it is undefined whether an append stream starts ++ at offset 0 or at the end. We want the beginning. */ ++ else if (fseeko (file, 0, SEEK_SET) != 0) ++ M4ERROR ((EXIT_FAILURE, errno, ++ "cannot seek to beginning of diversion")); + return file; + } - case MODULO: |