DFSG NEW Queue

DFSG, Licensing & New Packages Team

node-joernio-astgen 3.55.0+ds+~cs5.1.1-1

Package Information

Descriptionwrite the abstract syntax tree of JavaScript and TypeScript as JSON

astgen parses JavaScript, TypeScript, JSX and Vue files with Babel and writes each syntax tree as a JSON file, with the types the TypeScript compiler infers in a separate type map. joern's JavaScript frontend reads these files to build its code property graph.

This package provides the astgen command.

MaintainerJuan Manuel Méndez Rey <juan.mendezr@proton.me>
Changed ByJuan Manuel Méndez Rey <juan.mendezr@proton.me>
Sponsortsimonq2@debian.org
Distributionunstable
Architectureall
VCSgit: https://salsa.debian.org/mendezr/node-joernio-astgen.git (browse)
Closes#1154941
Trackerhttps://tracker.debian.org/pkg/node-joernio-astgen
Uploaded1 hour ago

New Package Report

.changes◂
Changed-ByJuan Manuel Méndez Rey <juan.mendezr@proton.me>
Architecturesource all
Distributionunstable
DateThu, 19 Nov 2026 13:17:33 +0100
Sourcenode-joernio-astgen
Version3.55.0+ds+~cs5.1.1-1
Changelog◂
node-joernio-astgen (3.55.0+ds+~cs5.1.1-1) unstable; urgency=medium
 .
   * Initial release. (Closes: #1154941)
.dsc◂
Componentmain
Package-Listnode-joernio-astgen deb javascript optional arch=all
Sectionjavascript
Priorityoptional
debian/copyright◂
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: astgen
Upstream-Contact: https://github.com/joernio/astgen-monorepo/issues
Source: https://github.com/joernio/astgen-monorepo
 https://github.com/paulmillr/readdirp
Files-Excluded: *
Files-Included:
 javascript-astgen
 readdirp
Comment: astgen-monorepo holds the AST generators of all joern frontends;
 this package builds only javascript-astgen. readdirp 5 comes as a second
 orig component.

Files: *
Copyright: 2022-2026 Max Leuthäuser
 2020-2023 Prabhu Subramanian <prabhu@appthreat.com>
License: Apache-2.0
Comment: javascript-astgen/LICENSE is Apache-2.0 and package.json says so;
 the sources have no headers. The holders are the commit authors of
 javascript-astgen up to tag javascript-astgen/v3.55.0, which includes
 the history of AppThreat/astgen, started by Prabhu Subramanian in 2020.

Files: readdirp/*
Copyright: 2012-2019 Thorsten Lorenz, Paul Miller (https://paulmillr.com)
 2019-2026 Paul Miller
 2024 Bengt Weiße
License: Expat

Files: debian/*
Copyright: 2026 Juan Manuel Méndez Rey <juan.mendezr@proton.me>
License: Apache-2.0

License: Apache-2.0
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
 .
 http://www.apache.org/licenses/LICENSE-2.0
 .
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 .
 On Debian systems, the complete text of the license can be found in
 "/usr/share/common-licenses/Apache-2.0".

License: Expat
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:
 .
 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.
 .
 THE SOFTWARE IS 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. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 DEALINGS IN THE SOFTWARE.

DFSG Assistant LLM REVIEW 0 blocker, 1 important, 0 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 0 hours ago.

Report◂

DFSG NEW review for node-joernio-astgen version 3.55.0+ds+~cs5.1.1-1

Summary

  • Licensing is DFSG-compliant and debian/copyright is accurate: Yes
  • Packaging is of good quality: No
  • Issues: 0 blocker, 1 important, 0 minor
  • debian/watch: version 5
  • debian/copyright: machine-readable
  • Scan before the review: nothing found

Licensing

debian/copyright is DEP-5 and matches the tree: javascript-astgen is Apache-2.0 (its LICENSE and package.json), readdirp 5.1.1 is Expat/MIT (LICENSE plus the notice in index.ts), and the readdirp/* and debian/* stanzas cover the rest. Both licences are DFSG-free and mutually compatible; the Expat text is reproduced and Apache-2.0 is referenced to /usr/share/common-licenses. The prescan found no copyright holder outside debian/copyright, and no non-free wording or licence appears in the source.

Packaging

The packaging is otherwise careful (quilt patch with DEP-3 header, an autopkgtest, correct versioned dependencies, and a clean <!nocheck> split), but the installed command cannot resolve its own dependencies: debian/rules bundles astgen as ESM with --packages=external and installs only readdirp under node_modules, while Node's ESM resolver has no /usr/share/nodejs lookup. The build-time test hides this because it creates its own node_modules symlinks.

Issues

important packaging 1. Installed astgen cannot resolve its external ESM imports (yargs, @babel/parser, @babel/types, typescript) ◂
  • Files: debian/rules:13-15, debian/rules:24-30, debian/astgen.sh:3, debian/patches/0001-run-on-node.patch
  • Basis: inferred from what was read, not seen directly
  • Evidence: debian/rules:15 --format=esm --packages=external, and install -d $(DEST)/dist $(DEST)/node_modules/readdirp is the only node_modules content installed. /usr/share/doc/nodejs/README.Debian: ES6 Modules ... There is no global lookup with ESM.
  • Problem: The esbuild bundle in /usr/share/nodejs/@joernio/astgen/dist is ESM (the patch sets "type": "module") and, because of --packages=external, keeps bare imports of yargs, @babel/parser, @babel/types and typescript. Node's ESM resolver searches only the node_modules directories above the importing file and does not use Debian's /usr/share/nodejs global path (CJS-only); only readdirp is placed under $(DEST)/node_modules, so /usr/bin/astgen fails at startup with ERR_MODULE_NOT_FOUND. The build-time test does not catch this because debian/tests/upstream/run symlinks @babel, typescript and yargs into its private workdir; the installed debian/tests/json would exercise the broken layout.
  • Fix: Install the runtime dependencies as symlinks in $(DEST)/node_modules (e.g. @babel, typescript, yargs pointing into /usr/share/nodejs, as pkgjs-install-minimal/dh-nodejs does), or stop externalising them and bundle them; then run the installed /usr/bin/astgen to confirm.
Verified ◂
  • Read every file under debian/: control, rules, changelog, copyright, gbp.conf, lrc.config, README.source, salsa-ci.yml, astgen.1, astgen.sh, node-joernio-astgen.manpages, source/format, patches/series and 0001-run-on-node.patch, tests/control, tests/json, tests/upstream/{run,register.mjs,hooks.mjs,bun-test-shim.mjs}.
  • Inventoried the upstream tree: javascript-astgen/ (src/.ts, test/.ts and fixtures, scala-tests, scripts, package.json, LICENSE, bun.lock, README.md, regression.yaml) and readdirp/ (index.ts, test/index.test.js, package.json, LICENSE, README.md, package-lock.json, .github, tsconfig.json, jsr.json, benchmark.js).
  • debian/copyright is DEP-5; its three Files stanzas (Files: , readdirp/, debian/*) cover every upstream path, the Expat text is included and Apache-2.0 refers to /usr/share/common-licenses/Apache-2.0.
  • The prescan reported 62 files scanned and every copyright holder found already named in debian/copyright; no files were listed for individual examination.
  • No non-free licence wording (non-commercial, no-modification, field-of-use) was found in javascript-astgen or readdirp; readdirp is MIT (LICENSE and index.ts:15 notice) and javascript-astgen is Apache-2.0 (LICENSE, package.json), which are compatible.
  • No built artefacts are shipped in the source tree: readdirp/index.js and javascript-astgen/dist/* are generated in override_dh_auto_build and removed in override_dh_auto_clean; version.ts is generated upstream from package.json, whose input is present.
  • apt-cache shows esbuild 0.28.2, node-babel7 8.1.2, node-typescript 6.0.3, node-yargs 17.7.3 and nodejs 24.22.3 in the archive, satisfying every versioned Build-Depends/Depends; node-readdirp is only 3.6, so embedding readdirp 5.1.1 as a component is justified.
  • The <!nocheck> build dependencies (node-babel7, node-typescript, node-yargs, nodejs) are used only by override_dh_auto_test; the build target needs only esbuild, and dh at compat 14 skips that override under nocheck, so a nocheck build does not need them.
  • Patches carry DEP-3 headers (Description, Author, Forwarded, Last-Update); Standards-Version 4.7.4 matches the system Policy 4.7.4.1 in its first two components; Vcs-* fields, changelog distribution and autopkgtest control are consistent.
  • uscan found upstream releases with debian/watch; a newer upstream version is available (upstream 3.57.0+~cs5.1.1, packaged 3.55.0+ds+~cs5.1.1), which is not a fault of the package.
  • Every pointer of debian/copyright to /usr/share/common-licenses names a file that is there (Apache-2.0).
Not confirmed ◂
  • The ESM resolution failure of the installed /usr/bin/astgen could not be executed on the reviewing system; it is derived from debian/rules, the patched package.json, and the installed nodejs README.Debian statement that ESM has no global module lookup.
Proposed changes ◂

None.

Uploader's response to the LLM review

Are you a maintainer or uploader of this package? Log in with Salsa to comment on the review.

Back to Dashboard | View all reviews for this package