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

Bug 571674

Summary: NGINX_ADD_HTTP="fastcgi" is not valid
Product: Gentoo Linux Reporter: Pál Csányi <csanyipal>
Component: [OLD] ServerAssignee: Tiziano Müller (RETIRED) <dev-zero>
Status: RESOLVED CANTFIX    
Severity: normal CC: bugs, csanyipal, michael.scholl
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://wiki.gentoo.org/wiki/Nginx
Whiteboard:
Package list:
Runtime testing required: ---

Description Pál Csányi 2016-01-12 17:10:11 UTC
Hi,

I have installed www-servers/nginx version: 1.9.7(mainline).

Before installing the package I tried to set Expanded USE flags as it is adviced here: https://wiki.gentoo.org/wiki/Nginx

In make.conf file NGINX_ADD_HTTP="module_name" is not valid, because doesn't has any effect when building nginx package.

If I used line: NGINX_MODULES_HTTP="auth_pam security stub_status sub upload upload_progress" than it is also wrong, because then the default modules will be excluded at build time. Moreover, in that situation emerge wants to install apache2 too.

So, what is the correct syntax? How to add more modules to the existing ones? Is this a bug?

Best, Pali
Comment 1 Alex Xu (Hello71) 2016-01-14 16:18:50 UTC
the documentation is definitely wrong, but I dunno what the right one is. technically this should be on the wiki discussion, but I'm assigning to nginx maintainers because I hope one of you knows how to do it right.
Comment 2 Michael Scholl 2016-01-18 23:37:22 UTC
IMHO the best way is to write them in package.use like this:

www-servers/nginx NGINX_MODULES_HTTP: dav -access

This enables the "dav" module and disables the access module from the defaults.


The security module needs apache2 to get build thats why emerge wants to install it.
Comment 3 Johan Bergström 2016-01-18 23:43:08 UTC
What Michael said; mod_security needs apache stuff. The correct way is overriding NGINX_MODULES_HTTP through your preferred portage way (env/files/etc).

Closing this as 'cantfix' since its not really related to the ebuild, but feel free to  repoen if there are changes that needs to be made.