Index: databases/monetdb/files/patch-monetdb5-extras-jaql-parser-jaql.y =================================================================== --- /dev/null +++ databases/monetdb/files/patch-monetdb5-extras-jaql-parser-jaql.y @@ -0,0 +1,25 @@ +--- monetdb5/extras/jaql/parser/jaql.y.orig 2013-01-14 21:06:06.000000000 +0800 ++++ monetdb5/extras/jaql/parser/jaql.y 2017-01-09 04:57:50.801797000 +0800 +@@ -81,12 +81,10 @@ + + + %{ +-#define YYLEX_PARAM j->scanner +- + int jaqllex(YYSTYPE* lvalp, void *scanner); + + void +-jaqlerror(struct _jc* j, char const *msg) ++jaqlerror(struct _jc* j, char const *msg, char const *yy_) + { + if (j->err[0] == '\0') { + char around[32]; +@@ -114,6 +112,8 @@ + + %} + ++%parse-param {void *scanner} ++ + %% + + stmt: jaql ';' Index: devel/bison/Makefile =================================================================== --- devel/bison/Makefile +++ devel/bison/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= bison -PORTVERSION= 2.7.1 -PORTREVISION= 1 +PORTVERSION= 3.0.4 PORTEPOCH= 1 CATEGORIES= devel MASTER_SITES= GNU @@ -11,32 +10,31 @@ MAINTAINER= sunpoet@FreeBSD.org COMMENT= Parser generator from FSF, (mostly) compatible with Yacc +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/COPYING + BUILD_DEPENDS= m4>=1.4.16,1:devel/m4 -RUN_DEPENDS= m4>=1.4.16,1:devel/m4 +RUN_DEPENDS:= ${BUILD_DEPENDS} -OPTIONS_DEFINE= EXAMPLES NLS +OPTIONS_DEFINE= DOCS EXAMPLES NLS OPTIONS_SUB= yes -CONFIGURE_ARGS+=--disable-yacc -CPPFLAGS+= -I${LOCALBASE}/include +CONFIGURE_ARGS= --disable-yacc GNU_CONFIGURE= yes -LDFLAGS+= -L${LOCALBASE}/lib TEST_TARGET= check USE_PERL5= build -USES= charsetfix makeinfo perl5 tar:xz +USES= charsetfix localbase makeinfo perl5 tar:xz INFO= bison -PORTEXAMPLES= calc++ +PORTDATA= * +PORTDOCS= * +PORTEXAMPLES= * NLS_CONFIGURE_ENABLE= nls NLS_USES= gettext post-patch: - @${RM} ${WRKSRC}/doc/bison.info* - @${REINPLACE_CMD} 's/MANS = yacc.1/MANS =/' ${WRKSRC}/doc/Makefile.in - -post-install: - @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/calc++ - ${INSTALL_DATA} ${WRKSRC}/examples/calc++/*.[chly]* ${STAGEDIR}${EXAMPLESDIR}/calc++ + @${REINPLACE_CMD} -e 's|$$(docdir)\(/examples\)|$$(datarootdir)\1/bison|' ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e 's/\(.*\) _Noreturn void/_Noreturn \1 void/' ${WRKSRC}/data/*.c ${WRKSRC}/lib/*.[ch] .include Index: devel/bison/distinfo =================================================================== --- devel/bison/distinfo +++ devel/bison/distinfo @@ -1,2 +1,3 @@ -SHA256 (bison-2.7.1.tar.xz) = b409adcbf245baadb68d2f66accf6fdca5e282cafec1b865f4b5e963ba8ea7fb -SIZE (bison-2.7.1.tar.xz) = 1781068 +TIMESTAMP = 1482778226 +SHA256 (bison-3.0.4.tar.xz) = a72428c7917bdf9fa93cb8181c971b6e22834125848cf1d03ce10b1bb0716fe1 +SIZE (bison-3.0.4.tar.xz) = 1973796 Index: devel/bison/pkg-plist =================================================================== --- devel/bison/pkg-plist +++ devel/bison/pkg-plist @@ -1,28 +1,6 @@ bin/bison man/man1/bison.1.gz share/aclocal/bison-i18n.m4 -%%DATADIR%%/README -%%DATADIR%%/bison.m4 -%%DATADIR%%/c++-skel.m4 -%%DATADIR%%/c++.m4 -%%DATADIR%%/c-like.m4 -%%DATADIR%%/c-skel.m4 -%%DATADIR%%/c.m4 -%%DATADIR%%/glr.c -%%DATADIR%%/glr.cc -%%DATADIR%%/java-skel.m4 -%%DATADIR%%/java.m4 -%%DATADIR%%/lalr1.cc -%%DATADIR%%/lalr1.java -%%DATADIR%%/location.cc -%%DATADIR%%/m4sugar/foreach.m4 -%%DATADIR%%/m4sugar/m4sugar.m4 -%%DATADIR%%/stack.hh -%%DATADIR%%/xslt/bison.xsl -%%DATADIR%%/xslt/xml2dot.xsl -%%DATADIR%%/xslt/xml2text.xsl -%%DATADIR%%/xslt/xml2xhtml.xsl -%%DATADIR%%/yacc.c %%NLS%%share/locale/ast/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/da/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/da/LC_MESSAGES/bison.mo @@ -46,6 +24,7 @@ %%NLS%%share/locale/hr/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/hr/LC_MESSAGES/bison.mo %%NLS%%share/locale/hu/LC_MESSAGES/bison-runtime.mo +%%NLS%%share/locale/ia/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/id/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/id/LC_MESSAGES/bison.mo %%NLS%%share/locale/it/LC_MESSAGES/bison-runtime.mo @@ -63,18 +42,18 @@ %%NLS%%share/locale/nl/LC_MESSAGES/bison.mo %%NLS%%share/locale/pl/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/pl/LC_MESSAGES/bison.mo -%%NLS%%share/locale/pt_BR/LC_MESSAGES/bison-runtime.mo -%%NLS%%share/locale/pt_BR/LC_MESSAGES/bison.mo %%NLS%%share/locale/pt/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/pt/LC_MESSAGES/bison.mo +%%NLS%%share/locale/pt_BR/LC_MESSAGES/bison-runtime.mo +%%NLS%%share/locale/pt_BR/LC_MESSAGES/bison.mo %%NLS%%share/locale/ro/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/ro/LC_MESSAGES/bison.mo %%NLS%%share/locale/ru/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/ru/LC_MESSAGES/bison.mo %%NLS%%share/locale/sl/LC_MESSAGES/bison-runtime.mo +%%NLS%%share/locale/sq/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/sr/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/sr/LC_MESSAGES/bison.mo -%%NLS%%share/locale/sq/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/sv/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/sv/LC_MESSAGES/bison.mo %%NLS%%share/locale/th/LC_MESSAGES/bison-runtime.mo Index: editors/xcoral/files/patch-BR_Parser.c =================================================================== --- /dev/null +++ editors/xcoral/files/patch-BR_Parser.c @@ -0,0 +1,35 @@ +--- BR_Parser.c.orig 2002-12-18 07:22:09 UTC ++++ BR_Parser.c +@@ -116,7 +116,7 @@ + + #define YYDEBUG 1 + +-#define BR_YYERROR YYFAIL ++#define BR_YYERROR YYERROR + + + /*-----------------------------------------------------------------------*/ +@@ -960,12 +960,7 @@ static const short yycheck[] = { 1, + #define YYEOF 0 + #define YYACCEPT goto yyacceptlab + #define YYABORT goto yyabortlab +-#define YYERROR goto yyerrlab1 +-/* Like YYERROR except do call yyerror. +- This remains here temporarily to ease the +- transition to the new meaning of YYERROR, for GCC. +- Once GCC version 2 has supplanted version 1, this can go. */ +-#define YYFAIL goto yyerrlab ++#define YYERROR goto yyerrlab + #define YYRECOVERING() (!!yyerrstatus) + #define YYBACKUP(token, value) \ + do \ +@@ -2465,9 +2460,6 @@ yyerrlab: /* here on detecting error * + yyerror("parse error"); + } + +- goto yyerrlab1; +-yyerrlab1: /* here on error raised explicitly by an action */ +- + if (yyerrstatus == 3) + { + /* if just tried and failed to reuse lookahead token after an error, discard it. */ Index: editors/xcoral/files/patch-BR_Parser.y =================================================================== --- /dev/null +++ editors/xcoral/files/patch-BR_Parser.y @@ -0,0 +1,11 @@ +--- BR_Parser.y.orig 2002-12-18 07:21:52 UTC ++++ BR_Parser.y +@@ -79,7 +79,7 @@ + + #define YYDEBUG 1 + +-#define BR_YYERROR YYFAIL ++#define BR_YYERROR YYERROR + + + /*-----------------------------------------------------------------------*/ Index: graphics/pixie/files/patch-src__ri__rib.l =================================================================== --- graphics/pixie/files/patch-src__ri__rib.l +++ graphics/pixie/files/patch-src__ri__rib.l @@ -1,6 +1,6 @@ ---- src/ri/rib.l.orig +--- src/ri/rib.l.orig 2008-11-12 07:00:24 UTC +++ src/ri/rib.l -@@ -17,7 +17,7 @@ +@@ -17,7 +17,7 @@ static TRibFile *ribStack = NULL; // Overwrite the YYinput so that it uses libz #undef YY_INPUT @@ -9,7 +9,24 @@ YY_FATAL_ERROR( "input in flex scanner failed" ); #endif -@@ -223,7 +223,7 @@ +@@ -208,12 +208,12 @@ version return RIB_VERSION; + \[ return RIB_ARRAY_BEGIN; + \] return RIB_ARRAY_END; + +-\"[^\"]*\" { riblval->string = rstrdup(ribtext+1,CRenderer::globalMemory); riblval->string[strlen(riblval->string)-1] = '\0'; return RIB_TEXT;} +-[+-]?([0-9]+|([0-9]*(\.[0-9]+)?)([eE][+-]?[0-9]+)?) { /*sscanf(ribtext,"%f",&riblval->real);*/ riblval->real = (float) atof(ribtext); return RIB_FLOAT; } +-[+-]?([0-9]+|([0-9]+(\.[0-9]*)?)([eE][+-]?[0-9]+)?) { /*sscanf(ribtext,"%f",&riblval->real);*/ riblval->real = (float) atof(ribtext); return RIB_FLOAT; } ++\"[^\"]*\" { yylval->string = rstrdup(ribtext+1,CRenderer::globalMemory); yylval->string[strlen(yylval->string)-1] = '\0'; return RIB_TEXT;} ++[+-]?([0-9]+|([0-9]*(\.[0-9]+)?)([eE][+-]?[0-9]+)?) { /*sscanf(ribtext,"%f",&yylval->real);*/ yylval->real = (float) atof(ribtext); return RIB_FLOAT; } ++[+-]?([0-9]+|([0-9]+(\.[0-9]*)?)([eE][+-]?[0-9]+)?) { /*sscanf(ribtext,"%f",&yylval->real);*/ yylval->real = (float) atof(ribtext); return RIB_FLOAT; } + + [\t ] ; +-#\!.* { riblval->string = rstrdup(ribtext+2,CRenderer::globalMemory); return RIB_STRUCTURE_COMMENT; } ++#\!.* { yylval->string = rstrdup(ribtext+2,CRenderer::globalMemory); return RIB_STRUCTURE_COMMENT; } + #.* ; + \n { ribLineno++; } + <> { +@@ -223,7 +223,7 @@ version return RIB_VERSION; TRibFile *nextFile = ribStack->next; rib_delete_buffer( YY_CURRENT_BUFFER ); #ifdef HAVE_ZLIB @@ -18,7 +35,7 @@ #else fclose(ribin); #endif -@@ -243,7 +243,7 @@ +@@ -243,7 +243,7 @@ version return RIB_VERSION; rib_delete_buffer( YY_CURRENT_BUFFER ); #ifdef HAVE_ZLIB Index: graphics/tumble/files/patch-parser.y =================================================================== --- /dev/null +++ graphics/tumble/files/patch-parser.y @@ -0,0 +1,20 @@ +--- parser.y.orig 2003-12-09 16:45:41 UTC ++++ parser.y +@@ -110,7 +110,7 @@ image_ranges: + + + input_file_clause: +- FILE_KEYWORD STRING ';' { input_set_file ($2) } ; ++ FILE_KEYWORD STRING ';' { input_set_file ($2); } ; + + image_clause: + IMAGE INTEGER ';' { range_t range = { $2, $2 }; input_images (range); } ; +@@ -119,7 +119,7 @@ images_clause: + IMAGES image_ranges ';' ; + + rotate_clause: +- ROTATE INTEGER ';' { input_set_rotation ($2) } ; ++ ROTATE INTEGER ';' { input_set_rotation ($2); } ; + + unit: + /* empty */ /* default to INCH */ { $$ = 1.0; } Index: japanese/ming/files/patch-actioncompiler-compile.h =================================================================== --- /dev/null +++ japanese/ming/files/patch-actioncompiler-compile.h @@ -0,0 +1,11 @@ +--- actioncompiler/compile.h.orig 2002-06-24 12:21:54 UTC ++++ actioncompiler/compile.h +@@ -10,7 +10,7 @@ typedef struct _buffer *Buffer; + #include "action.h" + + /* shut up bison.simple */ +-void yyerror(char *msg); ++void yyerror(char *msg, char *yy_); + int yylex(); + + #ifndef max Index: japanese/ming/files/patch-src_actioncompiler_swf4compiler.flex =================================================================== --- japanese/ming/files/patch-src_actioncompiler_swf4compiler.flex +++ /dev/null @@ -1,10 +0,0 @@ ---- actioncompiler/swf4compiler.flex~ 2002-06-24 21:21:54.000000000 +0900 -+++ actioncompiler/swf4compiler.flex 2013-03-14 04:49:15.000000000 +0900 -@@ -5,6 +5,7 @@ - - #include "compile.h" - #include "action.h" -+#define YYPARSE_PARAM buffer - #include "swf4compiler.tab.h" /* defines token types */ - - int swf4debug; Index: japanese/ming/files/patch-src_actioncompiler_swf4compiler.y =================================================================== --- japanese/ming/files/patch-src_actioncompiler_swf4compiler.y +++ japanese/ming/files/patch-src_actioncompiler_swf4compiler.y @@ -1,5 +1,18 @@ ---- actioncompiler/swf4compiler.y.orig Mon Dec 2 11:10:00 2002 -+++ actioncompiler/swf4compiler.y Mon Dec 2 11:12:15 2002 +--- actioncompiler/swf4compiler.y.orig 2002-06-24 12:21:54 UTC ++++ actioncompiler/swf4compiler.y +@@ -6,10 +6,10 @@ + #include + #include "compile.h" + +-#define YYPARSE_PARAM buffer +- + %} + ++%parse-param {void *buffer} ++ + %union { + Buffer action; + char *str; @@ -119,7 +119,6 @@ %type expr_opt %type void_function_call @@ -16,7 +29,7 @@ elems : elem -@@ -277,6 +277,7 @@ +@@ -277,6 +277,7 @@ if_stmt bufferWriteS16($3, bufferLength($5)); bufferConcat($3, $5); $$ = $3; } Index: japanese/ming/files/patch-src_actioncompiler_swf5compiler.flex =================================================================== --- japanese/ming/files/patch-src_actioncompiler_swf5compiler.flex +++ /dev/null @@ -1,10 +0,0 @@ ---- actioncompiler/swf5compiler.flex~ 2013-03-14 04:53:36.000000000 +0900 -+++ actioncompiler/swf5compiler.flex 2013-03-14 04:52:36.000000000 +0900 -@@ -5,6 +5,7 @@ - - #include "compile.h" - #include "action.h" -+#define YYPARSE_PARAM buffer - #include "swf5compiler.tab.h" /* defines token types */ - - int swf5debug; Index: japanese/ming/files/patch-src_actioncompiler_swf5compiler.y =================================================================== --- japanese/ming/files/patch-src_actioncompiler_swf5compiler.y +++ japanese/ming/files/patch-src_actioncompiler_swf5compiler.y @@ -1,5 +1,20 @@ ---- actioncompiler/swf5compiler.y.orig 2009-03-06 11:34:48.000000000 +0100 -+++ actioncompiler/swf5compiler.y 2009-03-06 11:37:13.000000000 +0100 +--- actioncompiler/swf5compiler.y.orig 2002-06-24 12:21:54 UTC ++++ actioncompiler/swf5compiler.y +@@ -8,12 +8,12 @@ + #include "compile.h" + #include "assembler.h" + +-#define YYPARSE_PARAM buffer +- + Buffer bf, bc; + + %} + ++%parse-param {void *buffer} ++ + %union + { + Buffer action; @@ -239,7 +239,7 @@ expr_opt switch_stmt Index: lang/hla/Makefile =================================================================== --- lang/hla/Makefile +++ lang/hla/Makefile @@ -12,7 +12,7 @@ MAINTAINER= ports@FreeBSD.org COMMENT= High Level Assembly -USES= bison zip:infozip +USES= bison dos2unix zip:infozip WRKSRC= ${WRKDIR}/hlasrc/trunk/trunk MAKEFILE= makefile.bsd Index: lang/hla/files/patch-hlaparse.bsn =================================================================== --- /dev/null +++ lang/hla/files/patch-hlaparse.bsn @@ -0,0 +1,107 @@ +--- hlaparse.bsn.orig 2017-01-09 13:30:03 UTC ++++ hlaparse.bsn +@@ -1,4 +1,4 @@ +-%pure_parser ++%define api.pure + + + /*****************************/ +@@ -2749,7 +2749,7 @@ doTextBlock: + + _here; + doTextBlock7( $3, YYS &$6 ); +- YYACCEPT ++ YYACCEPT; + } + + +@@ -2763,7 +2763,7 @@ doTextBlock: + + _here; + doTextBlock7a( $3, YYS &$6 ); +- YYACCEPT ++ YYACCEPT; + } + ; + +@@ -2811,7 +2811,7 @@ doStringBlock: + + _here; + doStringBlock( $3, YYS &$6 ); +- YYACCEPT ++ YYACCEPT; + } + + +@@ -2825,7 +2825,7 @@ doStringBlock: + + _here; + doStringBlocka( $3, YYS &$6 ); +- YYACCEPT ++ YYACCEPT; + } + ; + +@@ -2865,7 +2865,7 @@ doMatchBlock: + + _here; + doMatchBlock( $3, YYS &$6 ); +- YYACCEPT ++ YYACCEPT; + } + ; + +@@ -2900,7 +2900,7 @@ doPrint: + fputs( "\n", PrintOut ); + + _endif +- YYACCEPT ++ YYACCEPT; + } + ; + +@@ -2961,7 +2961,7 @@ doParseObjID: + _here; + memcpy( &d1dnReturnVal, &$2, sizeof( union YYSTYPE )); + _here; +- YYACCEPT ++ YYACCEPT; + } + ; + +@@ -2972,7 +2972,7 @@ doParseClassID: + _here; + memcpy( &d1dnReturnVal, &$2, sizeof( union YYSTYPE )); + _here; +- YYACCEPT ++ YYACCEPT; + } + ; + +@@ -10577,7 +10577,7 @@ OptionalInherit: + + Empty + { +- $$ = NULL ++ $$ = NULL; + } + + +@@ -10657,7 +10657,7 @@ OptInherits: + + Empty + { +- $-1 = NULL ++ $-1 = NULL; + } + + /* +@@ -28209,7 +28209,7 @@ OneOrMoreParms: + varTkn /* $4 */ + { + ProcGlobal = $3; +- fastLookup = 1 ++ fastLookup = 1; + } + ';' /* $6 */ + { /* $7 */ Index: multimedia/avinfo/Makefile =================================================================== --- multimedia/avinfo/Makefile +++ multimedia/avinfo/Makefile @@ -20,9 +20,6 @@ PORTDOCS= * - -.include - post-patch: @${REINPLACE_CMD} -e '/^CC=/ d; /^CFLAGS=/ d; /^PREFIX=/ d' \ ${WRKSRC}/config.mk Index: net-mgmt/irrtoolset/files/patch-src-rpsl-rpsl.l =================================================================== --- /dev/null +++ net-mgmt/irrtoolset/files/patch-src-rpsl-rpsl.l @@ -0,0 +1,11 @@ +--- src/rpsl/rpsl.l.orig 2012-07-31 12:10:39 UTC ++++ src/rpsl/rpsl.l +@@ -713,7 +713,7 @@ void handle_object_error(const char *s, + current_object->errors += buffer; + } + +-void rpslerror(const char *, ...) { ++void rpslerror(void *, const char *, ...) { + if (current_attribute) { + current_attribute->errorLine = errorLine; + current_attribute->errorColon = errorColon - yyleng; Index: net-mgmt/irrtoolset/files/patch-src-rpsl-rpsl.y =================================================================== --- /dev/null +++ net-mgmt/irrtoolset/files/patch-src-rpsl-rpsl.y @@ -0,0 +1,31 @@ +--- src/rpsl/rpsl.y.orig 2012-07-31 12:10:39 UTC ++++ src/rpsl/rpsl.y +@@ -75,7 +75,7 @@ extern void handle_object_error(const ch + extern void handle_warning(const char *, ...); + extern int yylex(); + char *token_name(int token_id); +-void rpslerror(const char *s, ...); ++void rpslerror(void *, const char *s, ...); + Attr *changeCurrentAttr(Attr *b); + void handleArgumentTypeError(char *attr, const char *method, int position, + const RPType *correctType, +@@ -83,7 +83,6 @@ void handleArgumentTypeError(char *attr, + const AttrMethod *searchMethod(const AttrRPAttr *rp_attr, const char *method, ItemList *args); + + /* argument to yyparse result of parsing should be stored here */ +-#define YYPARSE_PARAM object + #define yyschema schema + #define enable_yy_parser_debugging enable_rpsl_parser_debugging + +@@ -91,8 +90,9 @@ extern Object *current_object; + + %} + +-%name-prefix="rpsl" +-%output="rpsl.y.cc" ++%name-prefix "rpsl" ++%output "rpsl.y.cc" ++%parse-param {void *object} + + %expect 1 + Index: www/kannel/Makefile =================================================================== --- www/kannel/Makefile +++ www/kannel/Makefile @@ -24,7 +24,7 @@ USERS= kannel GROUPS= kannel -USES= bison gmake iconv ssl tar:bzip2 +USES= gmake iconv ssl tar:bzip2 USE_GCC= yes USE_GNOME= libxml2 USE_RC_SUBR= ${PORTNAME}_bearerbox ${PORTNAME}_smsbox ${PORTNAME}_wapbox @@ -44,6 +44,9 @@ PGSQL_USES= pgsql PGSQL_CONFIGURE_WITH= pgsql +post-patch: + @${RM} ${WRKSRC}/wmlscript/wsgram.y + post-install: .for filename in wapkannel.conf smskannel.conf ${INSTALL_DATA} ${WRKSRC}/gw/${filename} \