Nut user is not added to the nut group. I think it is due to lack of quotes in the enewuser command. To fix my system, where this ebuild has already been merged, had to use gpasswd to fix it. Additionally, it seems that the hardcoded uid and gid (84) should be changed to -1 as in http://devmanual.gentoo.org/ebuild-writing/users-and-groups/index.html (this fix is not included in the diff below) Example diff: --- nut-2.0.4-r1.ebuild_orig 2006-12-04 12:53:10.000000000 +0100 +++ nut-2.0.4-r1.ebuild 2006-12-04 13:08:01.000000000 +0100 @@ -34,9 +34,11 @@ pkg_setup() { enewgroup nut 84 - enewuser nut 84 -1 /var/state/nut nut,tty + enewuser nut 84 -1 /var/state/nut "nut,tty" # try to add nut to the tty group for old cases where it already existed gpasswd -a nut tty + # also necessary for the nut group, to fix for quote bug on enewuser + gpasswd -a nut nut warningmsg }
*** Bug 157096 has been marked as a duplicate of this bug. ***
in cvs