[MacPorts] #65515: Please link nodejs16 and before against openssl 1.x
MacPorts
noreply at macports.org
Thu Jul 21 19:09:56 UTC 2022
#65515: Please link nodejs16 and before against openssl 1.x
---------------------+----------------------
Reporter: dgilman | Owner: ci42
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: nodejs16
---------------------+----------------------
Nodejs only got openssl 3 support in nodejs 17:
https://nodejs.org/en/blog/release/v17.0.0/
Right now, in nodejs 16, it'll build and link against openssl 3.
[[https://stackoverflow.com/questions/69692842/error-message-
error0308010cdigital-envelope-routinesunsupported|However, certain
functions aren't available, and this is impacting e.g. webpack, causing it
to break.]] There could be other breakage down in there too.
In the past few days upstream has written a patch to support openssl 3
with nodejs 16:
https://github.com/nodejs/node/commit/e903cd19edd27eb6375b4decbcfeff045e5e7df0
However, this patch fixes the problem by requiring a nodejs 16 + openssl 3
user to pass --openssl-legacy-provider to nodejs via cli or envvars, which
in practice will break people's stuff until they do that. I think the
straightforward fix here is to make nodejs 16 and before explicitly link
against openssl 1, and nodejs 17+ explicitly link against openssl 3.
--
Ticket URL: <https://trac.macports.org/ticket/65515>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list