summaryrefslogtreecommitdiff
path: root/devel
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
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')
-rw-r--r--devel/m4/Makefile5
-rw-r--r--devel/m4/PLIST8
-rw-r--r--devel/m4/distinfo11
-rw-r--r--devel/m4/patches/patch-aa18
-rw-r--r--devel/m4/patches/patch-ab13
-rw-r--r--devel/m4/patches/patch-ac24
6 files changed, 13 insertions, 66 deletions
diff --git a/devel/m4/Makefile b/devel/m4/Makefile
index 335bd929cc7..dcc4096eeb7 100644
--- a/devel/m4/Makefile
+++ b/devel/m4/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.52 2007/09/25 01:23:23 dmcmahill Exp $
+# $NetBSD: Makefile,v 1.53 2008/04/11 06:08:43 wiz Exp $
-DISTNAME= m4-1.4.10
-PKGREVISION= 2
+DISTNAME= m4-1.4.11
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=m4/}
diff --git a/devel/m4/PLIST b/devel/m4/PLIST
index c8b7eaea031..6286261b280 100644
--- a/devel/m4/PLIST
+++ b/devel/m4/PLIST
@@ -1,9 +1,10 @@
-@comment $NetBSD: PLIST,v 1.9 2006/12/04 12:46:57 wiz Exp $
+@comment $NetBSD: PLIST,v 1.10 2008/04/11 06:08:43 wiz Exp $
bin/${GNU_PROGRAM_PREFIX}m4
${GM4_LINK}bin/gm4
info/m4.info
man/man1/${GNU_PROGRAM_PREFIX}m4.1
share/examples/m4/capitalize.m4
+share/examples/m4/capitalize2.m4
share/examples/m4/comments.m4
share/examples/m4/ddivert.m4
share/examples/m4/debug.m4
@@ -14,6 +15,7 @@ share/examples/m4/foreach.m4
share/examples/m4/foreach2.m4
share/examples/m4/foreachq.m4
share/examples/m4/foreachq2.m4
+share/examples/m4/foreachq3.m4
share/examples/m4/forloop.m4
share/examples/m4/forloop2.m4
share/examples/m4/fstab.m4
@@ -22,6 +24,8 @@ share/examples/m4/incl-test.m4
share/examples/m4/incl.m4
share/examples/m4/include.m4
share/examples/m4/indir.m4
+share/examples/m4/join.m4
+share/examples/m4/loop.m4
share/examples/m4/misc.m4
share/examples/m4/multiquotes.m4
share/examples/m4/patsubst.m4
@@ -36,4 +40,6 @@ share/examples/m4/translit.m4
share/examples/m4/undivert.m4
share/examples/m4/wrap.m4
share/examples/m4/wrapfifo.m4
+share/examples/m4/wraplifo.m4
+share/examples/m4/wraplifo2.m4
@dirrm share/examples/m4
diff --git a/devel/m4/distinfo b/devel/m4/distinfo
index 739b8b10e45..b7abce575e3 100644
--- a/devel/m4/distinfo
+++ b/devel/m4/distinfo
@@ -1,8 +1,5 @@
-$NetBSD: distinfo,v 1.20 2007/07/29 14:36:46 joerg Exp $
+$NetBSD: distinfo,v 1.21 2008/04/11 06:08:43 wiz Exp $
-SHA1 (m4-1.4.10.tar.gz) = 26d47c893722d683308f5d9fc172a11d5b2ad8a9
-RMD160 (m4-1.4.10.tar.gz) = 0a26a714ce9691006524da7c2c3e2859e7321a95
-Size (m4-1.4.10.tar.gz) = 928375 bytes
-SHA1 (patch-aa) = 426327aabb1f48647b3561439dba0261a49860f3
-SHA1 (patch-ab) = 01838a4b055888f48650f6e621f3848c47f7af2a
-SHA1 (patch-ac) = 86c14a4deae3171a0b7a66a2daf94eb58688b742
+SHA1 (m4-1.4.11.tar.gz) = 4d6b7f6344faee39f55af397c25f3e7ad13b6fcb
+RMD160 (m4-1.4.11.tar.gz) = 3689d9681cf9d2effbf87a3202cea68a75ebcec2
+Size (m4-1.4.11.tar.gz) = 1168840 bytes
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
-