On Mon, Nov 10, 2025 at 01:23:01PM -0000, Stuart Henderson wrote: > On 2025-11-09, Crystal Kolipe <[email protected]> wrote: > > On Sun, Nov 09, 2025 at 01:39:27PM +0100, Walter Alejandro Iglesias wrote: > >> The part under "Configuration of the Ports System" where it explains how > >> to build as a common user. > > > > If you want to do anything much beyond building a few ports, why not set > > up DPB? With DPB you can easily run everything in a chroot as well. > > I'd prefer not to suggest DPB to someone that is having trouble with > basic ports builds, it's way more complicated ;)
Well, yes and no. The detail here is that he isn't doing basic ports builds, (which would be running everything as root). He's trying to configure the ports build to run as an unprivilaged user. That requires various non-obvious manual steps to make it work correctly, (which the lack of conclusion in this thread shows has not been easy to set up). On the other hand, setting up DPB does the privilage drop dance automatically. In principle, it's just: * Make a dedicated partition, (or several), and mount it on, say, /proot # /usr/ports/infrastructure/bin/proot -B /proot/ actions=copy_ports # export TRUSTED_PKG_PATH=/proot/usr/ports/packages/amd64/all Then you can build whatever ports you like, all chrooted and priv-dropped with something like: # dpb -B /proot archivers/bzip2 ... or whatever. The most difficult part is probably creating the new partition, (if you don't have unpartitioned space available), and setting the correct mount options, (because the /dev in proot needs to disable nodev, and pobj probably requires wxallowed).

