Gentoo Archives: gentoo-dev

From: The Bit Pit <thebitpit@×××××××××.net>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] RFC: acct-user/... modifies existing user sometimes
Date: Sat, 14 Dec 2019 20:48:06
1 acct-user/mythtv modifies the existing user if that user is not logged
2 in. Mythtv has been around for years and users have created specialized
3 configurations for the mythtv user. They do not like changes to the
4 mythtv user when upgrading.
6 A couple of solutions:
8 1)
9 the ebuild does not depend on acct-user/mythtv when the user already
10 exists. This prevents both the changing and deletion of the existing user.
12 What is the gentoo way to discover a preexisting user? Repoman does not
13 like anything I tried using egetent passwd mythtv
15 2)  Add something to the acct-user/mythtv to (conditionally) prevent any
16 change if there is a preexisting user on the system. The acct-user
17 unmerge would also check that the user was not modified since it was
18 created by acct-user. This seems like a lot of work.