1 |
On 06/13/2012 09:18 PM, Mike Gilbert wrote: |
2 |
> On 6/13/2012 12:00 PM, Ian Stakenvicius wrote: |
3 |
>> Hey all - I'd like to propose that enewuser forces updates to a user's |
4 |
>> home dir and shell whenever it is called, so that if this changes with |
5 |
>> new versions of an ebuild it is dealt with automatically rather than |
6 |
>> having to modify them in pkg_postinst/pkg_setup directly. |
7 |
>> |
8 |
> |
9 |
> Can you give an example of a case where modifying the home directory |
10 |
> and/or shell is necessary? I don't really understand how this is useful. |
11 |
|
12 |
package-1.2.3.ebuild creates user foobard with group foobard and sets |
13 |
home to /dev/null |
14 |
|
15 |
bug gets filed against package-1.2.3.ebuild that foobard needs a home or |
16 |
it won't execute itself, and the maintainer changes the home to be |
17 |
/var/lib/foobard in package-1.2.3-r1.ebuild |
18 |
|
19 |
no change happens to passwd and the package continues to fail to run at all |
20 |
|
21 |
like http://bugs.gentoo.org/420269 |
22 |
|
23 |
sed -i -e '/^foobard/s:/dev/null:/var/lib/foobard' "${ROOT}"/etc/passwd |
24 |
in pkg_postinst() doesn't seem very nice solution :/ |
25 |
|
26 |
> |
27 |
> Also, grobian raised a good point in that the sysadmin may have changed |
28 |
> it manually. It might be better to ewarn and make the user deal with it. |
29 |
> |
30 |
|
31 |
i'd prefer argument to force the update, when the problem hits something |
32 |
that 99,98% of users have installed, like sys-auth/polkit, an ewarn is |
33 |
not adequate |
34 |
|
35 |
- Samuli |