7c5804cf75
Add gentoo patch to fix bison-3.7.1 related compile failure and an additional one doing a similare change for another bison call in Source/WebCore/DerivedSources.pri. Fixes: generated/XPathGrammar.tab.c:124:10: fatal error: XPathGrammar.tab.h: No such file or directory Signed-off-by: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
32 lines
1.5 KiB
Diff
32 lines
1.5 KiB
Diff
From 8959e226fac7f73b9a40e202610bd5e12334561b Mon Sep 17 00:00:00 2001
|
|
From: Peter Seiderer <ps.report@gmx.net>
|
|
Date: Tue, 15 Sep 2020 19:11:18 +0200
|
|
Subject: [PATCH] let bison generate the header directly, to fix build with
|
|
bison 3.7
|
|
|
|
Do the same as the patch taken from [1] for the bison call in
|
|
Source/WebCore/DerivedSources.pri to fix file generation
|
|
for bison 3.7.
|
|
|
|
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
|
---
|
|
Source/WebCore/DerivedSources.pri | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/Source/WebCore/DerivedSources.pri b/Source/WebCore/DerivedSources.pri
|
|
index 57a6b0f7..e9f52614 100644
|
|
--- a/Source/WebCore/DerivedSources.pri
|
|
+++ b/Source/WebCore/DerivedSources.pri
|
|
@@ -987,7 +987,7 @@ GENERATORS += pluginsresources
|
|
# GENERATOR 11: XPATH grammar
|
|
xpathbison.output = ${QMAKE_FILE_BASE}.cpp
|
|
xpathbison.input = XPATHBISON
|
|
-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
|
|
+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
|
|
xpathbison.depends = ${QMAKE_FILE_NAME}
|
|
GENERATORS += xpathbison
|
|
|
|
--
|
|
2.28.0
|
|
|