Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 588000

Summary: www-servers/nginx: '--user' compile-time option is set to 'nginx --group=nginx'
Product: Gentoo Linux Reporter: cyberbat <cyberbat83>
Component: Current packagesAssignee: Tiziano Müller (RETIRED) <dev-zero>
Status: RESOLVED FIXED    
Severity: normal CC: bugs, proxy-maint, whissi
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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!