Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698946 - >=app-admin/sudo-1.8.28[-pam] - sudo: /etc/environment: No such file or directory
Summary: >=app-admin/sudo-1.8.28[-pam] - sudo: /etc/environment: No such file or direc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal trivial (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-30 19:29 UTC by Saul Peebsen
Modified: 2019-11-07 09:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Saul Peebsen 2019-10-30 19:29:08 UTC
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
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-10-31 07:54:19 UTC
/etc/environment is normally installed by sys-libs/pam, not app-admin/sudo.
Comment 2 Saul Peebsen 2019-10-31 22:51:17 UTC
So sudo shouldn't be looking for it.
I did 'echo $PATH > /etc/environment' to get rid of this message.
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-11-06 15:32:17 UTC
This did not happen in earlier releases?
Comment 4 Saul Peebsen 2019-11-06 16:12:48 UTC
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.
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-11-06 16:58:10 UTC
Can you please test the following patch from upstream?

https://www.sudo.ws/repos/sudo/raw-rev/f85ff5ee2caf
Comment 6 Saul Peebsen 2019-11-06 17:20:44 UTC
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.
Comment 7 Mike Gilbert gentoo-dev 2019-11-06 19:32:43 UTC
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.
Comment 8 Saul Peebsen 2019-11-07 00:33:52 UTC
Yes, wget did it. Patch applies and the annoying message is gone. Thanks.
Comment 9 Larry the Git Cow gentoo-dev 2019-11-07 09:54:28 UTC
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(+)