diff options
author | Britney Fransen <brfransen@gmail.com> | 2023-05-29 18:22:03 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2023-05-29 18:22:03 (GMT) |
commit | a21df060d2c4fe043e84ce4894afacafcc582b16 (patch) | |
tree | 8f06b34a200a234d22930a5aafaead053a80d899 /linhes/qt5-webkit/qt5-webkit-bison-3.7.patch | |
parent | bb3e0b9a02ec0d57dc51807cf709b806c77355d6 (diff) | |
download | linhes_pkgbuild-a21df060d2c4fe043e84ce4894afacafcc582b16.zip linhes_pkgbuild-a21df060d2c4fe043e84ce4894afacafcc582b16.tar.gz linhes_pkgbuild-a21df060d2c4fe043e84ce4894afacafcc582b16.tar.bz2 |
qt5-webkit: patches
Diffstat (limited to 'linhes/qt5-webkit/qt5-webkit-bison-3.7.patch')
-rw-r--r-- | linhes/qt5-webkit/qt5-webkit-bison-3.7.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/linhes/qt5-webkit/qt5-webkit-bison-3.7.patch b/linhes/qt5-webkit/qt5-webkit-bison-3.7.patch new file mode 100644 index 0000000..13dd681 --- /dev/null +++ b/linhes/qt5-webkit/qt5-webkit-bison-3.7.patch @@ -0,0 +1,46 @@ +From d92b11fea65364fefa700249bd3340e0cd4c5b31 Mon Sep 17 00:00:00 2001 +From: Dmitry Shachnev <mitya57@gmail.com> +Date: Tue, 4 Aug 2020 21:04:06 +0300 +Subject: [PATCH] Let Bison generate the header directly, to fix build with + Bison 3.7 + +Starting with Bison 3.7, the generated C++ file #include's the header +by default, instead of duplicating it. So we should not delete it. + +Remove the code to add #ifdef guards to the header, since Bison adds +them itself since version 2.6.3. +--- + Source/WebCore/css/makegrammar.pl | 21 +-------------------- + 1 file changed, 1 insertion(+), 20 deletions(-) + +diff --git a/Source/WebCore/css/makegrammar.pl b/Source/WebCore/css/makegrammar.pl +index 5d63b08102eb5..9435701c70612 100644 +--- a/Source/WebCore/css/makegrammar.pl ++++ b/Source/WebCore/css/makegrammar.pl +@@ -73,25 +73,6 @@ + } + + my $fileBase = File::Spec->join($outputDir, $filename); +-my @bisonCommand = ($bison, "-d", "-p", $symbolsPrefix, $grammarFilePath, "-o", "$fileBase.cpp"); ++my @bisonCommand = ($bison, "--defines=$fileBase.h", "-p", $symbolsPrefix, $grammarFilePath, "-o", "$fileBase.cpp"); + push @bisonCommand, "--no-lines" if $^O eq "MSWin32"; # Work around bug in bison >= 3.0 on Windows where it puts backslashes into #line directives. + system(@bisonCommand) == 0 or die; +- +-open HEADER, ">$fileBase.h" or die; +-print HEADER << "EOF"; +-#ifndef CSSGRAMMAR_H +-#define CSSGRAMMAR_H +-EOF +- +-open HPP, "<$fileBase.cpp.h" or open HPP, "<$fileBase.hpp" or die; +-while (<HPP>) { +- print HEADER; +-} +-close HPP; +- +-print HEADER "#endif\n"; +-close HEADER; +- +-unlink("$fileBase.cpp.h"); +-unlink("$fileBase.hpp"); +- |