#1144579 node-braintree-sanitize-url: FTBFS with node-typescript 6

#1144579#5
Date:
2026-08-16 23:02:11 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-braintree-sanitize-url, 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/rollup
unlink ./node_modules/@rollup/plugin-typescript
Trying to remove ./node_modules/@rollup
unlink ./node_modules/rollup-plugin-dts
rm ./node_modules/.cache
unlink ./node_modules/rollup
unlink ./node_modules/@rollup/plugin-typescript
Trying to remove ./node_modules/@rollup
unlink ./node_modules/rollup-plugin-dts
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure --buildsystem=nodejs
Link ./node_modules/rollup -> /usr/share/nodejs/rollup
Link ./node_modules/@rollup/plugin-typescript -> /usr/share/nodejs/@rollup/plugin-typescript
Link ./node_modules/rollup-plugin-dts -> /usr/share/nodejs/rollup-plugin-dts
   dh_auto_build --buildsystem=nodejs
Found debian/nodejs/./build
	cd ./. && sh -ex debian/nodejs/./build
+ rollup -c debian/nodejs/rollup.config.mjs

src/index.ts, src/constants.ts → dist...
(!) Plugin typescript: @rollup/plugin-typescript TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.
  Visit https://aka.ms/ts6 for migration information.
(!) Plugin typescript: @rollup/plugin-typescript TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
  Visit https://aka.ms/ts6 for migration information.
created dist in 487ms

src/index.ts, src/constants.ts → dist...
(!) Plugin typescript: @rollup/plugin-typescript TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.
  Visit https://aka.ms/ts6 for migration information.
(!) Plugin typescript: @rollup/plugin-typescript TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
  Visit https://aka.ms/ts6 for migration information.
created dist in 259ms

src/index.ts, src/constants.ts → dist...
created dist in 419ms

src/index.ts, src/constants.ts → dist...
created dist in 187ms
   dh_auto_test --buildsystem=nodejs
	mkdir -p node_modules/\@braintree
	ln -s ../../. node_modules/\@braintree/sanitize-url
	/bin/sh -ex debian/tests/pkg-js/test
+ ts-node -T debian/tests/pkg-js/runner.ts
/usr/share/nodejs/ts-node/src/index.ts:865
    return new TSError(diagnosticText, diagnosticCodes, diagnostics);
           ^
TSError: ⨯ Unable to compile TypeScript:
error TS5011: The common source directory of 'tsconfig.json' is './debian/tests/pkg-js'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.
  Visit https://aka.ms/ts6 for migration information.
error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
  Visit https://aka.ms/ts6 for migration information.

    at createTSError (/usr/share/nodejs/ts-node/src/index.ts:865:12)
    at reportTSError (/usr/share/nodejs/ts-node/src/index.ts:869:19)
    at /usr/share/nodejs/ts-node/src/index.ts:1385:34
    at Object.compile (/usr/share/nodejs/ts-node/src/index.ts:1464:13)
    at Module.m._compile (/usr/share/nodejs/ts-node/src/index.ts:1623:30)
    at node:internal/modules/cjs/loader:2003:10
    at Object.require.extensions.<computed> [as .ts] (/usr/share/nodejs/ts-node/src/index.ts:1627:12)
    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) {
  diagnosticCodes: [ 5011, 5107 ]
}
dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1
make: *** [debian/rules:3: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1144579#10
Date:
2026-08-18 13:04:42 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
node-braintree-sanitize-url, 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 1144579@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Edward Betts <edward@4angle.com> (supplier of updated node-braintree-sanitize-url 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: Tue, 18 Aug 2026 13:29:30 +0100
Source: node-braintree-sanitize-url
Architecture: source
Version: 7.1.2-3
Distribution: unstable
Urgency: medium
Maintainer: Home Assistant Team <team+homeassistant@tracker.debian.org>
Changed-By: Edward Betts <edward@4angle.com>
Closes: 1144579
Changes:
 node-braintree-sanitize-url (7.1.2-3) unstable; urgency=medium
 .
   * Fix FTBFS with TypeScript 6 by making the test runner ignore the
     package tsconfig and updating compiler options. (Closes: #1144579)
   * Update to debhelper compatibility level 14.
   * Add dh-sequence-single-binary.
   * Remove debhelper compat 14 auto-applied substvars.
Checksums-Sha1:
 d5b9a1cf2e1da12a19134bcca73f3f351e19f971 2606 node-braintree-sanitize-url_7.1.2-3.dsc
 30bc988b4457fca26b74090f6a97e1597e57635e 4924 node-braintree-sanitize-url_7.1.2-3.debian.tar.xz
 701760f84108fd9dfec0af453dcb43e26608e939 165444 node-braintree-sanitize-url_7.1.2-3.git.tar.xz
 e6777274a896950e21425a372149e97288f4b162 17632 node-braintree-sanitize-url_7.1.2-3_source.buildinfo
Checksums-Sha256:
 f694ac2b196233b43dddba6253ee6f464bdd3ecf2b03a18072951e04529ac9d3 2606 node-braintree-sanitize-url_7.1.2-3.dsc
 3d2b293cf7c5df702814220c548c726abbeb3f06a78bb50e5069973bd42bcdd4 4924 node-braintree-sanitize-url_7.1.2-3.debian.tar.xz
 39f650d37718080e1406b49ee96140ae85543e9200a76aa50b45fd7823d38cec 165444 node-braintree-sanitize-url_7.1.2-3.git.tar.xz
 451f7074361fe62425e66d480f380c0216e235980a3b2a4e156540c502667412 17632 node-braintree-sanitize-url_7.1.2-3_source.buildinfo
Files:
 4f62b5f0fd7f49e94605dad2f06b84c0 2606 javascript optional node-braintree-sanitize-url_7.1.2-3.dsc
 e793b25676f65b786a942ab8075de6e7 4924 javascript optional node-braintree-sanitize-url_7.1.2-3.debian.tar.xz
 24fa3fd135b6be12e42cf87f881aa7e6 165444 javascript None node-braintree-sanitize-url_7.1.2-3.git.tar.xz
 bccd9645642ff9b016dd30ede6fb17bd 17632 javascript optional node-braintree-sanitize-url_7.1.2-3_source.buildinfo
Git-Tag-Info: tag=cdc940f46fd783658e2aa9d4d2bc914099159a37 fp=fb8acfa78c726089c38ad0269605a1098c63b92a
Git-Tag-Tagger: Edward Betts <edward@4angle.com>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmqEU1IACgkQYG0ITkaD
wHmUIhAAm3ast4I5haYAa63nK2NY5LYxeUWAjddjmd5eYiwGqNm25DM5RT1Jel7p
4BIMnCNCAWra2Gu+gCqTfa+WkZT3LnsX9Pl257wZvIdztPnlzxpyyhFxvTtBjMae
3BkwCPP7krrYuY67c47Yz363Or7BV0GTpeGVNLqln5PujmpTwnIRvKYwQCtX0ttp
/YiX0pCDxqbwDF4DEX598eZmGW7Efs1tqgmZrOafmM86Gw7TUk6S2Wmo2BwGtWdC
JyaysjiwORj/PQ/cH3IlPDvjIc3fPbY4jf9CceSupG76NYfXfp0Q1Zbsmi+H65aG
Ks49ZvZzqMCFchb7vJLiYf+VoVDaLQzlEXUiQ3V1dV2IY0XjnvHOKhW4eXakbIlE
iC4JJxr1foaR7RB2g/jU/+TiSFXI2s8wuFVGMIxyhm4/sUcq3pJqs+RAksq3YXOP
E0ndALtUWYtYPd4OrKLYoIfTL2q3+5yCHXw15LKSCK/PvBYJOncPj788X/TAPbln
GphdIENPJaDeI5FVGdRb7e2nmvDPDYoYvAmpXNL5hv6JQ7GNdpzUFQLkveCky2WC
vY7xnRWFr+VsxRUAZPM1O+zPmPsBxZpO1ypRwhqMfabrhw/LbiFKiDVxtMlhRWNs
84d16ZKv/AZlxs2Wx/R9E4gF7fKTQ98xiUlx3QYCvr/x2UmYijw=
=nqgf
-----END PGP SIGNATURE-----