[Pkg-matrix-maintainers] Bug#1015268: olm: jasmine tests fail with nodejs 18

Jérémy Lal kapouer at melix.org
Mon Jul 18 17:23:32 BST 2022


Source: olm
Version: 3.2.11~dfsg-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)

Hi,

nodejs 18 exposes `global.fetch` API which makes some code
believe it is sitting in a real browser.

olm test fails because of that.
A workaround is to invoke it with

NODE_OPTIONS="--no-experimental-fetch" jasmine --config=test/jasmine.json

Jérémy

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.18.0-2-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=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-matrix-maintainers mailing list