Depending on how you become root, the environment might be scrubbed. So
just be sure and *check* it.
sudo was changed to scrub the environment and /etc/sudoers was changed
to put PKG_PATH &c back in. You may need to update your /etc/sudoers file,
e.g., that file's "defaults" section should look like this:

# Defaults specification
Defaults env_keep +="DESTDIR FETCH_CMD FLAVOR FTPMODE GROUP MAKE MULTI_PACKAGES" Defaults env_keep +="OKAY_FILES OWNER PKG_DBDIR PKG_DESTDIR PKG_CACHE PKG_PATH"
Defaults env_keep +="PKG_TMPDIR PORTSDIR RELEASEDIR SUBPACKAGE WRKOBJDIR"
Defaults env_keep +="SSH_AUTH_SOCK EDITOR VISUAL SHARED_ONLY"

and any other variables of your own that are needed when sudo'd.

If this is the problem, note that sysmerge(8) is a script built in to OpenBSD that
helps you update important configuration files after updating your system -
the config files in /etc are not updated automatically, because doing so might
overwrite local configuration changes.

Reply via email to