Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 547644 - www-servers/nginx-1.7.12 build with threads
Summary: www-servers/nginx-1.7.12 build with threads
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-25 06:00 UTC by Alex
Modified: 2016-01-22 11:58 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 Alex 2015-04-25 06:00:18 UTC
There is no possibility to build nginx with threads. Starting 1.7.11 nginx supports threads on Linux to offload sendfile to threads. http://nginx.org/en/CHANGES

Reproducible: Always

Steps to Reproduce:
1. Update nginx to 1.7.11+
2. Add 'thread_pool' directive to main section
3. nginx -t

Actual Results:  
mail ~ # nginx -t
nginx: [emerg] unknown directive "thread_pool" in /etc/nginx/nginx.conf:9
nginx: configuration file /etc/nginx/nginx.conf test failed

Expected Results:  
nginx build with '--with-threads' option and 
mail ~ # nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

I had added 'aio' and 'threads' options to packages.use and make.conf - no luck. Nginx is still build without '--with-threads' option.
Comment 1 Ian Moone 2015-04-29 07:12:15 UTC
More info: http://nginx.org/en/docs/http/ngx_http_core_module.html#aio
Comment 2 Johan Bergström 2015-04-29 07:13:10 UTC
I'll look at adding this shortly with the introduction of 1.8.0 and 1.9.0 ebuilds.
Comment 3 Johan Bergström 2015-06-26 03:13:11 UTC
Introduced in 1.9.x here: https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/156

please test and let me know how it goes.
Comment 4 Alex 2015-06-26 20:17:06 UTC
I had downloaded files from github and then nginx 1.9.2 was build --with-threads. config test passed successfully.
Comment 5 cyberbat 2015-11-08 22:58:30 UTC
I've patched nginx-1.8.0.ebuild with this commit: https://github.com/gentoo/gentoo-portage-rsync-mirror/commit/0ad91f012f8c8d0142b94597a2a076f73203ff50
and it seems to be ok.
Comment 6 Johan Bergström 2016-01-22 11:58:29 UTC
This was landed in the 1.9 series. Closing.