#1146321 node-polite-json: FTBFS with node-babel 8

#1146321#5
Date:
2026-08-31 12:04:58 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/

A wiki page discussing possible solutions is available here:

https://wiki.debian.org/Javascript/KnownPatches?pow_referer=#node-babel7_8

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-polite-json, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
Link ./node_modules/tap -> /usr/share/nodejs/tap
Not found
### @types/tap is required by debian/nodejs/./extlinks but not available
# Typescript definition detected, Fallback to main module
### You SHOULD update your debian/nodejs/./extlinks file!
   dh_auto_build --buildsystem=nodejs
Found debian/nodejs/./build
	cd ./. && sh -ex debian/nodejs/./build
+ tshy
src/index.ts(121,11): error TS2339: Property 'captureStackTrace' does not exist on type 'ErrorConstructor'.
src/index.ts(157,17): error TS2591: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
src/index.ts(181,37): error TS2591: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
src/index.ts(199,49): error TS2591: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
writing tsconfig files...
using existing tsconfig.json
building /<<PKGBUILDDIR>>
tshy config {
  exports: { './package.json': './package.json', '.': './src/index.ts' }
}
exports {
  './package.json': './package.json',
  '.': {
    import: { types: './dist/esm/index.d.ts', default: './dist/esm/index.js' },
    require: {
      types: './dist/commonjs/index.d.ts',
      default: './dist/commonjs/index.js'
    }
  }
}
set dialect { where: 'src', mode: 'esm' }
building esm
build failed
dh_auto_build: error: cd ./. && sh -ex debian/nodejs/./build returned exit code 1
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1146321#10
Date:
2026-08-31 16:06:14 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
node-polite-json, 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 1146321@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-polite-json 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, 31 Aug 2026 15:36:05 +0200
Source: node-polite-json
Architecture: source
Version: 5.0.0-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Changed-By: Xavier Guimard <yadd@debian.org>
Closes: 1146321
Changes:
 node-polite-json (5.0.0-2) unstable; urgency=medium
 .
   * Team upload
   * Fix build with typescript 6 (Closes: #1146321)
Checksums-Sha1:
 cd256645e230174d08706758e3f86c27f6445911 2132 node-polite-json_5.0.0-2.dsc
 a97bd329cef71d815bab6a541aac8fb446c22ef3 2900 node-polite-json_5.0.0-2.debian.tar.xz
Checksums-Sha256:
 8aade637ae6afee1c000fdf34a8398adfd023d2f06108e3cb912618cfec05d0a 2132 node-polite-json_5.0.0-2.dsc
 e2d06fcbacc414b853f1eef6fc69655f011e99544e5cde84aa2a533f91fb15ee 2900 node-polite-json_5.0.0-2.debian.tar.xz
Files:
 09d9d5ab8723122749b500ba2db9930f 2132 javascript optional node-polite-json_5.0.0-2.dsc
 60894f858da04f1f5915db64d761ca61 2900 javascript optional node-polite-json_5.0.0-2.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEAN/li4tVV3nRAF7J9tdMp8mZ7ukFAmqVodoACgkQ9tdMp8mZ
7ul1tA/9F4aWIg+kz1hhnDAhyaXPXTCutGfCjsrP+fYI8u7qwWMwBY5ktmjsn+IC
Vhe6W6rHssQFHpv2t9UMNcQvlld8JdlawZ8UFKTR7PZ/0b8oA3Izb/puOOXWr1uu
tcfx4vJSNt2Ny19Ospjhs2FTgSQFVuwOePHFINBupRkLHXfY00oXo74dWfx3ak3t
b0onGqxwJUn5G/rXuaavQ6X+FgepHG8vAe19zEA/fRnL+Y7j+1UYhhw41oJi7m18
efZWWZOLxR4iEeQ4XzEW0IhVi6z63vl2y0315mKlQ97BQ7uGmzskcDumhrK8p1l2
JMxEuAaQn9cr5SmfmuqTbtuBARaapPtagSvz/VDYszDkubDoWnK4a9N52e9Irxr8
nYAu45c6CreB5XBJR52vA++KSfk0WrqhX+JWovCTmCdUqFYerhfruUEvYZ4dpmPE
SK3lIJWYcdQmutI6TsqYnh1nARc5pApy7RmOjGNcIUYmslShaAs233uyRckUap2C
vKHD8X+uBzzmVFY07GqS5U5Xr53/SrUyQGGUh/cZGSf4jMUuNsk2frUKdl6WrcJF
YEuyYB1xTC/7NGAtT/m4dJbbBNS4fVUHB1+635k/1HjHimv/AytuWlYiYN4w5+sy
mkXy+ywShY1h2B/zFuc5GypVhxobRFVWIeOz4Ll2U8ZSk29RrCU=
=c38q
-----END PGP SIGNATURE-----