Is poudriere(-devel) intended to support use of the INSTALL_AS_USER environment variable with its pkg activity?
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 20 Sep 2025 18:55:38 UTC
pkg has:
     Extra environment variables are:
     INSTALL_AS_USER  Allow all manipulation to be done as a regular user
                      instead of checking for root credentials when
                      appropriate.
                      It is expected that the user will ensure that every file
                      and directory manipulated by pkg are readable (or
                      writable where appropriate) by the user.
That controls the ownership/permission checks for
the likes of var/db/pkg/local.sqlite (if existing)
and var/db/pkg/ itself for relevant pkg/pkg-static
commands.
It is intended that poudriere(-devel) to support
its use of pkg and pkg-static with this environment
variable somehow defined? Or is var/db/pkg/ required
to have, for example, root ownership when for
poudriere(-devel) use?
Absent use of INSTALL_AS_USER, pkg seems to require
root ownership of var/db/pkg/ in its poudriere
activity. poudriere(-devel) respects the rejection.
Note: I was trying to help mkru@ who has the original
failing context. I do not see the problem because
I do the kind of activity as root, including for
my builds and installs of METHOD null poudriere jail
worlds.
===
Mark Millard
marklmi at yahoo.com