#1144514 njs: fails to run with QuickJS engine

Package:
njs
Source:
njs
Description:
JavaScript for Nginx command-line utility
Submitter:
Slavko
Date:
2026-08-18 05:07:01 UTC
Severity:
normal
#1144514#5
Date:
2026-08-16 12:40:03 UTC
From:
To:
When i want to start njs CLI with QuickJS engine, it fails to start:

    njs -n QuickJS
    JS_NewContext() failed
    njs_engine_qjs_init() failed
    njs_create_engine() failed

Without this option, njs runs with native engine::

    njs
    interactive njs (njs:1.0.0)

    >> njs.engine
    'njs'

The docs for njs module [1] has note, that from version 1.0.0, the njs
engine is deprecated, but i cannot test scripts in CLI with new engine,
thus i set severity to grave.

regards

[1] https://nginx.org/en/docs/http/ngx_http_js_module.html#js_engine

#1144514#10
Date:
2026-08-16 17:18:55 UTC
From:
To:
Le dim. 16 août 2026 à 14:41, Slavko <linux@slavino.sk> a écrit :

You're right, it's even worse, the package currently FTBFS,
as several -dev packages are missing during  build.

I'm currently trying to fix this.

#1144514#15
Date:
2026-08-18 05:05:15 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
libnginx-mod-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 1144514@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jérémy Lal <kapouer@melix.org> (supplier of updated libnginx-mod-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: Tue, 18 Aug 2026 00:45:34 +0200
Source: libnginx-mod-js
Architecture: source
Version: 1.0.0-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Nginx Maintainers <pkg-nginx-maintainers@alioth-lists.debian.net>
Changed-By: Jérémy Lal <kapouer@melix.org>
Closes: 1144514
Changes:
 libnginx-mod-js (1.0.0-2) unstable; urgency=medium
 .
   * For some reason previous version was missing some build deps.
   * patch: upstream fixes for quickjs-ng >= 0.15. Closes: #1144514.
Checksums-Sha1:
 fa40310b8898fb8b4f7749f566211cf7f3be4ac1 2379 libnginx-mod-js_1.0.0-2.dsc
 24cdcceef3fcc15b96cdcad746efab4fd45054f6 10180 libnginx-mod-js_1.0.0-2.debian.tar.xz
 9e5d93d8616469887f1689d4d2c41a2f4220f333 10600 libnginx-mod-js_1.0.0-2_source.buildinfo
Checksums-Sha256:
 45948936b0bc68458581543f56d76c1cf034d088f00952f1a4ba50ee4ad83cda 2379 libnginx-mod-js_1.0.0-2.dsc
 d9857e2a98d95f624a3e8c6ac45c636e2895084646043931de5edb5fa21c7202 10180 libnginx-mod-js_1.0.0-2.debian.tar.xz
 0699a4b0f56059420939081b20cb6b039e91648ee170ce6c89a4d72c18e4cfe6 10600 libnginx-mod-js_1.0.0-2_source.buildinfo
Files:
 baae45a805b5eb8d86426ed7ac7de372 2379 httpd optional libnginx-mod-js_1.0.0-2.dsc
 512302e7f7aca49764a95c7b3f68d374 10180 httpd optional libnginx-mod-js_1.0.0-2.debian.tar.xz
 e55d9594beb24f01b310eab431516b33 10600 httpd optional libnginx-mod-js_1.0.0-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJGBAEBCAAwFiEEA8Tnq7iA9SQwbkgVZhHAXt0583QFAmqD420SHGthcG91ZXJA
bWVsaXgub3JnAAoJEGYRwF7dOfN0QyEP/3OhpCIUbwlhwzcbhg4vmlFnHHEyNJkR
xdQMxbXc7wMjhC/7a8+7i2QOoHwcVpBF8W5C4zSQiN3uD6WzSAhndqj5lsy6RhaW
FRfUWTLwh/8a1YH5ZuCU2ltNxbnN9fFr0uGO2GXfvWGOT6XHM0rSKEfpB1vstALO
qhEt9TRjeExQ/UUKRQjtdF9MB47oXzMmyw/z4D2vU4Cip4K9thyOQINXjvzZ+YHd
76L/4zk8df+/IwV+HHGK3Mg3farhDtIx3Q0obvf+OIx7SoYjGkVpRcUQyn4dIfun
td7im4p1CnNnK2ZOwADOzhjScWGsT/Z7A3udJnVwN5U/XgkPZXLvWOC8EslBfQMI
ZRmp0KDuC1dMLBVKrczJWS6HxgmBdieHgyBQ6tv+cFvEcs/4v893AfzhaqQfdKbf
44dTgzoyO9VtcdAvobKQwaj/1J5qES9LUpr9jpvfMag9820jwvtQUFjzhfT5n6q5
nJZnn55SEnpk+NOdUlXPu0velE4DoFAZ13RDzaXmjiCu76iwx1m8PQNnKxugVqAs
MNSvYNNynaaJd/xqDY7H2cawVvfydm/b+G+XpYf7TEoPCWpzn9TGlQdchn3MDRgG
RpTq1IRIzaGFMoJmHHu//d2uYHq9AZt2Rne1MmMbvlGvBy4kSLntCkYaTm2Oghzn
aBEHuiDRCoyI
=bHbN
-----END PGP SIGNATURE-----