Il 29/05/22 21:34, Pirate Praveen ha scritto:

On തി, മേയ് 30 2022 at 12:56:53 രാവിലെ +05:30:00 +05:30:00, Pirate Praveen <prav...@onenetbeyond.org> wrote:

On ഞാ, മേയ് 29 2022 at 09:34:45 രാവിലെ +02:00:00 +02:00:00, Paolo Greppi <paolo.gre...@libpf.com> wrote:
Hi Andreas! thanks for your report. To try to reproduce it, I set ... Finally there is more trouble ahead when building this package, because I also tried:

    apt install git
    git clone https://salsa.debian.org/pkg-security-team/greenbone-security-assistant
    cd greenbone-security-assistant
    yarnpkg
    yarnpkg build

and the last command failed with:

    ...
    Error: error:0308010C:digital envelope routines::unsupported
        at new Hash (node:internal/crypto/hash:67:19)
        at Object.createHash (node:crypto:130:10)
        at module.exports (/greenbone-security-assistant/node_modules/webpack/lib/util/createHash.js:135:53)         at NormalModule._initBuildHash (/greenbone-security-assistant/node_modules/webpack/lib/NormalModule.js:417:16)         at /greenbone-security-assistant/node_modules/webpack/lib/NormalModule.js:452:10         at /greenbone-security-assistant/node_modules/webpack/lib/NormalModule.js:323:13         at /greenbone-security-assistant/node_modules/loader-runner/lib/LoaderRunner.js:367:11         at /greenbone-security-assistant/node_modules/loader-runner/lib/LoaderRunner.js:233:18         at context.callback (/greenbone-security-assistant/node_modules/loader-runner/lib/LoaderRunner.js:111:13)         at /greenbone-security-assistant/node_modules/babel-loader/lib/index.js:59:103         at processTicksAndRejections (node:internal/process/task_queues:96:5) {       opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
      library: 'digital envelope routines',
      reason: 'unsupported',
      code: 'ERR_OSSL_EVP_UNSUPPORTED'
    }
    error Command failed with exit code 1.

(this also happens on amd64 BTW).

According to the interwebs this should only occur with node v17 (whereas in unstable we have v16.15.0) and indeed the commonly proposed workaround fails:

    NODE_OPTIONS=--openssl-legacy-provider yarnpkg build
    /usr/bin/node: --openssl-legacy-provider is not allowed in NODE_OPTIONS

I was also seeing this error while looking at node-babel-loader

We might need to fix node-babel-loader

https://github.com/babel/babel-loader/issues/923


Even though the pull request is merged https://github.com/babel/babel-loader/pull/924 I get same error on master branch of upstream babel-loader repo with yarnpkg test.



It seems ad-hoc fixes may be required for each package, such as this other one:
https://salsa.debian.org/js-team/node-cacache/-/commit/214b963bd02fd74d445789b184d344777dda8ee2

What is mysterious is that all that should only happen with nodejs v17 ...

P.

Reply via email to