#1144611 pdf.js: FTBFS with node-typescript 6

Package:
src:pdf.js
Source:
src:pdf.js
Submitter:
Santiago Vila
Date:
2026-08-17 11:36:01 UTC
Severity:
normal
Tags:
#1144611#5
Date:
2026-08-16 23:03:13 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:pdf.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/babel-loader
rm ./node_modules/.cache
unlink ./node_modules/babel-loader
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure --buildsystem=nodejs
Link ./node_modules/babel-loader -> /usr/share/nodejs/babel-loader
Link node_modules/@javascript-obfuscator/escodegen -> ../../debian/build_modules/@javascript-obfuscator/escodegen
Link node_modules/@javascript-obfuscator/estraverse -> ../../debian/build_modules/@javascript-obfuscator/estraverse
Link node_modules/dialog-polyfill -> ../debian/build_modules/dialog-polyfill
Link node_modules/gulp-postcss -> ../debian/build_modules/gulp-postcss
Link node_modules/postcss-dir-pseudo-class -> ../debian/build_modules/postcss-dir-pseudo-class
Link node_modules/postcss-logical -> ../debian/build_modules/postcss-logical
Link node_modules/streamqueue -> ../debian/build_modules/streamqueue
Link node_modules/webpack-stream -> ../debian/build_modules/webpack-stream
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
gulp dist-pre
[22:46:22] Local gulp not found in /<<PKGBUILDDIR>>
[22:46:22] Try running: npm install gulp
[22:46:22] Using globally installed gulp
[22:46:22] Using gulpfile /<<PKGBUILDDIR>>/gulpfile.js
[22:46:22] Starting 'dist-pre'...
[22:46:22] Starting 'generic'...
[22:46:22] Starting 'createBuildNumber'...

### Getting extension build number
This is not a Git repository; using default build number.
Extension build number: 0
(node:75) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
[22:46:22] Finished 'createBuildNumber' after 13 ms
[22:46:22] Starting 'locale'...

### Building localization files
[22:46:22] Finished 'locale' after 105 ms
[22:46:22] Starting 'scriptingGeneric'...

### Building default preferences
[22:46:23] asset pdf.scripting.js 102 KiB [emitted] (name: main)

webpack 5.108.0 compiled successfully
[22:46:23] Finished 'scriptingGeneric' after 993 ms
[22:46:23] Starting 'createGeneric'...

### Creating generic viewer
[BABEL] Note: The code generator has deoptimised the styling of /<<PKGBUILDDIR>>/external/quickjs/quickjs-eval.js as it exceeds the max of 500KB.
[22:46:24] asset pdf.sandbox.js 613 KiB [emitted] [big] (name: main) 1 related asset

webpack 5.108.0 compiled successfully
[22:46:26] asset pdf.js 419 KiB [emitted] [big] (name: main) 1 related asset

webpack 5.108.0 compiled successfully
[22:46:27] asset viewer.js 388 KiB [emitted] [big] (name: main) 1 related asset

webpack 5.108.0 compiled successfully
[22:46:30] asset pdf.worker.js 1.84 MiB [emitted] [big] (name: main) 1 related asset

webpack 5.108.0 compiled successfully
[22:46:30] Finished 'createGeneric' after 7.08 s
[22:46:30] Finished 'generic' after 8.19 s
[22:46:30] Starting 'generic-legacy'...
[22:46:30] Starting 'createBuildNumber'...

### Getting extension build number
This is not a Git repository; using default build number.
Extension build number: 0
[22:46:30] Finished 'createBuildNumber' after 14 ms
[22:46:30] Starting 'locale'...

### Building localization files
[22:46:30] Finished 'locale' after 68 ms
[22:46:30] Starting 'scriptingGenericLegacy'...

### Building default preferences
[22:46:31] asset pdf.scripting.js 202 KiB [emitted] (name: main)

webpack 5.108.0 compiled successfully
[22:46:31] Finished 'scriptingGenericLegacy' after 713 ms
[22:46:31] Starting 'createGenericLegacy'...

### Creating generic (legacy) viewer
[BABEL] Note: The code generator has deoptimised the styling of /<<PKGBUILDDIR>>/external/quickjs/quickjs-eval.js as it exceeds the max of 500KB.
[22:46:33] asset pdf.sandbox.js 724 KiB [emitted] [big] (name: main) 1 related asset

webpack 5.108.0 compiled successfully
[22:46:43] asset viewer.js 1.01 MiB [emitted] [big] (name: main) 1 related asset

webpack 5.108.0 compiled successfully
[22:46:46] asset pdf.js 916 KiB [emitted] [big] (name: main) 1 related asset

webpack 5.108.0 compiled successfully
[22:46:47] asset pdf.worker.js 2.91 MiB [emitted] [big] (name: main) 1 related asset

webpack 5.108.0 compiled successfully
[22:46:47] Finished 'createGenericLegacy' after 16 s
[22:46:47] Finished 'generic-legacy' after 17 s
[22:46:47] Starting 'components'...
[22:46:47] Starting 'createBuildNumber'...

### Getting extension build number
This is not a Git repository; using default build number.
Extension build number: 0
[22:46:47] Finished 'createBuildNumber' after 16 ms
[22:46:47] Starting 'createComponents'...

### Creating generic components
[22:46:47] asset pdf_viewer.js 206 KiB [emitted] (name: main) 1 related asset

webpack 5.108.0 compiled successfully
[22:46:47] Finished 'createComponents' after 505 ms
[22:46:47] Finished 'components' after 521 ms
[22:46:47] Starting 'components-legacy'...
[22:46:47] Starting 'createBuildNumber'...

### Getting extension build number
This is not a Git repository; using default build number.
Extension build number: 0
[22:46:47] Finished 'createBuildNumber' after 13 ms
[22:46:47] Starting 'createComponentsLegacy'...

### Creating generic (legacy) components
[22:46:49] asset pdf_viewer.js 495 KiB [emitted] [big] (name: main) 1 related asset

webpack 5.108.0 compiled successfully
[22:46:49] Finished 'createComponentsLegacy' after 1.3 s
[22:46:49] Finished 'components-legacy' after 1.31 s
[22:46:49] Starting 'image_decoders'...
[22:46:49] Starting 'createBuildNumber'...

### Getting extension build number
This is not a Git repository; using default build number.
Extension build number: 0
[22:46:49] Finished 'createBuildNumber' after 13 ms
[22:46:49] Starting 'createImageDecoders'...

### Creating image decoders
[22:46:49] asset pdf.image_decoders.js 239 KiB [emitted] (name: main) 1 related asset

webpack 5.108.0 compiled successfully
[22:46:49] Finished 'createImageDecoders' after 585 ms
[22:46:49] Finished 'image_decoders' after 599 ms
[22:46:49] Starting 'image_decoders-legacy'...
[22:46:49] Starting 'createBuildNumber'...

### Getting extension build number
This is not a Git repository; using default build number.
Extension build number: 0
[22:46:49] Finished 'createBuildNumber' after 13 ms
[22:46:49] Starting 'createImageDecodersLegacy'...

### Creating (legacy) image decoders
[22:46:50] asset pdf.image_decoders.js 309 KiB [emitted] [big] (name: main) 1 related asset

webpack 5.108.0 compiled successfully
[22:46:50] Finished 'createImageDecodersLegacy' after 1.09 s
[22:46:50] Finished 'image_decoders-legacy' after 1.1 s
[22:46:50] Starting 'lib'...
[22:46:50] Starting 'createBuildNumber'...

### Getting extension build number
This is not a Git repository; using default build number.
Extension build number: 0
[22:46:50] Finished 'createBuildNumber' after 13 ms
[22:46:50] Starting 'scriptingLib'...

### Building default preferences
[22:46:51] asset pdf.scripting.js 102 KiB [emitted] (name: main)

webpack 5.108.0 compiled successfully
[22:46:51] Finished 'scriptingLib' after 248 ms
[22:46:51] Starting 'createLib'...
[BABEL] Note: The code generator has deoptimised the styling of /<<PKGBUILDDIR>>/external/quickjs/quickjs-eval.js as it exceeds the max of 500KB.
[22:46:51] asset pdf.sandbox.js 613 KiB [emitted] [big] (name: main)

webpack 5.108.0 compiled successfully
[22:46:55] Finished 'createLib' after 4.7 s
[22:46:55] Finished 'lib' after 4.97 s
[22:46:55] Starting 'types'...
### Generating TypeScript definitions using `tsc`
[22:46:58] 'types' errored after 2.5 s
[22:46:58] Error: Command failed: tsc --target ESNext --allowJS --declaration --outDir build/types/ --strict --esModuleInterop --forceConsistentCasingInFileNames --emitDeclarationOnly --moduleResolution node src/pdf.js web/pdf_viewer.component.js

    at genericNodeError (node:internal/errors:985:15)
    at wrappedFn (node:internal/errors:539:14)
    at ChildProcess.exithandler (node:child_process:417:12)
    at ChildProcess.emit (node:events:509:28)
    at ChildProcess.emit (node:domain:552:15)
    at maybeClose (node:internal/child_process:1141:16)
    at ChildProcess._handle.onexit (node:internal/child_process:306:5)
    at Process.callbackTrampoline (node:internal/async_hooks:130:17)
[22:46:58] 'dist-pre' errored after 36 s
make[1]: *** [debian/rules:9: override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:6: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1144611#8
Date:
2026-08-17 11:12:32 UTC
From:
To:
Hello,

Bug #1144611 in pdf.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/pdf.js/-/commit/9c4aed2ec9bdbedbcb80029330c18821178f2454
------------------------------------------------------------------------
Fix FTBFS with TypeScript 6

Closes: #1144611
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1144611

#1144611#15
Date:
2026-08-17 11:35:05 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
pdf.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 1144611@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 pdf.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:59:15 +0200
Source: pdf.js
Architecture: source
Version: 2.14.305+dfsg-6
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Changed-By: Xavier Guimard <yadd@debian.org>
Closes: 1144611
Changes:
 pdf.js (2.14.305+dfsg-6) unstable; urgency=medium
 .
   * Team upload
   * Fix FTBFS with TypeScript 6 (Closes: #1144611)
   * Declare compliance with policy 4.7.4
   * Drop "Priority: optional"
   * debian/watch version 5
Checksums-Sha1:
 3fe62ea586bd99021c11abf55548dcfe38fd1f7e 2472 pdf.js_2.14.305+dfsg-6.dsc
 4ea0bc6561d03b2834edbe9f3e8e50bcee2cd4f4 960340 pdf.js_2.14.305+dfsg-6.debian.tar.xz
Checksums-Sha256:
 6c7b40b1c022f07b33814f39d51618475a109cec0eeb17c4435476d132508914 2472 pdf.js_2.14.305+dfsg-6.dsc
 510558f9f0853cc99280120f046606a0fd1999491fef4f2045628ca5105eb198 960340 pdf.js_2.14.305+dfsg-6.debian.tar.xz
Files:
 690c850f2a23f3b873ca0216c2fc2c52 2472 javascript optional pdf.js_2.14.305+dfsg-6.dsc
 9ba12c0a652f689cf3cd3227318d4963 960340 javascript optional pdf.js_2.14.305+dfsg-6.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEAN/li4tVV3nRAF7J9tdMp8mZ7ukFAmqC7IIACgkQ9tdMp8mZ
7ukN4w//WBZt+CotB864gjhQqXikeKyNPL76arzHHB3cFWTqNMGhHCuk9GaHiJk9
RaVj1DVLbZ0QUF2iNoApTJJvlkT+E8j4KKdt+vC6vAVODlF1XPTvOQUBuN7S7piD
frCj4uNp4Avkf+irXgnZq+v8EtrrDdsQA/49SmL57glLbMcPccOVh0h6K9aR8Uib
gpkzX/XRNEepIuj5CcUFEWwlCnEIoNfaYFInb0vJq2zgf06vj4QHvAXSMsNJuiom
KJc4ddj//CquJ9KJBofF76Mrut+/oQ/mq+srVlnXdXPmFkp0N/zIU44FQI6HtNTv
sTKHPFzKr2NznFujjgZ14gpTDbC99hQKqD/i16CAYqma+I39NmioBF4WMt8rSdlh
j59J8fpEjc3lrOHqxhiQRN7H3Cmuvkkx4+C760KU7U0ZdGXkN+vkYhvXH+uzsTm/
TSRvwi44CL1v9aqg6d8FyjaFLPwnzi6tTFCOQXh/aUX2aSaOr+CVpweqV+qBfxWo
STg/L7wiCKNz39wzWcs8rOModyQ/bjGRLamR2di1P4dMuuMSJ8onrmbegLBIHTgn
5nDr/DenmXyzjXhAGwYeaidoVg9UQ+WN8wNxe9iQmlpDlKY6h1e3o6bFsMdyTKcI
8/7oSEkq/u+5kGofdwYHHoAfyO0cQUcZvmCQeflUtCPijU5+KzU=
=73OK
-----END PGP SIGNATURE-----