Had the following error installing monetdb-5.2.0:: useradd: group monetdb exists - if you want to add this user to that group, use -g. * * ERROR: dev-db/monetdb-5.2.0 failed. * Call stack: * ebuild.sh, line 1717: Called dyn_preinst * ebuild.sh, line 1156: Called pkg_preinst * monetdb-5.2.0.ebuild, line 37: Called enewuser 'monetdb' * eutils.eclass, line 583: Called die * The specific snippet of code: * useradd ${opts} ${euser} \ * -c "added by portage for ${PN}" \ * || die "enewuser failed" * The die message: * enewuser failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-db/monetdb-5.2.0/temp/build.log'. * !!! FAILED preinst: 1 Following the example of the mysql.eclass I changed enewuser to:: enewuser monetdb -1 -1 /dev/null monetdb || die "problem adding 'monetdb' user" And install went through Reproducible: Always Steps to Reproduce: 1.Install monetdb 2. 3. Actual Results: Fails creating user Expected Results: Creates monetdb user
I used enewuser monetdb -1 -1 -1 monetdb now. Apparently the default action enewuser on Linux does, is to create a group like the username. Not sure why it worked for me. Hopefully it is fixed now. Thanks for the report!