If you need the older version I would get a CVS checkout of the OPENBSD_7_7 ports tree (see the faq), then
cd /usr/ports/lang cp -r node node20 cd node20 cvs up -r OPENBSD_7_6 -Pd make prepare FETCH_PACKAGES= make package (or e.g. "make package MAKE_JOBS=4" to use multiple cores to speed up the build) this is not "supported" but will likely work with no or minimal changes to the port. On 2025/05/25 12:29, Martin Ivanov wrote: > 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