head 1.15; access; symbols pkgsrc-2013Q3:1.14.0.22 pkgsrc-2013Q3-base:1.14 pkgsrc-2013Q2:1.14.0.20 pkgsrc-2013Q2-base:1.14 pkgsrc-2013Q1:1.14.0.18 pkgsrc-2013Q1-base:1.14 pkgsrc-2012Q4:1.14.0.16 pkgsrc-2012Q4-base:1.14 pkgsrc-2012Q3:1.14.0.14 pkgsrc-2012Q3-base:1.14 pkgsrc-2012Q2:1.14.0.12 pkgsrc-2012Q2-base:1.14 pkgsrc-2012Q1:1.14.0.10 pkgsrc-2012Q1-base:1.14 pkgsrc-2011Q4:1.14.0.8 pkgsrc-2011Q4-base:1.14 pkgsrc-2011Q3:1.14.0.6 pkgsrc-2011Q3-base:1.14 pkgsrc-2011Q2:1.14.0.4 pkgsrc-2011Q2-base:1.14 pkgsrc-2011Q1:1.14.0.2 pkgsrc-2011Q1-base:1.14 pkgsrc-2010Q4:1.13.0.8 pkgsrc-2010Q4-base:1.13 pkgsrc-2010Q3:1.13.0.6 pkgsrc-2010Q3-base:1.13 pkgsrc-2010Q2:1.13.0.4 pkgsrc-2010Q2-base:1.13 pkgsrc-2010Q1:1.13.0.2 pkgsrc-2010Q1-base:1.13 pkgsrc-2009Q4:1.12.0.2 pkgsrc-2009Q4-base:1.12 pkgsrc-2009Q1:1.11.0.4 pkgsrc-2009Q1-base:1.11 pkgsrc-2008Q4:1.11.0.2 pkgsrc-2008Q4-base:1.11 pkgsrc-2008Q3:1.9.0.8 pkgsrc-2008Q3-base:1.9 cube-native-xorg:1.9.0.6 cube-native-xorg-base:1.9 pkgsrc-2008Q2:1.9.0.4 pkgsrc-2008Q2-base:1.9 cwrapper:1.9.0.2 pkgsrc-2008Q1:1.7.0.6 pkgsrc-2008Q1-base:1.7 pkgsrc-2007Q4:1.7.0.4 pkgsrc-2007Q4-base:1.7 pkgsrc-2007Q3:1.7.0.2 pkgsrc-2007Q3-base:1.7 pkgsrc-2007Q2:1.4.0.2 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.3.0.12 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.10 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.8 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.6 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.4 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.2 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.2.0.24 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.22 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.20 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.18 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.16 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.14 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.12 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.2.0.10 pkgsrc-2003Q4-base:1.2 netbsd-1-6-1:1.2.0.6 netbsd-1-6-1-base:1.2 netbsd-1-6:1.2.0.8 netbsd-1-6-RELEASE-base:1.2 pkgviews:1.2.0.4 pkgviews-base:1.2 buildlink2:1.2.0.2 buildlink2-base:1.2 netbsd-1-5-PATCH003:1.2 netbsd-1-5-PATCH001:1.2 netbsd-1-5-RELEASE:1.2 netbsd-1-4-PATCH003:1.2 netbsd-1-4-PATCH002:1.2 comdex-fall-1999:1.2 netbsd-1-4-PATCH001:1.2 netbsd-1-4-RELEASE:1.2 netbsd-1-3-PATCH003:1.2 netbsd-1-3-PATCH002:1.1.1.1 FreeBSD-current-1997-10-05:1.1.1.1 FREEBSD:1.1.1; locks; strict; comment @# @; 1.15 date 2013.10.04.21.02.11; author wiz; state dead; branches; next 1.14; commitid asaXSLK67EYsg18x; 1.14 date 2011.03.16.14.31.46; author wiz; state Exp; branches; next 1.13; 1.13 date 2010.03.25.04.39.01; author jklos; state Exp; branches; next 1.12; 1.12 date 2009.04.20.09.57.38; author wiz; state dead; branches; next 1.11; 1.11 date 2008.10.24.12.37.37; author wiz; state Exp; branches; next 1.10; 1.10 date 2008.10.14.12.29.11; author wiz; state dead; branches; next 1.9; 1.9 date 2008.04.13.00.51.59; author wiz; state Exp; branches; next 1.8; 1.8 date 2008.04.11.06.08.43; author wiz; state dead; branches; next 1.7; 1.7 date 2007.07.22.06.34.41; author wiz; state Exp; branches 1.7.6.1; next 1.6; 1.6 date 2007.07.20.22.52.44; author wiz; state Exp; branches; next 1.5; 1.5 date 2007.07.19.22.13.44; author wiz; state dead; branches; next 1.4; 1.4 date 2007.05.24.21.51.47; author dmcmahill; state Exp; branches; next 1.3; 1.3 date 2005.10.25.13.14.32; author wiz; state dead; branches; next 1.2; 1.2 date 98.08.07.10.40.26; author agc; state Exp; branches; next 1.1; 1.1 date 97.10.06.14.06.12; author agc; state Exp; branches 1.1.1.1; next ; 1.7.6.1 date 2008.04.13.11.45.17; author spz; state dead; branches; next ; 1.1.1.1 date 97.10.06.14.06.12; author agc; state Exp; branches; next ; desc @@ 1.15 log @Update to 1.4.17: * Noteworthy changes in release 1.4.17 (2013-09-22) [stable] ** Fix compilation with newer glibc headers. ** Fix a failure with diverting large amounts of text on mingw (does not affect platforms that can rename an open file). ** A number of portability improvements inherited from gnulib. @ text @$NetBSD: patch-aa,v 1.14 2011/03/16 14:31:46 wiz Exp $ --- lib/isnan.c.orig 2011-03-01 16:39:28.000000000 +0000 +++ lib/isnan.c @@@@ -118,7 +118,7 @@@@ FUNC (DOUBLE x) /* Be careful to not do any floating-point operation on x, such as x == x, because x may be a signaling NaN. */ # if defined __TINYC__ || defined __SUNPRO_C || defined __DECC \ - || (defined __sgi && !defined __GNUC__) || defined __ICC + || (defined __sgi && !defined __GNUC__) || defined __ICC || defined __vax__ /* The Sun C 5.0, Intel ICC 10.0, and 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 @ 1.14 log @Update to 1.4.16: * Noteworthy changes in release 1.4.16 (2011-03-01) [stable] ** Fix regressions in the `index' builtin. On glibc platforms, this avoids false positives from a strstr bug in glibc 2.9 through 2.12; on many other platforms, it fixes two separate regressions, a false positive introduced in 1.4.11 and a false negative in 1.4.15. ** A number of portability improvements inherited from gnulib. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.13 2010/03/25 04:39:01 jklos Exp $ @ 1.13 log @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. @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- lib/isnan.c.orig 2010-03-24 21:31:20.000000000 +0000 d5 1 a5 2 @@@@ -117,7 +117,7 @@@@ FUNC (DOUBLE x) # else d8 4 a11 3 -# 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 @ 1.12 log @Update to 1.4.13. Set LICENSE (gnu-gpl-v3). * Noteworthy changes in Version 1.4.13 (2009-04-01) [stable] Released by Eric Blake, based on git version 1.4.12.* ** The manual is now distributed under the terms of FDL 1.3. ** The `divert' and `undivert' builtins have been made more efficient when using temporary files for large diversions. ** The `translit' builtin has been made more efficient when the second argument is short. ** The input engine has been optimized for faster processing. ** The command line option `--debugfile', introduced in 1.4.7, now treats its argument as optional, in order to allow setting the debug output back to stderr when used without an argument; and order is now significant with respect to command line files. You must therefore use `m4 --debugfile=trace file', not `m4 file --debugfile trace'. This change does not affect the deprecated `-o'/`--error-output' option. ** The `syscmd' and `esyscmd' builtins can be configured to use an alternate shell, via the new `configure' option `--with-syscmd-shell'. ** A number of portability improvements inherited from gnulib. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.11 2008/10/24 12:37:37 wiz Exp $ d3 11 a13 21 2008-10-23 Bruno Haible Define a dummy SA_NODEFER macro on Interix. * lib/signal.in.h (SA_NODEFER): Define fallback. Reported by Aleksey Cheusov via Thomas Klausner and Eric Blake. --- lib/signal.in.h.orig 2008-09-26 12:32:24.000000000 +0000 +++ lib/signal.in.h @@@@ -176,6 +176,12 @@@@ extern int sigaction (int, const struct #endif /* !@@HAVE_SIGACTION@@, !@@HAVE_STRUCT_SIGACTION_SA_SIGACTION@@ */ +/* Some systems don't have SA_NODEFER. */ +#ifndef SA_NODEFER +# define SA_NODEFER 0 +#endif + + #ifdef __cplusplus } #endif @ 1.11 log @Add build fix for Interix-3.5, from Bruno Haible. @ text @d1 1 a1 1 $NetBSD$ @ 1.10 log @Update to 1.4.12: * Noteworthy changes in Version 1.4.12 (2008-10-10) [stable] Released by Eric Blake, based on git version 1.4.11.* ** Fix regression introduced in 1.4.4b where using `traceon' could delete a macro. This was most noticeable with `traceon(`traceon')', but would also happen in cases such as `foo(traceon(`foo'))'. ** Fix regression introduced in 1.4.7 where `m4 -N9' died with an assertion failure. ** Fix regression introduced in 1.4.11 where `defn' died with an assertion failure on a traced but undefined macro. ** New `-g'/`--gnu' command-line option overrides `-G'/`--traditional'. For now, the environment variable POSIXLY_CORRECT has no effect on M4 behavior; but a future release of M4 will behave as though --traditional is implied if POSIXLY_CORRECT is set (this future change is necessary, because in the current release, there is no way to disable GNU extensions that conflict with POSIX without the use of a non-POSIX command-line argument). Clients of M4 that want to use GNU extensions, even when POSIXLY_CORRECT is set, should start using the -g command-line argument, even though it is currently a no-op if -G did not appear earlier in the command line, so that the client will not break in the face of an upgraded m4 and a POSIXLY_CORRECT execution environment. ** The `-L'/`--nesting-limit' command-line option now defaults to 0 for unlimited on platforms that can detect and deal with stack overflow. On systems that lack alternate stack support, such as Cygwin, and on systems that do not obey the POSIX semantics for distinguishing stack overflow from other exceptions, such as Linux, you can optionally install the libsigsegv library (version 2.6 or newer recommended) to enhance m4's ability to accurately report stack overflow: http://www.gnu.org/software/libsigsegv/ ** A number of portability improvements inherited from gnulib. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.9 2008/04/13 00:51:59 wiz Exp $ d3 5 a7 1 2008-04-12 Bruno Haible d9 4 a12 19 * lib/fpucw.h: Enable the definitions also for x86_64. Needed for NetBSD/x86_64. Reported by Thomas Klausner . --- lib/fpucw.h.orig 2007-12-01 20:55:20.000000000 +0000 +++ lib/fpucw.h @@@@ -1,5 +1,5 @@@@ /* Manipulating the FPU control word. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2008 Free Software Foundation, Inc. Written by Bruno Haible , 2007. This program is free software: you can redistribute it and/or modify @@@@ -61,7 +61,7 @@@@ */ /* Inline assembler like this works only with GNU C. */ -#if defined __i386__ && defined __GNUC__ +#if (defined __i386__ || defined __x86_64__) && defined __GNUC__ a13 1 typedef unsigned short fpucw_t; /* glibc calls this fpu_control_t */ d15 9 @ 1.9 log @Add patch from Bruno Haible (upstream) fixing two of the included gnulib tests that were broken on NetBSD-4.99.58/amd64. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ @ 1.8 log @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. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.7 2007/07/22 06:34:41 wiz Exp $ d3 1 a3 1 From Eric Blake -- will be in m4-1.4.11. d5 21 a25 13 --- 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; } @ 1.7 log @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. @ text @d1 1 a1 1 $NetBSD$ @ 1.7.6.1 log @Pullup ticket 2331 - requested by wiz security update for m4 Revisions pulled up: - pkgsrc/devel/m4/Makefile 1.53 - pkgsrc/devel/m4/PLIST 1.10 - pkgsrc/devel/m4/distinfo 1.21 - pkgsrc/devel/m4/patches/patch-aa removed - pkgsrc/devel/m4/patches/patch-ab removed - pkgsrc/devel/m4/patches/patch-ac removed Module Name: pkgsrc Committed By: wiz Date: Fri Apr 11 06:08:43 UTC 2008 Modified Files: pkgsrc/devel/m4: Makefile PLIST distinfo Removed Files: pkgsrc/devel/m4/patches: patch-aa patch-ab patch-ac Log Message: 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. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.7 2007/07/22 06:34:41 wiz Exp $ @ 1.6 log @Revert update to 1.4.10 because it seems to break autoconf. (breaking mng, firefox, thunderbird, dosbox and probably others) @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.4 2007/05/24 21:51:47 dmcmahill Exp $ d3 1 a3 1 avoid the following incorrect behaviour. d5 13 a17 14 % 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; a18 1 case MODULO: @ 1.5 log @Update to 1.4.10. Add commented out LICENSE=GPLv3 line. Version 1.4.10 - 09 Jul 2007, by Eric Blake (CVS version 1.4.9c) * Upgrade from GPL version 2 to GPL version 3 or later. * A number of portability improvements inherited from gnulib. * Avoid undefined behavior introduced in 1.4.9b in the `format' builtin when handling %c. However, this area of code has never been documented, and currently does not match the POSIX behavior of printf(1), so it may have further changes in the next version. Version 1.4.9b - 29 May 2007, by Eric Blake (CVS version 1.4.9a) * Fix regression introduced in 1.4.9 in the `eval' builtin when performing division. * Fix regression introduced in 1.4.8 in the `-F' option that made it impossible to freeze more than 512 kibibytes of diverted text. * The synclines option `-s' no longer generates sync lines in the middle of multiline comments or quoted strings. * Work around a number of corner-case POSIX compliance bugs in various broken stdio libraries. In particular, the `syscmd' builtin behaves more predictably when stdin is seekable. * The `format' builtin now understands formats such as %a, %A, and %'hhd, and works around a number of platform printf bugs. Furthermore, the sequence format(%*.*d,-1,-1,1) no longer outputs random data. However, some non-compliant platforms such as mingw still have known bugs in strtod that may cause testsuite failures. * The testsuite is improved to also run gnulib portability tests for the features that M4 imports from gnulib. @ text @@ 1.4 log @Fix a division bug when negative numbers are involved. Bump pkgrev. @ text @d1 1 a1 1 $NetBSD$ @ 1.3 log @Update to 1.4.4: Version 1.4.4 - October 2005, by Gary V. Vaughan * ./configure --infodir=/usr/share/info now works correctly. * When any file named on the command line is missing exit with status 1. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.2 1998/08/07 10:40:26 agc Exp $ d3 16 a18 10 --- doc/Makefile.in.orig Sun Nov 6 05:52:26 1994 +++ doc/Makefile.in Mon Jun 16 16:08:39 1997 @@@@ -40,7 +40,7 @@@@ info: m4.info m4.info: m4.texinfo version.texi - cd $(srcdir) && $(MAKEINFO) m4.texinfo + cd $(srcdir) && rm -f m4.info* && $(MAKEINFO) --no-split m4.texinfo dvi: m4.dvi d20 1 @ 1.2 log @Add NetBSD RCS Ids. @ text @d1 1 a1 1 $NetBSD$ @ 1.1 log @Initial revision @ text @d1 2 @ 1.1.1.1 log @Initial import of FreeBSD devel ports into NetBSD packages system. @ text @@