Up to date ~amd64 system. ~ $ sudo -i sudo: /etc/environment: No such file or directory sudo is installed with: [ebuild R ] app-admin/sudo-1.8.29::gentoo USE="secure-path sendmail -gcrypt -ldap -libressl -nls -offensive -pam -sasl (-selinux) -skey -sssd -system-digest" 0 KiB
/etc/environment is normally installed by sys-libs/pam, not app-admin/sudo.
So sudo shouldn't be looking for it. I did 'echo $PATH > /etc/environment' to get rid of this message.
This did not happen in earlier releases?
Can't recall, there are three versions currently in portage, I rolled back to sudo-1.8.27 and it gives me no error, then I tried sudo-1.8.28_p1 and it gives me the message. So I'd say sudo-1.8.28 is the first version affected.
Can you please test the following patch from upstream? https://www.sudo.ws/repos/sudo/raw-rev/f85ff5ee2caf
It fails currently. Perhaps I should try with **9999** version of sudo. >>> Preparing source in /var/tmp/portage/app-admin/sudo-1.8.29/work/sudo-1.8.29 ... * Applying pam.patch ... 2 out of 3 hunks FAILED -- saving rejects to file plugins/sudoers/env.c.rej I have to go, will try and get more info when I get back.
The patch applies cleanly on app-admin/sudo-1.8.29-r1. Perhaps your web browser corrupted the patch. Please try curl or wget instead.
Yes, wget did it. Patch applies and the annoying message is gone. Thanks.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c11c2b56f0938b3f3c0d46c8b17af61bae075174 commit c11c2b56f0938b3f3c0d46c8b17af61bae075174 Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2019-11-07 09:52:58 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2019-11-07 09:54:22 +0000 app-admin/sudo: Revbumps to fix error message with USE="-pam" Reported-by: Saul Peebsen <jaglover@gmail.com> Tested-by: Saul Peebsen <jaglover@gmail.com> Closes: https://bugs.gentoo.org/698946 Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> .../sudo-1.8.28-no_pam_error_message_fix.patch | 46 ++++++++++++++++++++++ ....8.28_p1-r1.ebuild => sudo-1.8.28_p1-r2.ebuild} | 4 ++ ...sudo-1.8.29-r1.ebuild => sudo-1.8.29-r2.ebuild} | 4 ++ 3 files changed, 54 insertions(+)