[antlr3] 12/17: Increased the default conversion timeout to 30 seconds (Closes: #779973)
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Wed Jul 22 16:58:52 UTC 2015
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository antlr3.
commit cce4f196a355c4898ebb73b40bd877b73821c356
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Wed Jul 22 11:10:04 2015 +0200
Increased the default conversion timeout to 30 seconds (Closes: #779973)
---
debian/changelog | 1 +
.../patches/02-increase-default-conversion-timeout.patch | 14 ++++++++++++++
debian/patches/series | 1 +
3 files changed, 16 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 80bd3f8..920f923 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,7 @@ antlr3 (3.5.2-1) UNRELEASED; urgency=medium
(Closes: #706172)
- Improved the clean target
* Build and install the Ant task (Closes: #590699)
+ * Increased the default conversion timeout to 30 seconds (Closes: #779973)
* debian/watch: Watch the release tags on Github
* Use XZ compression for the upstream tarball
diff --git a/debian/patches/02-increase-default-conversion-timeout.patch b/debian/patches/02-increase-default-conversion-timeout.patch
new file mode 100644
index 0000000..8bd8536
--- /dev/null
+++ b/debian/patches/02-increase-default-conversion-timeout.patch
@@ -0,0 +1,14 @@
+Description: Increase the default conversion timeout to avoid build failures when complex grammars are processed on slow architectures.
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: no
+--- a/tool/src/main/java/org/antlr/analysis/DFA.java
++++ b/tool/src/main/java/org/antlr/analysis/DFA.java
+@@ -57,7 +57,7 @@
+ */
+
+ /** Set to 0 to not terminate early (time in ms) */
+- public static int MAX_TIME_PER_DFA_CREATION = 1*1000;
++ public static int MAX_TIME_PER_DFA_CREATION = 30*1000;
+
+ /** How many edges can each DFA state have before a "special" state
+ * is created that uses IF expressions instead of a table?
diff --git a/debian/patches/series b/debian/patches/series
index 7bd4240..43dc470 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
01-ignore-antlr-plugin.patch
+02-increase-default-conversion-timeout.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/antlr3.git
More information about the pkg-java-commits
mailing list