rvp If I want to use the same in my mk.conf but with doas instead. Should the if statement be placed at the end or the start of the file? does it matter?
And yes, even though we've been on and on and back and forth about suas sued sued runas etc, I still use doas because I just set nopass :wheel so I dont have to enter a password.
does this look ok?
.if defined(BSD_PKG_MK)
# Use doas(1) if it exists, else go for the default fallback, su(1).
.if exists(${LOCALBASE}/bin/doas)
SU_CMD= ${LOCALBASE}/bin/doas /bin/sh -c
.endif
.endif
VARBASE= /var
LOCALBASE= /usr/pkg
PKG_DBDIR= /usr/pkg/pkgdb
PKG_TOOLS_BIN= /usr/pkg/sbin
PKGINFODIR= info
PKGMANDIR= man
MAKE_JOBS= 6
PKGSRC_USE_MKTOOLS= yes
ALLOW_VULNERABLE_PACKAGES= yes
ACCEPTABLE_LICENSES+= intel-microcode-license mozilla-trademark-license
RUST_TYPE= src
Also, you'll be pleased to know that building things with bld user are going smoothly. However, I still really want to know what is going on with my main user AND my root user accounts. It would be fine if it was just my main user, because I could delete it and start fresh with a new user, but I can't delete my root user. Is there any way I can reset my root user back to default?