From 628aa4af2d3c67d193cf4a35c6fe23e61d639b7e Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Wed, 26 Jun 2019 17:27:16 +0000 Subject: [PATCH] Fix build with bison 3.4.1 PR: 238141 --- cad/iverilog/files/patch-bison | 58 ++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 cad/iverilog/files/patch-bison diff --git a/cad/iverilog/files/patch-bison b/cad/iverilog/files/patch-bison new file mode 100644 index 000000000000..132210228652 --- /dev/null +++ b/cad/iverilog/files/patch-bison @@ -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 $@ +