head 1.10; access; symbols pkgsrc-2013Q2:1.10.0.8 pkgsrc-2013Q2-base:1.10 pkgsrc-2012Q4:1.10.0.6 pkgsrc-2012Q4-base:1.10 pkgsrc-2011Q4:1.10.0.4 pkgsrc-2011Q4-base:1.10 pkgsrc-2011Q2:1.10.0.2 pkgsrc-2011Q2-base:1.10 pkgsrc-2009Q4:1.7.0.36 pkgsrc-2009Q4-base:1.7 pkgsrc-2008Q4:1.7.0.34 pkgsrc-2008Q4-base:1.7 pkgsrc-2008Q3:1.7.0.32 pkgsrc-2008Q3-base:1.7 cube-native-xorg:1.7.0.30 cube-native-xorg-base:1.7 pkgsrc-2008Q2:1.7.0.28 pkgsrc-2008Q2-base:1.7 pkgsrc-2008Q1:1.7.0.26 pkgsrc-2008Q1-base:1.7 pkgsrc-2007Q4:1.7.0.24 pkgsrc-2007Q4-base:1.7 pkgsrc-2007Q3:1.7.0.22 pkgsrc-2007Q3-base:1.7 pkgsrc-2007Q2:1.7.0.20 pkgsrc-2007Q2-base:1.7 pkgsrc-2007Q1:1.7.0.18 pkgsrc-2007Q1-base:1.7 pkgsrc-2006Q4:1.7.0.16 pkgsrc-2006Q4-base:1.7 pkgsrc-2006Q3:1.7.0.14 pkgsrc-2006Q3-base:1.7 pkgsrc-2006Q2:1.7.0.12 pkgsrc-2006Q2-base:1.7 pkgsrc-2006Q1:1.7.0.10 pkgsrc-2006Q1-base:1.7 pkgsrc-2005Q4:1.7.0.8 pkgsrc-2005Q4-base:1.7 pkgsrc-2005Q3:1.7.0.6 pkgsrc-2005Q3-base:1.7 pkgsrc-2005Q2:1.7.0.4 pkgsrc-2005Q2-base:1.7 pkgsrc-2005Q1:1.7.0.2 pkgsrc-2005Q1-base:1.7 pkgsrc-2004Q4:1.6.0.12 pkgsrc-2004Q4-base:1.6 pkgsrc-2004Q3:1.6.0.10 pkgsrc-2004Q3-base:1.6 pkgsrc-2004Q2:1.6.0.8 pkgsrc-2004Q2-base:1.6 pkgsrc-2004Q1:1.6.0.6 pkgsrc-2004Q1-base:1.6 pkgsrc-2003Q4:1.6.0.4 pkgsrc-2003Q4-base:1.6 netbsd-1-6-1:1.6.0.2 netbsd-1-6-1-base:1.6 netbsd-1-6:1.4.0.8 netbsd-1-6-RELEASE-base:1.4 pkgviews:1.4.0.4 pkgviews-base:1.4 buildlink2:1.4.0.2 buildlink2-base:1.4 netbsd-1-5-PATCH003:1.4 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.1 netbsd-1-4-RELEASE:1.1 netbsd-1-3-PATCH003:1.1; locks; strict; comment @# @; 1.10 date 2010.08.15.15.16.58; author wiz; state dead; branches; next 1.9; 1.9 date 2010.07.21.11.57.52; author tron; state Exp; branches; next 1.8; 1.8 date 2010.07.20.13.57.28; author tnn; state Exp; branches; next 1.7; 1.7 date 2005.02.18.14.41.38; author wiz; state dead; branches; next 1.6; 1.6 date 2003.01.04.20.16.10; author cjep; state Exp; branches; next 1.5; 1.5 date 2002.11.30.14.04.02; author grant; state dead; branches; next 1.4; 1.4 date 2002.02.10.19.05.57; author tron; state Exp; branches; next 1.3; 1.3 date 2002.01.31.13.43.58; author mjl; state dead; branches; next 1.2; 1.2 date 99.08.24.12.51.25; author agc; state Exp; branches; next 1.1; 1.1 date 98.09.14.15.14.52; author agc; state Exp; branches; next ; desc @@ 1.10 log @Update to 2.4.3: * Changes in version 2.4.3 (2010-08-05): ** Bison now obeys -Werror and --warnings=error for warnings about grammar rules that are useless in the parser due to conflicts. ** Problems with spawning M4 on at least FreeBSD 8 and FreeBSD 9 have been fixed. ** Failures in the test suite for GCC 4.5 have been fixed. ** Failures in the test suite for some versions of Sun Studio C++ have been fixed. ** Contrary to Bison 2.4.2's NEWS entry, it has been decided that warnings about undefined %prec identifiers will not be converted to errors in Bison 2.5. They will remain warnings, which should be sufficient for POSIX while avoiding backward compatibility issues. ** Minor documentation fixes. @ text @$NetBSD: patch-ab,v 1.9 2010/07/21 11:57:52 tron Exp $ Dragonfly PR pkg/43285 Same issue as PR pkg/43098 for devel/m4 --- lib/spawn.in.h.orig 2010-03-17 19:17:04.000000000 +0000 +++ lib/spawn.in.h @@@@ -110,6 +110,7 @@@@ typedef struct /* Flags to be set in the `posix_spawnattr_t'. */ +#if !@@HAVE_POSIX_SPAWN@@ || defined(__APPLE__) #if @@REPLACE_POSIX_SPAWN@@ /* Use the values from the system, for better compatibility. */ /* But this implementation does not support AIX extensions. */ @@@@ -122,6 +123,7 @@@@ typedef struct # define POSIX_SPAWN_SETSCHEDPARAM 0x10 # define POSIX_SPAWN_SETSCHEDULER 0x20 #endif +#endif /* A GNU extension. Use the next free bit position. */ #define POSIX_SPAWN_USEVFORK \ ((POSIX_SPAWN_RESETIDS | (POSIX_SPAWN_RESETIDS - 1) \ @ 1.9 log @Fix build under Mac OS X which got broken by yesterday's DragonFlyBSD's fixes. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.8 2010/07/20 13:57:28 tnn Exp $ @ 1.8 log @Dragonfly PR pkg/43285 Same issue as PR pkg/43098 for devel/m4 @ text @d1 1 a1 1 $NetBSD$ d12 1 a12 1 +#if !@@HAVE_POSIX_SPAWN@@ @ 1.7 log @Update to 2.0: Changes in version 2.0, 2004-12-25: * Possibly-incompatible changes - Bison-generated parsers no longer default to using the alloca function (when available) to extend the parser stack, due to widespread problems in unchecked stack-overflow detection. You can "#define YYSTACK_USE_ALLOCA 1" to require the use of alloca, but please read the manual to determine safe values for YYMAXDEPTH in that case. - Error token location. During error recovery, the location of the syntax error is updated to cover the whole sequence covered by the error token: it includes the shifted symbols thrown away during the first part of the error recovery, and the lookahead rejected during the second part. - Semicolon changes: . Stray semicolons are no longer allowed at the start of a grammar. . Semicolons are now required after in-grammar declarations. - Unescaped newlines are no longer allowed in character constants or string literals. They were never portable, and GCC 3.4.0 has dropped support for them. Better diagnostics are now generated if forget a closing quote. - NUL bytes are no longer allowed in Bison string literals, unfortunately. * New features - GLR grammars now support locations. - New directive: %initial-action. This directive allows the user to run arbitrary code (including initializing @@$) from yyparse before parsing starts. - A new directive "%expect-rr N" specifies the expected number of reduce/reduce conflicts in GLR parsers. - %token numbers can now be hexadecimal integers, e.g., `%token FOO 0x12d'. This is a GNU extension. - The option `--report=lookahead' was changed to `--report=look-ahead'. The old spelling still works, but is not documented and will be removed. - Experimental %destructor support has been added to lalr1.cc. - New configure option --disable-yacc, to disable installation of the yacc command and -ly library introduced in 1.875 for POSIX conformance. * Bug fixes - For now, %expect-count violations are now just warnings, not errors. This is for compatibility with Bison 1.75 and earlier (when there are reduce/reduce conflicts) and with Bison 1.30 and earlier (when there are too many or too few shift/reduce conflicts). However, in future versions of Bison we plan to improve the %expect machinery so that these violations will become errors again. - Within Bison itself, numbers (e.g., goto numbers) are no longer arbitrarily limited to 16-bit counts. - Semicolons are now allowed before "|" in grammar rules, as POSIX requires. @ text @d1 8 a8 5 $NetBSD: patch-ab,v 1.6 2003/01/04 20:16:10 cjep Exp $ --- data/yacc.c 2002/12/28 08:36:02 1.47 +++ data/yacc.c 2003/01/02 23:58:42 1.48 @@@@ -1112,9 +1112,10 @@@@ yyerrlab1: d10 9 a18 7 /* Suppress GCC warning that yyerrlab1 is unused when no action - invokes YYERROR. */ + invokes YYERROR. MacOS 10.2.3's buggy "smart preprocessor" + insists on the trailing semicolon. */ #if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__) - __attribute__ ((__unused__)) + __attribute__ ((__unused__)); d20 4 a23 2 ]b4_location_if([ yylerrsp = yylsp; @ 1.6 log @Append ";" after attribute. From bison CVS repository. This appears to fix a problem when building print/lilypond. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ @ 1.5 log @USE_PKGLOCALEDIR. @ text @d1 5 a5 11 $NetBSD: patch-ab,v 1.4 2002/02/10 19:05:57 tron Exp $ --- po/Makefile.in.in.orig Mon Jan 21 15:03:21 2002 +++ po/Makefile.in.in Sun Feb 10 20:03:16 2002 @@@@ -23,7 +23,7 @@@@ prefix = @@prefix@@ exec_prefix = @@exec_prefix@@ datadir = @@datadir@@ -localedir = $(datadir)/locale +localedir = $(prefix)/$(PKGLOCALEDIR)/locale gettextsrcdir = $(datadir)/gettext/po d7 10 a16 1 INSTALL = @@INSTALL@@ @ 1.4 log @Make sure that locale files go into the correct directory under Solaris. @ text @d1 1 a1 1 $NetBSD$ @ 1.3 log @Update to bison 1.32 * Fix Yacc output file names * Portability fixes * Italian, Dutch, Swedish, Russian translation * Many Bug Fixes * Use of alloca in parsers * When the generated parser lacks debugging code, YYDEBUG is now 0 (as POSIX requires) instead of being undefined. * User Actions Bison has always permitted actions such as { $$ = $1 }: it adds the ending semicolon. Now if in Yacc compatibility mode, the semicolon is no longer output: one has to write { $$ = $1; }. * Better C++ compliance The output parsers try to respect C++ namespaces. * Reduced Grammars Fixed bugs when reporting useless nonterminals. * 64 bit hosts The parsers work properly on 64 bit hosts. * Error messages Some calls to strerror resulted in scrambled or missing error messages. * The verbose report includes the rule line numbers. * Rule line numbers are fixed in traces. * Parse errors Verbose parse error messages from the parsers are better looking. * Fixed parser memory leaks. When the generated parser was using malloc to extend its stacks, the previous allocations were not freed. * Fixed verbose output file. Some newlines were missing. Some conflicts in state descriptions were missing. * Fixed conflict report. Option -v was needed to get the result. * Fixed incorrect processing of some invalid input. * Fixed CPP guards: 9foo.h uses BISON_9FOO_H instead of 9FOO_H. * %token MY_EOF 0 is supported. Before, MY_EOF was silently renumbered as 257. * doc/refcard.tex is updated. * %output, %file-prefix, %name-prefix. * --output * `--defines' and `--graph' have now an optionnal argument which is the output file name. `-d' and `-g' do not change, they do not take any argument. * Portability fixes. * The output file does not define const, as this caused problems when used with common autoconfiguration schemes. If you still use ancient compilers that lack const, compile with the equivalent of the C compiler option `-Dconst='. autoconf's AC_C_CONST macro provides one way to do this. * Added `-g' and `--graph'. * The input and the output files has automatically a similar extension. * NLS support updated; should hopefully be less troublesome. * Added the old Bison reference card. * Added `--locations' and `%locations'. * Added `-S' and `--skeleton'. * `%raw', `-r', `--raw' is disabled. * Special characters are escaped when output. This solves the problems of the #line lines with path names including backslashes. * New directives. * @@$ Automatic location tracking. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.2 1999/08/24 12:51:25 agc Exp $ d3 9 a11 67 Use mkstemp(3) to make temporary files. --- src/files.c.orig Sun Oct 15 21:01:30 1995 +++ src/files.c Mon Sep 14 15:58:01 1998 @@@@ -235,12 +235,64 @@@@ tmpattrsfile = mktemp(stringappend(tmp_base, tmp_len, "atXXXXXX")); tmptabfile = mktemp(stringappend(tmp_base, tmp_len, "taXXXXXX")); tmpdefsfile = mktemp(stringappend(tmp_base, tmp_len, "deXXXXXX")); + if (! noparserflag) + faction = tryopen(actfile, "w+"); + fattrs = tryopen(tmpattrsfile,"w+"); + ftable = tryopen(tmptabfile, "w+"); + + if (definesflag) + { + defsfile = stringappend(name_base, base_length, ".h"); + fdefines = tryopen(tmpdefsfile, "w+"); + } +#else +#ifdef __NetBSD__ +{ + int tmpdefsfd; + + if (! noparserflag && + (faction = fdopen(mkstemp(actfile = stringappend(tmp_base, tmp_len, "act.XXXXXX")), "w+")) == (FILE *) NULL) { + fprintf(stderr, "%s: ", program_name); + perror(actfile); + done(2); + } + if ((fattrs = fdopen(mkstemp(tmpattrsfile = stringappend(tmp_base, tmp_len, "attrs.XXXXXX")), "w+")) == (FILE *) NULL) { + fprintf(stderr, "%s: ", program_name); + perror(tmpattrsfile); + done(2); + } + if ((ftable = fdopen(mkstemp(tmptabfile = stringappend(tmp_base, tmp_len, "tab.XXXXXX")), "w+")) == (FILE *) NULL) { + fprintf(stderr, "%s: ", program_name); + perror(tmptabfile); + done(2); + } + if ((tmpdefsfd = mkstemp(tmpdefsfile = stringappend(tmp_base, tmp_len, "defs.XXXXXX"))) < 0) { + fprintf(stderr, "%s: ", program_name); + perror(tmpdefsfile); + done(2); + } + if (definesflag) { + defsfile = stringappend(name_base, base_length, ".h"); + fdefines = fdopen(tmpdefsfd, "w+"); + } +} #else if (! noparserflag) actfile = mktemp(stringappend(tmp_base, tmp_len, "act.XXXXXX")); tmpattrsfile = mktemp(stringappend(tmp_base, tmp_len, "attrs.XXXXXX")); tmptabfile = mktemp(stringappend(tmp_base, tmp_len, "tab.XXXXXX")); tmpdefsfile = mktemp(stringappend(tmp_base, tmp_len, "defs.XXXXXX")); + if (! noparserflag) + faction = tryopen(actfile, "w+"); + fattrs = tryopen(tmpattrsfile,"w+"); + ftable = tryopen(tmptabfile, "w+"); + + if (definesflag) + { + defsfile = stringappend(name_base, base_length, ".h"); + fdefines = tryopen(tmpdefsfile, "w+"); + } +#endif /* not NetBSD */ #endif /* not MSDOS */ d13 1 a13 1 if (! noparserflag) @ 1.2 log @Update bison to version 1.28. Changes include: * Should compile better now with K&R compilers. * Added NLS. * Fixed a problem with escaping the double quote character. * There is now a FAQ. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.1 1998/09/14 15:14:52 agc Exp $ @ 1.1 log @Modifications to make bison use mkstemp(3). @ text @d1 1 a1 1 $NetBSD$ d5 2 a6 2 --- files.c.orig Sun Oct 15 21:01:30 1995 +++ files.c Mon Sep 14 15:58:01 1998 @