Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 674212 - sys-apps/portage: warn if portage user home directory does not exist
Summary: sys-apps/portage: warn if portage user home directory does not exist
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-31 23:32 UTC by Zac Medico
Modified: 2021-09-07 18:00 UTC (History)
1 user (show)

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 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(+)