Would it be possible to have a backports version of nodejs for Bullseye? I am running into problems for example with logical assignment operators that are supported since NodeJS 15.0.0.
I made a try rebuilding nodejs for bullseye-backports using backported build dependencies from https://people.debian.org/~praveen/fasttrack-staging .
I tried building with the bundled openssl since openssl 3 wasn't available for bullseye
Currently the build fails with 3 test failures which I'm not able to fix after countless tries.
not ok 606 parallel/test-dgram-send-cb-quelches-error --- duration_ms: 11.634 severity: fail exitcode: 1 stack: |- node:assert:400 throw err; ^AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
assert.ok(err)at callbackOnly (/<<PKGBUILDDIR>>/test/parallel/test-dgram-send-cb-quelches-error.js:24:10)
at callbackOnly (/<<PKGBUILDDIR>>/test/common/index.js:437:15)at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
generatedMessage: true, code: 'ERR_ASSERTION', actual: null, expected: true, operator: '==' } Node.js v18.7.0 ... not ok 1689 parallel/test-module-loading-globalpaths --- duration_ms: 2.220 severity: fail exitcode: 1 stack: |- node:internal/modules/cjs/loader:959 throw err; ^ Error: Cannot find module 'foo' Require stack: - /<<PKGBUILDDIR>>/test/parallel/test-module-loading-globalpaths.jsat Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
at Module._load (node:internal/modules/cjs/loader:804:27) at Module.require (node:internal/modules/cjs/loader:1022:19) at require (node:internal/modules/cjs/helpers:102:18)at Object.<anonymous> (/<<PKGBUILDDIR>>/test/parallel/test-module-loading-globalpaths.js:15:15)
at Module._compile (node:internal/modules/cjs/loader:1120:14)at Module._extensions..js (node:internal/modules/cjs/loader:1174:10)
at Module.load (node:internal/modules/cjs/loader:998:32) at Module._load (node:internal/modules/cjs/loader:839:12)at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
code: 'MODULE_NOT_FOUND', requireStack: [ '/<<PKGBUILDDIR>>/test/parallel/test-module-loading-globalpaths.js' ] } Node.js v18.7.0 node:internal/modules/cjs/loader:959 not ok 2035 parallel/test-repl --- duration_ms: 0.714 severity: fail exitcode: 1 stack: |- out: "" in: "" out: "message" in: "'Read, Eval, Print Loop'" [...] in: "{ a: 1 }" out: "{ \"a\": " in: "... " out: "1 }" in: "{ a: 1 }" out: "class Foo { #private = true " in: "" node:internal/process/promises:288 triggerUncaughtException(err, true /* fromPromise */); ^ AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: '' !== '... ' at runReplTests (/<<PKGBUILDDIR>>/test/parallel/test-repl.js:91:16)at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /<<PKGBUILDDIR>>/test/parallel/test-repl.js:830:5 { generatedMessage: true, code: 'ERR_ASSERTION', actual: '', expected: '... ', operator: 'strictEqual' } Node.js v18.7.0 You can find my changes here: https://salsa.debian.org/rmb/nodejs/-/tree/bullseye-backports -- ╭───────────────────────────────────────────────────╮ │ Mohammed Bilal │ │ 2D65 BC1E B966 5A6E 97F9 730A B3F5 9452 8521 9E1F │ ╰───────────────────────────────────────────────────╯
OpenPGP_signature
Description: OpenPGP digital signature