Re: git: 24d5194306b5 - main - build: Emit a warning for build targets run as root

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Sun, 11 Oct 2026 13:16:12 UTC
On 10/9/26 11:04, Ed Maste wrote:
> The branch main has been updated by emaste:
> 
> URL: https://cgit.FreeBSD.org/src/commit/?id=24d5194306b573bf3396858b4c0aa5d420c37c91
> 
> commit 24d5194306b573bf3396858b4c0aa5d420c37c91
> Author:     Ed Maste <emaste@FreeBSD.org>
> AuthorDate: 2025-05-14 15:23:42 +0000
> Commit:     Ed Maste <emaste@FreeBSD.org>
> CommitDate: 2026-10-09 15:02:30 +0000
> 
>      build: Emit a warning for build targets run as root
>      
>      Build targets should generally be run as an unprivileged user.  Even
>      though building as root is discouraged many users do so, so just start
>      with a warning.
>      
>      Reviewed by:    brooks
>      Differential Revision: https://reviews.freebsd.org/D50352

Eh, please give a way to turn this off (in particular, if you are intending
to go further down the road and eventually turn this into an error, I'm a hard
no on that though can live with putting something in /etc/src.conf).  Lots of
my test VMs and test machines I use only have root accounts because there
isn't a need for another user.  Yes, people should not build as root on their
laptop, but not all FreeBSD installs are laptops or desktops.

-- 
John Baldwin