1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00

Fix build with bison 3.4.1

PR:		238141
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2019-06-26 17:27:16 +00:00
parent e87d462239
commit 628aa4af2d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=505172

View File

@ -0,0 +1,58 @@
--- Makefile.in.orig 2017-08-24 15:22:49 UTC
+++ Makefile.in
@@ -255,6 +255,7 @@ parse.o: parse.cc
# Build this in two steps to avoid parallel build issues (see pr3462585)
parse.cc: $(srcdir)/parse.y
$(YACC) --verbose -t -p VL -d -o $@ $<
+ touch parse.hh
parse.h: parse.cc
mv parse.cc.h $@ 2>/dev/null || mv parse.hh $@
--- tgt-pcb/fp.y.orig 2017-08-24 15:22:49 UTC
+++ tgt-pcb/fp.y
@@ -1,5 +1,5 @@
-%pure-parser
+%define api.pure
%parse-param {const char*file_path}
%{
--- tgt-pcb/Makefile.in.orig 2017-08-24 15:22:49 UTC
+++ tgt-pcb/Makefile.in
@@ -89,6 +89,7 @@ fp_lex.cc: $(srcdir)/fp.lex
fp.cc: $(srcdir)/fp.y
$(YACC) --verbose -t -p fp -d -o $@ $<
+ touch fp.hh
fp.h: fp.cc
mv fp.cc.h $@ 2>/dev/null || mv fp.hh $@
--- vhdlpp/Makefile.in.orig 2017-08-24 15:22:49 UTC
+++ vhdlpp/Makefile.in
@@ -118,6 +118,7 @@ lexor.cc: $(srcdir)/lexor.lex
# Build this in two steps to avoid parallel build issues (see pr3462585)
parse.cc: $(srcdir)/parse.y
$(YACC) --verbose -t -d -o $@ $<
+ touch parse.hh
parse.h: parse.cc
mv parse.cc.h $@ 2>/dev/null || mv parse.hh $@
--- vhdlpp/parse.y.orig 2017-08-24 15:22:49 UTC
+++ vhdlpp/parse.y
@@ -1,5 +1,5 @@
-%pure-parser
+%define api.pure
%lex-param { yyscan_t yyscanner }
%parse-param {yyscan_t yyscanner }
%parse-param {const char*file_path}
--- vvp/Makefile.in.orig 2017-08-24 15:22:49 UTC
+++ vvp/Makefile.in
@@ -166,6 +166,7 @@ tables.o: tables.cc
# Build this in two steps to avoid parallel build issues (see pr3462585)
parse.cc: $(srcdir)/parse.y
$(YACC) --verbose -t -d -o $@ $<
+ touch parse.hh
parse.h: parse.cc
mv parse.cc.h $@ 2>/dev/null || mv parse.hh $@