0008-let-bison-generate-the-header-directly-to-fix-build-.patch 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. From 8959e226fac7f73b9a40e202610bd5e12334561b Mon Sep 17 00:00:00 2001
  2. From: Peter Seiderer <ps.report@gmx.net>
  3. Date: Tue, 15 Sep 2020 19:11:18 +0200
  4. Subject: [PATCH] let bison generate the header directly, to fix build with
  5. bison 3.7
  6. Do the same as the patch taken from [1] for the bison call in
  7. Source/WebCore/DerivedSources.pri to fix file generation
  8. for bison 3.7.
  9. Signed-off-by: Peter Seiderer <ps.report@gmx.net>
  10. ---
  11. Source/WebCore/DerivedSources.pri | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. diff --git a/Source/WebCore/DerivedSources.pri b/Source/WebCore/DerivedSources.pri
  14. index 57a6b0f7..e9f52614 100644
  15. --- a/Source/WebCore/DerivedSources.pri
  16. +++ b/Source/WebCore/DerivedSources.pri
  17. @@ -987,7 +987,7 @@ GENERATORS += pluginsresources
  18. # GENERATOR 11: XPATH grammar
  19. xpathbison.output = ${QMAKE_FILE_BASE}.cpp
  20. xpathbison.input = XPATHBISON
  21. -xpathbison.commands = bison -d -p xpathyy ${QMAKE_FILE_NAME} -o ${QMAKE_FUNC_FILE_OUT_PATH}/${QMAKE_FILE_BASE}.tab.c && $(MOVE) ${QMAKE_FUNC_FILE_OUT_PATH}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.tab.c ${QMAKE_FUNC_FILE_OUT_PATH}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.cpp && $(MOVE) ${QMAKE_FUNC_FILE_OUT_PATH}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.tab.h ${QMAKE_FUNC_FILE_OUT_PATH}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.h
  22. +xpathbison.commands = bison --defines=${QMAKE_FUNC_FILE_OUT_PATH}/${QMAKE_FILE_BASE}.h -p xpathyy ${QMAKE_FILE_NAME} -o ${QMAKE_FUNC_FILE_OUT_PATH}/${QMAKE_FILE_BASE}.cpp
  23. xpathbison.depends = ${QMAKE_FILE_NAME}
  24. GENERATORS += xpathbison
  25. --
  26. 2.28.0