[Pkg-javascript-devel] Bug#1033071: nodejs: Build errors on node-js packages due to support for tsc 3.6

Walter Lozano walter.lozano at collabora.com
Thu Mar 16 14:09:42 GMT 2023


Package: nodejs
Version: 12.22.12~dfsg-1~deb11u3
Severity: important

Dear Maintainer,

In commit [1] a symlink to @types/node/tsc3.6 was included to mitigate
regression introduced in 12.22.12 which dropped support for tsc 3.6 (Closes:
#1014914)

With this fix, other packages start to experience build errors, as example

$ docker run -it --rm debian:bullseye-slim sh -c 'cat /etc/apt/sources.list |
sed s/^deb/deb-src/ > /etc/apt/sources.list.d/srcs.list && apt update && apt
install --no-install-recommends -y apt-src && apt-src install node-babel7 &&
apt-src build node-babel7'
...
cp -rL /usr/share/nodejs/\@types/node ./node_modules/\@types
cp: cannot copy cyclic symbolic link '/usr/share/nodejs/@types/node/tsc3.6'
dh_auto_configure: error: cp -rL /usr/share/nodejs/\@types/node
./node_modules/\@types returned exit code 1
make: *** [debian/rules:15: binary] Error 255
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
E: Building failed

I cannot confirm how many packages are affected but an initial list is:

- node-babel7
- node-domutils
- node-follow-redirects
- node-htmlparser2
- node-jschardet
- node-recast

[1] https://salsa.debian.org/js-
team/nodejs/-/commit/c7b5bc3fb81df93b194bd9caa46bea6f226a9f7a

Thanks in advance!

Walter


-- System Information:
Debian Release: bookworm/sid
  APT prefers jammy-updates
  APT policy: (500, 'jammy-updates'), (500, 'jammy-security'), (500, 'jammy'), (100, 'jammy-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.19.0-35-generic (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages nodejs depends on:
ii  libc6      2.35-0ubuntu3.1
ii  libnode72  12.22.9~dfsg-1ubuntu3

Versions of packages nodejs recommends:
ii  ca-certificates  20211016ubuntu0.22.04.1
ii  nodejs-doc       12.22.9~dfsg-1ubuntu3

Versions of packages nodejs suggests:
pn  npm  <none>

-- no debconf information



More information about the Pkg-javascript-devel mailing list