antlr4-optimized 4.9.0-1
Package Information
| Description | ANTLR 4 parser generator (optimized fork) ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files. It's widely used to build languages, tools, and frameworks. From a grammar, ANTLR generates a parser that can build and walk parse trees. This is the "optimized" fork of ANTLR 4, which contains many features and optimizations not present in the reference release. This package provides the parser generator. |
|---|---|
| Maintainer | Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> |
| Changed By | Emmanuel Bourg <ebourg@apache.org> |
| Sponsor | ebourg@apache.org |
| Distribution | unstable |
| Architecture | all |
| VCS | git: https://salsa.debian.org/java-team/antlr4-optimized.git (browse) |
| Closes | #1155917 |
| Tracker | https://tracker.debian.org/pkg/antlr4-optimized |
| Uploaded | 2 hours ago |
New Package Report
.changes
| Changed-By | Emmanuel Bourg <ebourg@apache.org> |
|---|---|
| Architecture | source all |
| Distribution | unstable |
| Date | Mon, 30 Nov 2026 19:02:03 +0100 |
| Source | antlr4-optimized |
| Version | 4.9.0-1 |
Changelog
antlr4-optimized (4.9.0-1) unstable; urgency=medium
.
* New upstream release (Closes: #1155917)
- Renamed the source package to antlr4-optimized
- Build the runtime without the XPath API
- Install the antlr4-annotations module
- Depend on libstring-template-maven-plugin-java (>= 1.1-3)
- Updated the Homepage field
* Updated debian/copyright
* Standards-Version updated to 4.7.4
* Removed the Priority field
* Removed the Rules-Requires-Root field.dsc
| Component | main |
|---|---|
| Package-List | libantlr4-optimized-java deb java optional arch=all libantlr4-optimized-runtime-java deb java optional arch=all |
| Section | java |
| Priority | optional |
debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: ANTLR 4 (optimized fork)
Upstream-Contact: Sam Harwell <sam@tunnelvisionlabs.com>
Source: https://github.com/tunnelvisionlabs/antlr4
Files-Excluded: runtime/Java/lib
perf-testsuite
Files: *
Copyright: 2012-2019, The ANTLR Project
License: BSD-3-clause
Files: doc/index.md
Copyright: 2012, The ANTLR Project
2012, The Pragmatic Bookshelf
License: BSD-3-clause
Comment: Pragmatic Bookshelf grants a nonexclusive, irrevocable, royalty-free,
worldwide license to reproduce, distribute, prepare derivative works, and
otherwise use this contribution as part of the ANTLR project and associated
documentation.
Files: scripts/parse-extended-pictographic/ExtendedPictographic.txt
Copyright: 2016, Unicode, Inc.
License: Unicode-DFS-2016
Files: debian/*
Copyright: 2008, John Leuner
2008-2010, Michael Koch
2008, Matthias Klose
2010, Ludovic Claude
2010-2011, Torsten Werner
2011, Damien Raude-Morvan
2012-2015, Tony Mancill
2013-2026, Emmanuel Bourg
License: BSD-3-clause
License: BSD-3-clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
.
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
License: Unicode-DFS-2016
Distributed under the Terms of Use in
https://www.unicode.org/copyright.html.
.
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Unicode data files and any associated documentation
(the "Data Files") or Unicode software and any associated
documentation (the "Software") to deal in the Data Files or Software
without restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, and/or sell copies of the
Data Files or Software, and to permit persons to whom the Data Files
or Software are furnished to do so, provided that either (a) this
copyright and permission notice appear with all copies of the Data
Files or Software, or (b) this copyright and permission notice appear
in associated Documentation.
.
THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE
COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY
CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY
DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
OF THE DATA FILES OR SOFTWARE.
.
Except as contained in this notice, the name of a copyright holder
shall not be used in advertising or otherwise to promote the sale,
use or other dealings in these Data Files or Software without prior
written authorization of the copyright holder.
DFSG Assistant LLM REVIEW 0 blocker, 1 important, 3 minor
This is an LLM based review using a Debian Inference based workflow. It was not written by a member of the DFSG team and has not been checked by one. It is not a decision on the package: it may be wrong, and it may have missed things.
Reviewed 1 hour ago.
Report
DFSG NEW review for antlr4-optimized version 4.9.0-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: No - Packaging is of good quality: Yes
- Issues: 0 blocker, 1 important, 3 minor
- debian/watch: version 5
- debian/copyright: machine-readable
- Scan before the review: nothing found
Licensing
The tree is almost uniformly BSD-3-Clause under The ANTLR Project, and the two non-ANTLR items that are stanced (Unicode data file, Pragmatic Bookshelf text in doc/index.md) are handled. Two files are not described accurately: doc/resources/worker-base.js is a minified Ace editor/es5-shim bundle attributed to The ANTLR Project, with neither the upstream holders/licence nor its source, and the Unicode-derived ExtendedPictographic-Parsed.txt is left to Files: * instead of the Unicode stanza. Neither is installed in a binary, so Policy 2.3 does not require their notices there, but debian/copyright is meant to be complete.
Packaging
Packaging is competent: debhelper-compat 13 with a plain dh sequencer, two arch:all binary packages split between the tool/annotations jars and the runtime jar, Maven poms assigned to the right packages, Dependencies matching the poms' compile dependencies, complete Build-Depends, current Standards-Version (4.7.4 against Policy 4.7.4.1), salsa-ci, and no maintainer scripts. The only defect is one patch without a Forwarded field.
Issues
important licensing 1. doc/resources/worker-base.js is an unlabelled minified Ace editor/es5-shim bundle attributed to The ANTLR Project, with no source in the package ◂
- Files:
debian/copyright:8-10,doc/resources/worker-base.js:43,doc/resources/worker-base.js:1040,debian/source/lintian-overrides:1-2 - Basis: checked, in the package or with a reference tool
- Evidence: File contents:
})(this), ace.define("ace/lib/oop", ["require", "exports", "module"], function(e, t, n) {and laterace.define("ace/lib/es5-shim", ...); no copyright or licence line anywhere in the file. debian/copyright has onlyFiles: */Copyright: 2012-2019, The ANTLR Project/License: BSD-3-clausefor it. The lintian override says# worker-base.js is neither used during the build nor installed afterwards. - Problem: This is a minified copy of the Ace editor's worker-base bundle (BSD-3-Clause, held by Cloud9 IDE, Inc./Ajax.org B.V. and contributors) including the MIT-licensed es5-shim, so debian/copyright names the wrong holder and omits the MIT text. It is also third-party code distributed in minified form with no corresponding source and with its BSD-3 notice stripped. Because the file is neither built nor installed, Policy 2.3 does not require its notice in a binary package, but the source package is distributed too and BSD-3 clause 1 requires the notice to be retained in source redistributions.
- Fix: Simplest: add
doc/resources/worker-base.jsto Files-Excluded, repack the orig tarball, and drop the lintian override. Otherwise add a Files stanza naming Cloud9 IDE, Inc./Ajax.org B.V. (BSD-3-Clause, the existing text) and Kristopher Michael Kowal (MIT, text to be added), and ship the Ace/es5-shim source or a pointer to it.
minor licensing 2. Files: * covers scripts/parse-extended-pictographic/ExtendedPictographic-Parsed.txt, which is derived from Unicode data and belongs under Unicode-DFS-2016 ◂
- Files:
debian/copyright:21-23,scripts/parse-extended-pictographic/ExtendedPictographic-Parsed.txt:1,scripts/parse-extended-pictographic/README.md:5-10 - Basis: checked, in the package or with a reference tool
- Evidence: README:
intended to be parsed by the script parse.py to produce ExtendedPictographic-Parsed.txt; the input file starts# © 2016 Unicode®, Inc. # For terms of use, see http://www.unicode.org/terms_of_use.html. The Unicode stanza's Files pattern names onlyscripts/parse-extended-pictographic/ExtendedPictographic.txt. - Problem: The parsed table is a derivative of Unicode's ExtendedPictographic.txt and carries no notice of its own, so it falls through to
Files: *and is documented as The ANTLR Project under BSD-3-clause. The file is not installed in any binary package, so Policy 2.3 does not require its holder to be named, but debian/copyright should still describe it correctly (the DFSG team asks for a complete file). - Fix: Widen the Unicode stanza to
Files: scripts/parse-extended-pictographic/*(or add the -Parsed file to it) so both files are under Unicode-DFS-2016 with Unicode, Inc.
minor packaging 3. debian/patches/fix-unicodedata.st.patch lacks a Forwarded field ◂
- Files:
debian/patches/fix-unicodedata.st.patch:1-3 - Basis: checked, in the package or with a reference tool
- Evidence:
Author: Andrius Merkys/Description: fix string template input filewith noForwarded:; the other three patches carryForwarded: not-neededorBug:. - Problem: DEP-3 recommends stating whether a patch has been forwarded. This one is a Debian-local workaround for the string-template-maven-plugin escaping, so the absence reads as unforwarded upstream work.
- Fix: Add
Forwarded: not-needed(or forward it upstream and record the URL), as the other patches do.
minor packaging 4. Files-Excluded is set but the version carries no repack suffix ◂
- Files:
debian/copyright,debian/changelog,debian/watch - Basis: found by the review tooling's own checks
- Evidence:
4.9.0-1 - Problem:
debian/copyrighthasFiles-Excluded, so uscan repacks the upstream tarball, but the version indebian/changelogdoes not say so with a suffix such as+dfsgor+ds, as is the convention for a tarball that differs from upstream's. - Fix: Add the suffix to the version, and
Repacksuffixtodebian/watch.
Verified ◂
- Prescan's author check reported no holder outside debian/copyright over 1078 files; I re-grepped Copyright/(C)/©/SPDX/Licensed under/Apache/GPL/LGPL/MPL/public domain/All rights reserved and found no other holders, and no non-free wording (non-commercial, no-modification, field-of-use, 'Good, not Evil').
- debian/copyright is DEP-5 with a complete BSD-3-Clause text and Unicode-DFS-2016 text; no /usr/share/common-licenses pointer is used. No file created by a patch (all hunks modify existing files).
- LICENSE.txt matches the BSD-3 text used in debian/copyright; Java, grammar, template and test sources all carry the ANTLR Project BSD-3 header.
- doc/releasing-antlr.md:334 'Copyright (C) Microsoft Corporation' is a quoted MSBuild banner inside a documentation code block, not a licence claim on the file.
- tool/src/org/antlr/v4/parse/ANTLRLexer.g's 'Copyright : Free BSD' and 'Author: Jim Idle' are comment metadata under the file's ANTLR BSD-3 header.
- No .jar, .class, .pdf, .zip or other archives/built binaries in the tree; runtime/Java/src/main/dot contains .dot diagram sources only.
- Files-Excluded paths (runtime/Java/lib, perf-testsuite) are absent from the unpacked tree.
- Only jars and poms are installed: there are no debian/*.install or *.docs files, and libantlr4-optimized-java.poms assigns root/annotations/tool poms to libantlr4-optimized-java and the runtime pom to libantlr4-optimized-runtime-java. doc/, scripts/ and tests are source-only, which is why the two missing copyright items above are graded below blocker.
- libicu4j-java is scope 'provided' in tool/pom.xml and imported only by the build-time code generator UnicodeDataTemplateController (string-template-maven-plugin, generate-sources); the generated UnicodeData.java uses java.util only, so the tool does not need libicu4j-java at runtime and its absence from the binary Depends is correct.
- The runtime build excludes org/antlr/v4/runtime/tree/xpath/** and ParseTreePattern.findAll is dropped (disable-xpath.patch), because com.tunnelvisionlabs:antlr4-maven-plugin is ignored in debian/maven.ignoreRules; no tool or runtime code references the removed classes, and the reason is documented in the patch.
- Build-Depends all resolve: antlr3-maven-plugin 3.5.3-4, libantlr3-runtime-java 3.5.3-4, libtreelayout-java 1.0.3-2, and libstring-template-maven-plugin-java 1.1-3 (>= 1.1-3) is in unstable per the archive query.
- Binary Depends match the tool pom's compile scope (antlr4-runtime same source, antlr3-runtime, ST4, treelayout), with the annotations jar shipped in the same tool package; the runtime package needs only ${misc:Depends}.
- debhelper-compat 13 with 'dh $@'; both binary packages declare ${misc:Depends} explicitly, as compat 13 requires; Multi-Arch: foreign on the runtime is appropriate for an arch:all Java library.
- Standards-Version 4.7.4 matches the reviewing Policy 4.7.4.1 in its first two components; changelog is well formed (unstable, 4.9.0-1, closes a bug) and the two-files-later stanzas of debian/copyright override Files: * correctly (debian/*, doc/index.md, Unicode data).
- All four patches in debian/patches/series are applied in the tree, are relevant, and the patched unicodedata.st and UnicodeDataTemplateController are internally consistent.
- uscan found the packaged version as the newest upstream release (upstream
4.9.0, packaged4.9.0).
Not confirmed ◂
- doc/images/*.png were not opened. Several are IntelliJ IDEA screenshots (idea-prefs.png, idea-prefs-after-install.png, intellij-maven.png) and book/video thumbnails (tpantlr2.png, tpdsl.png, teronbook.png, tertalk.png) with no per-file stanza, covered only by Files: *; grep reports 'copyright' inside several of them (PNG metadata). doc/ is not installed in any binary, so Policy 2.3 does not require their notices in a package, but their provenance is not established by the tree.
Proposed changes ◂
None.
Uploader's response to the LLM review
Waiting for the uploader's response until , because the review found serious issues.
Are you a maintainer or uploader of this package? Log in with Salsa to comment on the review.