Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 674212

Summary: sys-apps/portage: warn if portage user home directory does not exist
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: CoreAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal CC: james.al.stevenson
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=811930
Whiteboard:
Package list:
Runtime testing required: ---

Description Zac Medico gentoo-dev 2018-12-31 23:32:29 UTC
If the portage user's home directory does not exist, it can trigger unit test failures like in bug 674088. The portage.data._get_global already warns if the user is missing, so it could be extended to warn if the home directory does not exist.
Comment 1 Larry the Git Cow gentoo-dev 2021-09-04 11:53:53 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=97f1f6a42796c91bf1eba628605c4ef641dcc532

commit 97f1f6a42796c91bf1eba628605c4ef641dcc532
Author:     James Stevenson <james.al.stevenson@gmail.com>
AuthorDate: 2021-09-04 09:53:46 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2021-09-04 11:51:28 +0000

    Warn if portage home directory is missing
    
    Signed-off-by: James Stevenson <james.al.stevenson@gmail.com>
    Bug: https://bugs.gentoo.org/674212
    Closes: https://github.com/gentoo/portage/pull/736
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 lib/portage/data.py | 9 +++++++++
 1 file changed, 9 insertions(+)