[Pkg-javascript-devel] Bug#1076378: node-xterm: Unable to build package node-xterm from sources in Debian Bookworm because of error TS2769
Sergei Semin
syominsergey at gmail.com
Mon Jul 15 12:57:59 BST 2024
Source: node-xterm
Version: 3.8.1+~cs0.9.0-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source
X-Debbugs-Cc: syominsergey at gmail.com
Dear Maintainer,
I tried to build node-xterm from sources in Debian Bookworm.
I created new VM from official Debian vagrant image:
https://app.vagrantup.com/debian/boxes/bookworm64/versions/12.20240503.1
Then I upgraded OS in VM using "apt update" and "apt upgrade", rebooted VM.
Then I installed build deps for package node-xterm with "apt build-dep node-xterm".
Then I downloaded sources of package node-xterm using command "apt source node-xterm".
Version "3.8.1+~cs0.9.0-1" was downloaded.
Then I entered into directory with sources and ran "dpkg-buildpackage". You can see log of dpkg-buildpackage here:
dpkg-buildpackage: info: source package node-xterm
dpkg-buildpackage: info: source version 3.8.1+~cs0.9.0-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Pirate Praveen <praveen at debian.org>
dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
debian/rules clean
dh clean --with nodejs
debian/rules override_dh_auto_clean
make[1]: Entering directory '/home/vagrant/node-xterm-3.8.1+~cs0.9.0'
dh_auto_clean
rm -rf node_modules lib dist build
make[1]: Leaving directory '/home/vagrant/node-xterm-3.8.1+~cs0.9.0'
dh_clean
dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building node-xterm using existing ./node-xterm_3.8.1+~cs0.9.0.orig-node-pty.tar.gz
dpkg-source: info: building node-xterm using existing ./node-xterm_3.8.1+~cs0.9.0.orig.tar.gz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: building node-xterm in node-xterm_3.8.1+~cs0.9.0-1.debian.tar.xz
dpkg-source: info: building node-xterm in node-xterm_3.8.1+~cs0.9.0-1.dsc
debian/rules binary
dh binary --with nodejs
dh_update_autotools_config
dh_autoreconf
dh_auto_configure --buildsystem=nodejs
Link ./node_modules/@types/glob -> /usr/share/nodejs/@types/glob
Link ./node_modules/@types/chai -> /usr/share/nodejs/@types/chai
Link ./node_modules/@types/jquery -> /usr/share/nodejs/@types/jquery
Link ./node_modules/@types/jsdom -> /usr/share/nodejs/@types/jsdom
Link ./node_modules/@types/mocha -> /usr/share/nodejs/@types/mocha
Link ./node_modules/@types/node -> /usr/share/nodejs/@types/node
Link node-pty/node_modules/@types/mocha -> /usr/share/nodejs/@types/mocha
Link node-pty/node_modules/@types/node -> /usr/share/nodejs/@types/node
Link node_modules/node-pty -> ../node-pty
debian/rules override_dh_auto_build
make[1]: Entering directory '/home/vagrant/node-xterm-3.8.1+~cs0.9.0'
# requires node-pty bindings, embedded but build fails
rm src/Terminal.integration.ts
tsc --skipLibCheck --project .
src/SelectionManager.ts(459,19): error TS2769: No overload matches this call.
Overload 1 of 2, '(intervalId: string | number | Timeout): void', gave the following error.
Argument of type 'Timer' is not assignable to parameter of type 'string | number | Timeout'.
Property '[Symbol.dispose]' is missing in type 'Timer' but required in type 'Timeout'.
Overload 2 of 2, '(id: number): void', gave the following error.
Argument of type 'Timer' is not assignable to parameter of type 'number'.
make[1]: *** [debian/rules:15: override_dh_auto_build] Error 2
make[1]: Leaving directory '/home/vagrant/node-xterm-3.8.1+~cs0.9.0'
make: *** [debian/rules:10: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Build process was failed with error TS2769. I expected it to finish successfully.
-- System Information:
Debian Release: 12.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-22-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=sh: 0: getcwd() failed: No such file or directory
UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
More information about the Pkg-javascript-devel
mailing list