summaryrefslogtreecommitdiff
path: root/devel/m4/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2008-04-11 06:08:43 +0000
committerwiz <wiz@pkgsrc.org>2008-04-11 06:08:43 +0000
commit632d28bdc4a6902db8c7ec78e593d59a6642e38a (patch)
tree54e96b50ba2c3453c39f08e21b2ddfc41702dbbe /devel/m4/patches
parentacf8bd9461080e1bb319d2592c36fa4f323d3b7e (diff)
downloadpkgsrc-632d28bdc4a6902db8c7ec78e593d59a6642e38a.tar.gz
Update to 1.4.11:
* Noteworthy changes in Version 1.4.11 (2008-04-02) [stable] Released by Eric Blake, based on git version 1.4.10a ** Security fixes for the -F option, for bugs present since -F was introduced in 1.3: Avoid core dump with 'm4 -F file -t undefined', and avoid arbitrary code execution with certain file names. ** Fix regression introduced in 1.4.9b in the `divert' builtin when more than 512 kibibytes are saved in diversions on platforms like NetBSD or darwin where fopen(name,"a+") seeks to the end of the file. ** The output of the `maketemp' and `mkstemp' builtins is now quoted if a file was created. This is a minor security fix, because it was possible (although rather unlikely) that an unquoted string could match an existing macro name, such that use of the `mkstemp' output would trigger inadvertent macro expansion and operate on the wrong file name. ** Enhance the `defn' builtin to support concatenation of multiple text arguments, as required by POSIX. However, at this time, it is not possible to concatenate a builtin macro with anything else; a warning is now issued if this is attempted, although a future version of M4 may lift this restriction to match other implementations. ** Enhance the `format' builtin to parse all C99 floating point numbers, even on platforms where strtod(3) is buggy, although the replacement function does have the known issue of rounding errors when parsing some decimal floating point values. This fixes testsuite failures introduced in 1.4.9b. ** Enhance the `index' builtin to guarantee linear behavior, in spite of the surprisingly large number of systems with a brain-dead quadratic strstr(3). ** A number of portability improvements inherited from gnulib.
Diffstat (limited to 'devel/m4/patches')
-rw-r--r--devel/m4/patches/patch-aa18
-rw-r--r--devel/m4/patches/patch-ab13
-rw-r--r--devel/m4/patches/patch-ac24
3 files changed, 0 insertions, 55 deletions
diff --git a/devel/m4/patches/patch-aa b/devel/m4/patches/patch-aa
deleted file mode 100644
index 9467cee1150..00000000000
--- a/devel/m4/patches/patch-aa
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD: patch-aa,v 1.7 2007/07/22 06:34:41 wiz Exp $
-
-From Eric Blake -- will be in m4-1.4.11.
-
---- 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;
- }
-
diff --git a/devel/m4/patches/patch-ab b/devel/m4/patches/patch-ab
deleted file mode 100644
index 4b8678eb88a..00000000000
--- a/devel/m4/patches/patch-ab
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ab,v 1.5 2007/07/29 14:36:46 joerg Exp $
-
---- lib/freading.c.orig 2007-07-24 15:10:13.000000000 +0000
-+++ lib/freading.c
-@@ -34,6 +34,8 @@ freading (FILE *fp)
- return ((fp->_flags & _IO_NO_WRITES) != 0
- || ((fp->_flags & (_IO_NO_READS | _IO_CURRENTLY_PUTTING)) == 0
- && fp->_IO_read_base != NULL));
-+#elif defined(__DragonFly__)
-+ return (((struct __FILE_public *)fp)->_flags & __SRD) != 0;
- #elif defined __sferror /* FreeBSD, NetBSD, OpenBSD, MacOS X, Cygwin */
- return (fp->_flags & __SRD) != 0;
- #elif defined _IOERR /* AIX, HP-UX, IRIX, OSF/1, Solaris, mingw */
diff --git a/devel/m4/patches/patch-ac b/devel/m4/patches/patch-ac
deleted file mode 100644
index 5571ed4ffa5..00000000000
--- a/devel/m4/patches/patch-ac
+++ /dev/null
@@ -1,24 +0,0 @@
-$NetBSD: patch-ac,v 1.6 2007/07/29 14:36:47 joerg Exp $
-
---- configure.orig 2007-07-29 13:25:52.000000000 +0000
-+++ configure
-@@ -11711,10 +11711,17 @@ echo "${ECHO_T}$gl_cv_func_fflush_stdin"
- if test $gl_cv_func_fflush_stdin = no; then
-
- M4_LIBOBJS="$M4_LIBOBJS fflush.$ac_objext"
-- M4_LIBOBJS="$M4_LIBOBJS fseeko.$ac_objext"
-
- REPLACE_FFLUSH=1
-- REPLACE_FSEEKO=1
-+ case "$host_os" in
-+ dragonfly*)
-+ REPLACE_FSEEKO=0
-+ ;;
-+ *)
-+ M4_LIBOBJS="$M4_LIBOBJS fseeko.$ac_objext"
-+ REPLACE_FSEEKO=1
-+ ;;
-+ esac
-
- fi
-