| |
@@ -1,7 +1,7 @@
|
| |
%global antlr_version 3.5.2
|
| |
%global c_runtime_version 3.4
|
| |
%global javascript_runtime_version 3.1
|
| |
- %global baserelease 21
|
| |
+ %global baserelease 22
|
| |
|
| |
Summary: ANother Tool for Language Recognition
|
| |
Name: antlr3
|
| |
@@ -18,6 +18,15 @@
|
| |
Patch0: 0001-java8-fix.patch
|
| |
# Generate OSGi metadata
|
| |
Patch1: osgi-manifest.patch
|
| |
+ # Increase the default conversion timeout to avoid build failures when complex
|
| |
+ # grammars are processed on slow architectures. Patch from Debian.
|
| |
+ Patch2: 0002-conversion-timeout.patch
|
| |
+ # Fix problems with the C template. Patch from Debian.
|
| |
+ Patch3: 0003-fix-c-template.patch
|
| |
+ # Keep Token.EOF_TOKEN for backwards compatibility. Patch from Debian.
|
| |
+ Patch4: 0004-eof-token.patch
|
| |
+ # Make parsers reproducible. Patch from Debian.
|
| |
+ Patch5: 0005-reproducible-parsers.patch
|
| |
|
| |
BuildRequires: maven-local
|
| |
BuildRequires: mvn(org.antlr:antlr)
|
| |
@@ -130,6 +139,10 @@
|
| |
sed -i "s,\${buildNumber},`cat %{_sysconfdir}/fedora-release` `date`," tool/src/main/resources/org/antlr/antlr.properties
|
| |
%patch0 -p1
|
| |
%patch1
|
| |
+ %patch2 -p1
|
| |
+ %patch3 -p1
|
| |
+ %patch4 -p1
|
| |
+ %patch5 -p1
|
| |
|
| |
# remove pre-built artifacts
|
| |
find -type f -a -name *.jar -delete
|
| |
@@ -263,6 +276,9 @@
|
| |
%doc tool/LICENSE.txt
|
| |
|
| |
%changelog
|
| |
+ * Sat Apr 27 2019 Jerry James <loganjerry@gmail.com> - 1:3.5.2-22
|
| |
+ - Add Debian patches
|
| |
+
|
| |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.5.2-21
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
| |
|
| |
The cvc4 package currently fails to build due to bugs in the antlr3 C template, namely use of an undefined "_empty" symbol and failure to compute follow sets correctly. I looked to see if anybody else had encountered the problem, and found that Debian had a patch to fix it. They have a few other patches which also improve antlr3 in various ways. This pull request adds those patches.