Index | Thread | Search

From:
Christian Schulte <cs@schulte.it>
Subject:
Re: Generated microcode objects should be group writeable by group wobj - see WOBJUMASK in bsd.obj.mk
To:
Theo de Raadt <deraadt@openbsd.org>
Cc:
tech@openbsd.org
Date:
Sat, 28 Sep 2024 20:14:03 +0200

Download raw body.

Thread
On 9/28/24 17:03, Theo de Raadt wrote:
> Why are you using a different user?

A different user than root? The following made me look into the OpenBSD
build system.

0x02$ make build
umask 007; exec make do-build
do-build must be called by root
*** Error 1 in . (Makefile:84 'do-build': @if [[ `id -u` -ne 0 ]]; then
echo do-build must be called by root >&2;  false;  fi)
*** Error 2 in /usr/src (Makefile:74 'build')

"must be called by root"

Talking about building here, not installing.

Just starting to look into the build system and am trying to get various
points.

Building should not require root privileges. I am far away from
understanding the whole picture why that is needed, when it should not.
There have been people around here mentioning that a "make build" would
take days to complete on various architectures. Locally I am down from
nearly 13h for a full base build to

3m37.35s real     1m46.62s user     1m22.99s system

I am still reading lots of sources and am trying to find my way around.
Building base should not require root privileges. Installing a freshly
build base, of course.

-- 
Christian