#1144595 node-nearley: FTBFS with node-typescript 6

#1144595#5
Date:
2026-08-16 23:02:45 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202608/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:node-nearley, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean
   dh_auto_clean --buildsystem=nodejs
	rm -rf ./node_modules/.cache ./.nyc_output
rm ./node_modules/.cache
unlink ./node_modules/@types/moo
Trying to remove ./node_modules/@types
unlink ./node_modules/commander
unlink ./node_modules/expect
unlink ./node_modules/moo
unlink ./node_modules/railroad-diagrams
unlink ./node_modules/randexp
unlink ./node_modules/sinon
rm ./node_modules/.cache
unlink ./node_modules/@types/moo
Trying to remove ./node_modules/@types
unlink ./node_modules/commander
unlink ./node_modules/expect
unlink ./node_modules/moo
unlink ./node_modules/railroad-diagrams
unlink ./node_modules/randexp
unlink ./node_modules/sinon
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure --buildsystem=nodejs
Link ./node_modules/@types/moo -> /usr/share/nodejs/@types/moo
Link ./node_modules/commander -> /usr/share/nodejs/commander
Link ./node_modules/expect -> /usr/share/nodejs/expect
Link ./node_modules/moo -> /usr/share/nodejs/moo
Link ./node_modules/railroad-diagrams -> /usr/share/nodejs/railroad-diagrams
Link ./node_modules/randexp -> /usr/share/nodejs/randexp
Link ./node_modules/sinon -> /usr/share/nodejs/sinon
   dh_auto_build --buildsystem=nodejs
Found debian/nodejs/./build
	cd ./. && sh -ex debian/nodejs/./build
+ bin/nearleyc.js lib/nearley-language-bootstrapped.ne
+ mv tmp lib/nearley-language-bootstrapped.js
   dh_auto_test --buildsystem=nodejs
	ln -s ../. node_modules/nearley
	/bin/sh -ex debian/tests/pkg-js/test
+ mocha -i -f ES6 test/bootstrap.test.js test/lint.test.js test/nearleyc.test.js test/parser.test.js


  bootstrapped lexer
    ✔ lexes directives
    ✔ lexes a simple rule
    ✔ lexes arrows
    ✔ lexes js code
    ✔ lexes charclasses
    ✔ rejects newline in charclass
    ✔ lexes macros
    ✔ lexes strings
    ✔ lexes strings non-greedily
    ✔ lexes a rule

  bootstrapped parser
    ✔ parses directives
    ✔ parses simple rules
    ✔ parses postprocessors
    ✔ parses js code
    ✔ parses options
    ✔ parses tokens
    ✔ parses strings
    ✔ parses charclasses
    ✔ parses macro definitions
    ✔ parses macro use
    ✔ parses macro use
    ✔ parses a rule

  Linter
    ✔ runs without warnings on empty rules
    ✔ warns about undefined symbol
    ✔ doesn't warn about defined symbol
    ✔ doesn't warn about duplicate symbol

  bin/nearleyc
    ✔ builds for ES5 (58ms)
    ✔ builds for CoffeeScript (134ms)
    1) builds for TypeScript
    2) builds for TypeScript with `--strict` with no type errors
    ✔ builds modules in folders (56ms)
    ✔ builds modules with multiple includes of the same file (54ms)
    ✔ warns about undefined symbol (55ms)
    ✔ doesn't warn when used with the --quiet option (54ms)
    ✔ allows trailing comments without newline terminators (52ms)

  nearleyc: example grammars
    ✔ calculator example
    ✔ csscolor example
    ✔ exponential whitespace bug
    ✔ percent bug
    ✔ json
    ✔ classic crontab
    ✔ case-insensitive strings
    ✔ scannerless nearley grammar

  nearleyc: builtins
    ✔ generate includes id
    - nuller

  nearleyc: macros
    ✔ seems to work
    ✔ must be defined before use
    ✔ compiles a simple macro from external file

  Parser: API
    ✔ shows line number in errors
    ✔ shows token index in errors
    ✔ shows user friend error with state stack info
    ✔ displays user friendly error even on lexer errors
    ✔ displays current parser state if no more token expected
    ✔ collapes identical consecutive lines
    ✔ does not infinitely recurse on self-referential states
    ✔ can save state
    ✔ can rewind
    ✔ won't rewind without `keepHistory` option
    ✔ restores line numbers
    ✔ restores column number

  Parser: examples
    ✔ nullable whitespace bug
    ✔ parentheses
    ✔ tokens
    ✔ tokens 2
    ✔ json
    ✔ tosh
    ✔ fun-lang memory test (shouldn't use excessive memory for error reporting)
    ✔ should give accurate line and col counts in error reporting


  65 passing (1s)
  1 pending
  2 failing

  1) bin/nearleyc
       builds for TypeScript:
     SyntaxError: The requested module 'moo' does not provide an export named 'compile'
      at ModuleJobSync.runSync (node:internal/modules/esm/module_job:528:17)
      at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:343:47)
      at loadESMFromCJS (node:internal/modules/cjs/loader:1690:24)
      at Module._compile (node:internal/modules/cjs/loader:1854:5)
      at Object..js (node:internal/modules/cjs/loader:2003:10)
      at Module.load (node:internal/modules/cjs/loader:1594:32)
      at Module._load (node:internal/modules/cjs/loader:1396:12)
      at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
      at Module.require (node:internal/modules/cjs/loader:1617:12)
      at require (node:internal/modules/helpers:153:16)
      at typeScriptCheck (test/nearleyc.test.js:27:50)
      at Context.<anonymous> (test/nearleyc.test.js:74:9)
      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
      at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:809:10)
      at /usr/share/nodejs/mocha/lib/runner.js:959:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:724:14)
      at /usr/share/nodejs/mocha/lib/runner.js:734:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:595:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:702:5)
      at process.processImmediate (node:internal/timers:534:21)

  2) bin/nearleyc
       builds for TypeScript with `--strict` with no type errors:
     SyntaxError: The requested module 'moo' does not provide an export named 'compile'
      at ModuleJobSync.runSync (node:internal/modules/esm/module_job:528:17)
      at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:343:47)
      at loadESMFromCJS (node:internal/modules/cjs/loader:1690:24)
      at Module._compile (node:internal/modules/cjs/loader:1854:5)
      at Object..js (node:internal/modules/cjs/loader:2003:10)
      at Module.load (node:internal/modules/cjs/loader:1594:32)
      at Module._load (node:internal/modules/cjs/loader:1396:12)
      at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
      at Module.require (node:internal/modules/cjs/loader:1617:12)
      at require (node:internal/modules/helpers:153:16)
      at typeScriptCheck (test/nearleyc.test.js:27:50)
      at Context.<anonymous> (test/nearleyc.test.js:79:9)
      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
      at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:809:10)
      at /usr/share/nodejs/mocha/lib/runner.js:959:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:724:14)
      at /usr/share/nodejs/mocha/lib/runner.js:734:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:595:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:702:5)
      at process.processImmediate (node:internal/timers:534:21)



dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 2
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1144595#8
Date:
2026-08-17 10:22:40 UTC
From:
To:
Hello,

Bug #1144595 in node-nearley reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/js-team/node-nearley/-/commit/15a5330dbc80fd5480f87832ed8bf1917efcfc7e
------------------------------------------------------------------------
Fix FTBFS with TypeScript 6

Closes: #1144595
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1144595

#1144595#15
Date:
2026-08-17 10:34:48 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
node-nearley, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1144595@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Xavier Guimard <yadd@debian.org> (supplier of updated node-nearley package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 17 Aug 2026 12:19:53 +0200
Source: node-nearley
Architecture: source
Version: 2.20.1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Changed-By: Xavier Guimard <yadd@debian.org>
Closes: 1144595
Changes:
 node-nearley (2.20.1-2) unstable; urgency=medium
 .
   * Team upload
   * Fix FTBFS with TypeScript 6 (Closes: #1144595)
   * debian/watch version 5
Checksums-Sha1:
 4c1e3a07809cf0ee468a58b7fed26b3a564235d9 2308 node-nearley_2.20.1-2.dsc
 82cd3cdf21a24a5b84ce782f96f9b798f71b909d 6032 node-nearley_2.20.1-2.debian.tar.xz
Checksums-Sha256:
 52b933dd936c41d3e5199c45e185feac0be575b98a9abff7276d283541de788d 2308 node-nearley_2.20.1-2.dsc
 702bc5399f9fba2f4c48310ab6523b497c200efaf3ac7c8ac77f40eda5076dbf 6032 node-nearley_2.20.1-2.debian.tar.xz
Files:
 bb8f549267874ee4997eab6c99d0cfc0 2308 javascript optional node-nearley_2.20.1-2.dsc
 64d72ef521f488af59f2f425930c4a57 6032 javascript optional node-nearley_2.20.1-2.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEAN/li4tVV3nRAF7J9tdMp8mZ7ukFAmqC4NsACgkQ9tdMp8mZ
7um1Mg/+JA7E7ZLqWwPyy0cZbn+urzJIj+00sqn0seSlMjrrqd4yxdf4hm2wY22D
yh+hPKvKzun0SpfOUhmoS+42h5BWh4uewQRxTdWRtQ2hoHUym52Mn4M2VNB6exBa
kn603JUl/+kZ9LsPeezbdw1VntmwS9eR+enzk0XxVeOfqoIrgFuPLOgx6QlOEDhO
5kqpyWTTvCxW1rfyZuh4e5Jv/qpodybtIO9LSNUO79weIkFZI3nXDMrZbkQemt/Z
E+/iow4pw9g91EOj3prSwPf2VrzF5+u5fYtJad0tI7WX+B3NB54svOAbo+TIz03C
sXqlNjHiR3456GaKMHwO/r1VCUAg05MNhyhyFs5y1E8e9AIEIKDfY5NLT0Zu27nH
euk/SEeVne3NVW0OeKzraX5BW6sLkl+L5/CxU85eiAuwYtxTPlZ9Dj7rCkFEi43Z
bPAOQIrYMe8yVk0UPlYLmvVfCAcxkDrWLxPhv1cQ8RyfY8H+KznTPO0Fm/1QgTW0
efFPM17NiwgdR2/Nk3xcnhUoalS3KKnkX91PkYipQyYe42tpsErUFUVIF4bBzltP
wYxAzMPOA83shvdRbA5NcI3MoDScke+0rM0YEestRZ0d/t14JDrdkGNbWV5C7Sm9
Pa1WUB9vBROlVIUWcmwsoZxXIa4sRbu8Tv3umtgau2bxZcO8yms=
=t3fv
-----END PGP SIGNATURE-----