Right now aur-chroot preserves only PKGDEST when running makechrootpkg via sudo:
|
sudo) auth_args+=('--preserve-env=GNUPGHOME,SSH_AUTH_SOCK,PKGDEST') ;; |
However, I may want to explicitly set LOGDEST and SRCDEST in the environment to temporarily put these artifacts in a different location than what I have set in ~/.config/pacman/makepkg.conf. I have to work around this by setting AUR_PACMAN_AUTH="sudo --preserve-env=GNUPGHOME,SSH_AUTH_SOCK,SRCDEST,PKGDEST,LOGDEST" but this is applied to mkarchroot and arch-nspawn as well, so I have to reconfigure sudoers.
I believe all SRCDEST,PKGDEST,LOGDEST should be preserved by default.