Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507828 - net-libs/courier-authlib-0.65.0-r3 - pkg_setup(): useradd: group mail exists - if you want to add this user to that group, use -g.
Summary: net-libs/courier-authlib-0.65.0-r3 - pkg_setup(): useradd: group mail exists ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-16 15:20 UTC by Stefan Kiesler
Modified: 2014-04-19 08:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
output of emerge --info (emerge_info.txt,4.19 KB, text/plain)
2014-04-16 15:20 UTC, Stefan Kiesler
Details
build.log (build.log,1.83 KB, text/plain)
2014-04-16 15:21 UTC, Stefan Kiesler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Kiesler 2014-04-16 15:20:50 UTC
Created attachment 375086 [details]
output of emerge --info

courier-authlib-0.65.0-r3 fails to emerge when trying to add the "mail" user.
On a fresh Gentoo install, emerge courier-authlib tries to add the user by calling the enewuser eclass function, which resolves to the following commandline:

useradd -r "-u 101 -s /sbin/nologin -d /var/spool/mail -c added by portage for courier-authlib" "mail"

As no user group is supplied and USERGROUPS_ENAB is enabled in /etc/login.defs per default, useradd tries to generate a matching user group "mail", which does already exist with id 12.
On an older installation, user group "mail" has the id 101, presumably installed by courier-authlib back in the days. Was "mail:x:12:" added to /etc/groups in a recent baselayout change? Anyway, courier won't install on a fresh and stable amd64 install right now.

Either the courier-suthlib ebuild or the enewuser function in user.eclass should check for the existing user group.
Comment 1 Stefan Kiesler 2014-04-16 15:21:54 UTC
Created attachment 375088 [details]
build.log
Comment 2 Eray Aslan gentoo-dev 2014-04-19 08:59:15 UTC
Removed enewuser from ebuild and added net-mail/mailbase to DEPEND where mail user is created anyway.

Fixed witout a revbump.  Thanks for the report.