Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 588000 - www-servers/nginx: '--user' compile-time option is set to 'nginx --group=nginx'
Summary: www-servers/nginx: '--user' compile-time option is set to 'nginx --group=nginx'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-04 15:45 UTC by cyberbat
Modified: 2016-07-26 09:56 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cyberbat 2016-07-04 15:45:31 UTC
The most simple to understand the issue is to run
nginx -V
Look for --user in output. I have it in the last line, it look so:
 --without-mail_imap_module --without-mail_pop3_module --without-mail_smtp_module --user='nginx --group=nginx'

Nota bene at --user= value. There are two ' missed. Because of the issue we have no working nginx without "user" value set in config-file getting the error:
nginx: [emerg] getpwnam("nginx --group=nginx") failed.

I think it should be fixed in the 
                myconf+=( --user=${PN}" "--group=${PN} )
part of the ebuild but I can't clearly get how.
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2016-07-19 23:48:39 UTC
Good catch, I am working on this.
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2016-07-19 23:56:46 UTC
Fix is part of https://github.com/gentoo/gentoo/pull/1920
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2016-07-26 09:56:38 UTC
Fix landed in the repository: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f6a2bd81eb91481c2ccc0914773410e97c02e0d

Again, thanks for the report!