On 2023/06/15 18:34:25 +0200, Luca Di Gregorio <luc...@gmail.com> wrote: > Hi, I would need a clarification: > > The correct way to compile the > current megacmd.tar.gz is > dowloading the -stable, not -current. > > Am I right?
No, it is not right. Port development happens in -CURRENT, -stable only sees backports of security fixes. Said that, you should also keep in mind that the -stable port tree is for OpenBSD-stable, and the -current port tree is for OpenBSD-current. You can't mix-and-match. So, fetch the port tree for your branch and use that. In this case, the port in question should compile both on -stable and -current, but please keep in mind that it's not always the case. If you're on current, other than a -current ports tree you also need to have up-to-date packages (doas pkg_add -u). All of this is carefully documented in the FAQS: https://www.openbsd.org/faq/ports/ports.html#PortsIntro along with the exact commands you need to fetch the port tree, setup things, build, etc. Buona fortuna :)