Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re: Forcing ports builds without X11
To:
"H. Hartzer" <h@hartzer.sh>
Cc:
ports@openbsd.org
Date:
Wed, 10 Sep 2025 07:57:12 +0100

Download raw body.

Thread
On 2025/09/09 23:25, H. Hartzer wrote:
> Hi ports@,
> 
> # make
> Fatal: building ports requires correctly installed X11 (in www/darkhttpd)
> *** Error 1 in /usr/ports/www/darkhttpd (/usr/ports/infrastructure/mk/bsd.port.mk:3894 '.BEGIN': @exit 1)
> 
> Is there an override to attempt building ports without X11 installed? I
> can't even build say www/darkhttpd without X11 installed, which seems
> ridiculous.
> 
> I get that as a rule of thumb it's needed for many ports, but I feel
> there ought to be some way to force it to move ahead anyway.
> 
> -Henrich
> 

If you're using a non-standard configuration you're going to need to be
able to debug and workaround things yourself. The error that you see
here is trivial to track down and bypass - other things you might run
into, not so much.

Ports is primarily intended for ports developers and building packages;
decisions taken in the ports tree are based around that. Otherwise we
recommend that you use packages directly.

> # make

Perhaps we should also add a similar check for building ports as root.
Some things will fail or build incorrectly, and it's just not a good
idea. btw, porters are mostly using PORTS_PRIVSEP and not even building
as their regular user account.