#1144597 node-openpgp-asmcrypto.js: FTBFS with node-typescript 6

#1144597#5
Date:
2026-08-16 23:02:47 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-openpgp-asmcrypto.js, 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/fs-extra
unlink ./node_modules/typescript
unlink ./node_modules/rollup
unlink ./node_modules/@types/node
Trying to remove ./node_modules/@types
unlink ./node_modules/chai
rm ./node_modules/.cache
unlink ./node_modules/fs-extra
unlink ./node_modules/typescript
unlink ./node_modules/rollup
unlink ./node_modules/@types/node
Trying to remove ./node_modules/@types
unlink ./node_modules/chai
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure --buildsystem=nodejs
Link ./node_modules/fs-extra -> /usr/share/nodejs/fs-extra
Link ./node_modules/typescript -> /usr/share/nodejs/typescript
Link ./node_modules/rollup -> /usr/share/nodejs/rollup
Link ./node_modules/@types/node -> /usr/share/nodejs/@types/node
Link ./node_modules/chai -> /usr/share/nodejs/chai
   dh_auto_build --buildsystem=nodejs
Found debian/nodejs/./build
	cd ./. && sh -ex debian/nodejs/./build
+ node build.js
{
  file: undefined,
  start: undefined,
  length: undefined,
  code: 5107,
  category: 1,
  messageText: {
    messageText: `Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.`,
    category: 1,
    code: 5107,
    next: [ [Object] ]
  },
  relatedInformation: undefined
}
Error: [object Object]
    at file:///<<BUILDDIR>>/node-openpgp-asmcrypto.js-2.3.3%7E0/build.js:20:19
   dh_auto_test --buildsystem=nodejs
	mkdir -p node_modules/\@openpgp
	ln -s ../../. node_modules/\@openpgp/asmcrypto.js
	/bin/sh -ex debian/tests/pkg-js/test
+ mocha --timeout 20000 test/aes.js test/bignum.js test/rsa.js test/sha1.js test/sha256.js test/sha512.js

 Exception during run: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/<<PKGBUILDDIR>>/asmcrypto.all.es8.js' imported from /<<PKGBUILDDIR>>/test/aes.js
    at finalizeResolution (node:internal/modules/esm/resolve:271:11)
    at moduleResolve (node:internal/modules/esm/resolve:865:10)
    at defaultResolve (node:internal/modules/esm/resolve:992:11)
    at #cachedDefaultResolve (node:internal/modules/esm/loader:701:20)
    at #resolveAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:721:38)
    at ModuleLoader.resolveSync (node:internal/modules/esm/loader:759:56)
    at #resolve (node:internal/modules/esm/loader:683:17)
    at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:603:35)
    at ModuleJob.syncLink (node:internal/modules/esm/module_job:163:33)
    at ModuleJob.link (node:internal/modules/esm/module_job:253:17)
    at new ModuleJob (node:internal/modules/esm/module_job:232:26)
    at #getOrCreateModuleJobAfterResolve (node:internal/modules/esm/loader:572:11)
    at afterResolve (node:internal/modules/esm/loader:607:52)
    at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:613:12)
    at node:internal/modules/esm/loader:632:32
    at TracingChannel.tracePromise (node:diagnostics_channel:362:14)
    at ModuleLoader.import (node:internal/modules/esm/loader:628:21)
    at defaultImportModuleDynamicallyForScript (node:internal/modules/esm/utils:239:31)
    at importModuleDynamicallyCallback (node:internal/modules/esm/utils:263:12)
    at exports.doImport (/usr/share/nodejs/mocha/lib/nodejs/esm-utils.js:36:43)
    at formattedImport (/usr/share/nodejs/mocha/lib/nodejs/esm-utils.js:10:28)
    at Object.requireModule [as requireOrImport] (/usr/share/nodejs/mocha/lib/nodejs/esm-utils.js:105:36)
    at exports.loadFilesAsync (/usr/share/nodejs/mocha/lib/nodejs/esm-utils.js:158:34)
    at Mocha.loadFilesAsync (/usr/share/nodejs/mocha/lib/mocha.js:429:19)
    at singleRun (/usr/share/nodejs/mocha/lib/cli/run-helpers.js:174:15)
    at exports.runMocha (/usr/share/nodejs/mocha/lib/cli/run-helpers.js:247:10)
    at exports.handler (/usr/share/nodejs/mocha/lib/cli/run.js:389:11)
    at /usr/share/nodejs/yargs/build/index.cjs:1:8992
    at /usr/share/nodejs/yargs/build/index.cjs:1:4972
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5) {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///<<BUILDDIR>>/node-openpgp-asmcrypto.js-2.3.3%7E0/asmcrypto.all.es8.js'
}
dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1144597#8
Date:
2026-08-17 10:38:38 UTC
From:
To:
Hello,

Bug #1144597 in node-openpgp-asmcrypto.js 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-openpgp-asmcrypto.js/-/commit/57546803ff51f6973a75f5ded62dc9db3a8a5b6a
------------------------------------------------------------------------
Fix FTBFS with TypeScript 6

Closes: #1144597
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1144597

#1144597#15
Date:
2026-08-17 10:49:01 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
node-openpgp-asmcrypto.js, 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 1144597@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-openpgp-asmcrypto.js 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:31:56 +0200
Source: node-openpgp-asmcrypto.js
Architecture: source
Version: 2.3.3~0-6
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Changed-By: Xavier Guimard <yadd@debian.org>
Closes: 1144597
Changes:
 node-openpgp-asmcrypto.js (2.3.3~0-6) unstable; urgency=medium
 .
   * Team upload
   * Fix FTBFS with TypeScript 6 (Closes: #1144597)
   * Apply multiarch hints from UDD
Checksums-Sha1:
 6f7fdd2910425591bf2332b4337a0fdb3fa9f2fe 2269 node-openpgp-asmcrypto.js_2.3.3~0-6.dsc
 c5725131dcf73a7b1b41eb6cde2a99457c2801c0 8224 node-openpgp-asmcrypto.js_2.3.3~0-6.debian.tar.xz
Checksums-Sha256:
 e8b3a3f901f7870388e24edfdb892accde11d749b89bfbcdc7db23327041ed28 2269 node-openpgp-asmcrypto.js_2.3.3~0-6.dsc
 ed9da9e6ab6c9c78e6fd89f75d5de2f848a835f80c3326f9c0ec424123ddec3c 8224 node-openpgp-asmcrypto.js_2.3.3~0-6.debian.tar.xz
Files:
 7d875514362a5cc42c8439f6d4c790e0 2269 javascript optional node-openpgp-asmcrypto.js_2.3.3~0-6.dsc
 3472ed6a9d2d062e92b5c64773cb23ca 8224 javascript optional node-openpgp-asmcrypto.js_2.3.3~0-6.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEAN/li4tVV3nRAF7J9tdMp8mZ7ukFAmqC5DMACgkQ9tdMp8mZ
7ulxkA/+OWrX1pveYr2CeYwnNRg4xs7h9spy63tkUgXn7wARWhgYdpK7pJESWiVz
76VEUEcgAfCit6TFOloK4rElcsIoVnhkCkeh+uSO9rfa+H7j14VZhq65qpPkZVCk
LeZHPsm79YdB9LqMgnZzW6XkSvb8mww2yHIZutoJa4gPfAtA/FO96v1P8k3blqTE
biFzgF+D5ehgXcXK/sbglJ76KGRn9S8HBKg6NtbUINHI/wboYdylsUsoOAEH23Ta
pUR20Se7rivZ2aqZ93bL14v8lEnvozZcxSuQnMXrMvh8QroXBmn1w2D9o9P+SFg2
yWV6ma+aSyoBfyXJq75x4HgfSeudlXnTlnPqSLUJjnr3KBEOXxXfs845Wc+lKH5E
+MIympCD61WvkhgO9JYLcEdSsoTIDbkn7Lp4Wo9d2OkChN0xwPZgjCSv1qeOCVCB
qv9pajuLbwyThob1kMPRUgJSZNOtsMLrHCt4RFCG7WYOi9jNwdSy7nwfRdOEGxB2
1X97fI21GaCrU0gSw8mZWmBtNQLWuZjKddFwWsPEtC0BaF+U13xpL9fgnsN71+dL
ZgnHOmW4b08x5x4/dLnhlJbGpBhz+tP0+ZlvPqhNr2UjOcx3tieO4X3CvBQicemV
lqLqZ/kxJd29XFhdCFx2b99UzGso/95+rNVvmMSR/wXVvyQWLkk=
=HkeX
-----END PGP SIGNATURE-----