Index | Thread | Search

From:
Martin Ivanov <marto1980@gmail.com>
Subject:
Help with porting Node.js 20 to OpenBSD 7.7
To:
ports@openbsd.org
Date:
Sun, 25 May 2025 12:21:25 +0300

Download raw body.

Thread
  • Martin Ivanov:

    Help with porting Node.js 20 to OpenBSD 7.7

Hello,

I'm trying to build Node.js 20 on OpenBSD 7.7 (uname -a: OpenBSD
marto.OpenBSD 7.7 GENERIC.MP#625 amd64).

I noticed that Node.js 20 was available in the ports tree for OpenBSD 7.6,
but it no longer appears to be available for 7.7. I would prefer not to
downgrade the OS just to get access to this specific Node version.

Before I spend too much time trying to patch things manually, I wanted to
ask:
- Is there any known reason Node.js 20 was dropped from the 7.7 ports?
- Would it be feasible to port it forward from the 7.6 tree?
- If so, are there known blockers or incompatibilities I should be aware of?

I tried building it manually using gmake and NVM’s cached source, but ran
into issues with GYP and missing or problematic flags (e.g., `ldl`,
`lcrypt`, `lrt`), and patching around them hasn’t been successful so far.

Any advice or pointers would be greatly appreciated.

Thank you,
Marto