Package: antlr4
Version: 4.5.1-2
Severity: wishlist

Dear Maintainer,

rustc tests ideally want the "grun" tool available on $PATH. Since /usr/bin/grun
already exists in Debian for a different package, antlr4 can't directly provide
this; however a workaround is alias grun='java org.antlr.v4.gui.TestRig' as
indicated on the antlr homepage http://www.antlr.org/. On Debian this is 
slightly
different, you have to run this:

$ java -cp /usr/share/java/antlr4.jar:/usr/share/java/antlr4-runtime.jar 
org.antlr.v4.gui.TestRig
java org.antlr.v4.runtime.misc.TestRig GrammarName startRuleName
  [-tokens] [-tree] [-gui] [-ps file.ps] [-encoding encodingname]
  [-trace] [-diagnostics] [-SLL]
  [input-filename(s)]
Use startRuleName='tokens' if GrammarName is a lexer grammar.
Omitting input-filename makes rig read from stdin.

Could you add the following as a convenience script?

~~~~ /usr/share/antlr4/grun
#!/bin/sh
exec java -cp /usr/share/java/antlr4.jar:/usr/share/java/antlr4-runtime.jar 
org.antlr.v4.gui.TestRig
~~~~

Thanks,
X

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable'), (300, 'unstable'), (200, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages antlr4 depends on:
ii  default-jre-headless [java6-runtime-headless]    2:1.7-52.1
ii  libantlr3-runtime-java                           3.5.2-4
ii  libantlr4-runtime-java                           4.5.1-2
ii  libstringtemplate4-java                          4.0.8-2
ii  libtreelayout-java                               1.0.2-1
ii  openjdk-6-jre-headless [java6-runtime-headless]  6b38-1.13.10-1
ii  openjdk-7-jre-headless [java6-runtime-headless]  7u91-2.6.3-1

antlr4 recommends no packages.

antlr4 suggests no packages.

-- no debconf information

__
This is the maintainer address of Debian's Java team
<http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers>. 
Please use
debian-j...@lists.debian.org for discussions and questions.

Reply via email to