package/nginx: rename patch to new convention
PATCH 1/2 package/nginx: rename patch to new convention
---
...ch => 0001-auto-type-sizeof-rework-autotest-to-be-cross-compila.patch} | 0
...ch => 0002-auto-feature-add-mechanism-allowing-to-force-feature.patch} | 0
...ch => 0003-auto-set-ngx_feature_run_force_result-for-each-featu.patch} | 0
...ch => 0004-auto-lib-libxslt-conf-allow-to-override-ngx_feature_.patch} | 0
...y.patch => 0005-auto-unix-make-sys_nerr-guessing-cross-friendly.patch} | 0
5 files changed, 0 insertions(+), 0 deletions(-)
rename package/nginx/{nginx-0001-auto-type-sizeof-rework-autotest-to-be-cross-compila.patch => 0001-auto-type-sizeof-rework-autotest-to-be-cross-compila.patch} (100%)
rename package/nginx/{nginx-0002-auto-feature-add-mechanism-allowing-to-force-feature.patch => 0002-auto-feature-add-mechanism-allowing-to-force-feature.patch} (100%)
rename package/nginx/{nginx-0003-auto-set-ngx_feature_run_force_result-for-each-featu.patch => 0003-auto-set-ngx_feature_run_force_result-for-each-featu.patch} (100%)
rename package/nginx/{nginx-0004-auto-lib-libxslt-conf-allow-to-override-ngx_feature_.patch => 0004-auto-lib-libxslt-conf-allow-to-override-ngx_feature_.patch} (100%)
rename package/nginx/{nginx-0005-auto-unix-make-sys_nerr-guessing-cross-friendly.patch => 0005-auto-unix-make-sys_nerr-guessing-cross-friendly.patch} (100%)package/nginx/0001-auto-type-sizeof-rework-autotest-to-be-cross-compila.patch renamed from package/nginx/nginx-0001-auto-type-sizeof-rework-autotest-to-be-cross-compila.patch +0 -0
package/nginx/0002-auto-feature-add-mechanism-allowing-to-force-feature.patch renamed from package/nginx/nginx-0002-auto-feature-add-mechanism-allowing-to-force-feature.patch +0 -0
package/nginx/0003-auto-set-ngx_feature_run_force_result-for-each-featu.patch renamed from package/nginx/nginx-0003-auto-set-ngx_feature_run_force_result-for-each-featu.patch +0 -0
package/nginx/0004-auto-lib-libxslt-conf-allow-to-override-ngx_feature_.patch renamed from package/nginx/nginx-0004-auto-lib-libxslt-conf-allow-to-override-ngx_feature_.patch +0 -0
package/nginx/0005-auto-unix-make-sys_nerr-guessing-cross-friendly.patch renamed from package/nginx/nginx-0005-auto-unix-make-sys_nerr-guessing-cross-friendly.patch +0 -0
Signature · 1 line
2.1.3
PATCH 2/2 package/nginx: fix build failure
sysctl syscall may not be enabled in the kernel config, so do a build-test to enable/disable sysctl function call.
Fixes:
http://autobuild.buildroot.org/results/730/730105fc0a89b381b3b29192d07f28ef1f13cbb3/
--- ...inux-add-check-for-sysctl-sycall-presence.patch | 87 ++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 package/nginx/0006-linux-add-check-for-sysctl-sycall-presence.patch
package/nginx/0006-linux-add-check-for-sysctl-sycall-presence.patch new file +87 -0
@@ -0,0 +1,87 @@ +Fetched from: http://mailman.nginx.org/pipermail/nginx-devel/2014-November/006284.html +--- + +linux: add check for sysctl sycall presence + +And also disable call to the sysctl function when the sysctl syscall +is disabled in the kernel configuration. + +This fixes: + http://autobuild.buildroot.org/results/730/730105fc0a89b381b3b29192d07f28ef1f13cbb3/build-end.log + +Signed-off-by: Samuel Martin <[email protected]> + +diff -r 1be88123e98c -r 41f4a5daf486 auto/os/linux +--- a/auto/os/linux Sat Aug 02 00:30:55 2014 +0200 ++++ b/auto/os/linux Sun Nov 23 17:17:05 2014 +0100 +@@ -44,6 +44,20 @@ + have=NGX_HAVE_POSIX_FADVISE . auto/nohave + fi + ++# sysctl syscall ++ ++ngx_feature="sysctl_syscall" ++ngx_feature_name="NGX_HAVE_SYSCTL_SYSCALL" ++ngx_feature_run=no ++ngx_feature_run_force_result="$ngx_force_have_sysctl_syscall" ++ngx_feature_incs="#include <sys/sysctl.h>" ++ngx_feature_path= ++ngx_feature_libs= ++ngx_feature_test="int name[2] = { CTL_KERN, KERN_RTSIGMAX }; ++ int old; ++ sysctl(name, 2, &old, sizeof(old), NULL, 0);" ++. auto/feature ++ + # epoll, EPOLLET version + + ngx_feature="epoll" +diff -r 1be88123e98c -r 41f4a5daf486 src/event/modules/ngx_rtsig_module.c +--- a/src/event/modules/ngx_rtsig_module.c Sat Aug 02 00:30:55 2014 +0200 ++++ b/src/event/modules/ngx_rtsig_module.c Sun Nov 23 17:17:05 2014 +0100 +@@ -621,6 +621,7 @@ + + if (tested >= rtscf->overflow_test) { + ++#if (NGX_HAVE_SYSCTL_SYSCALL) + if (ngx_linux_rtsig_max) { + + /* +@@ -668,7 +669,9 @@ + } + + } else { +- ++#else ++ { ++#endif + /* + * Linux has not KERN_RTSIGMAX since 2.6.6-mm2 + * so drain the rt signal queue unconditionally +diff -r 1be88123e98c -r 41f4a5daf486 src/os/unix/ngx_linux_config.h +--- a/src/os/unix/ngx_linux_config.h Sat Aug 02 00:30:55 2014 +0200 ++++ b/src/os/unix/ngx_linux_config.h Sun Nov 23 17:17:05 2014 +0100 +@@ -84,8 +84,10 @@ + + #if (NGX_HAVE_RTSIG) + #include <poll.h> ++#if (NGX_HAVE_SYSCTL_SYSCALL) + #include <sys/sysctl.h> + #endif ++#endif + + + #if (NGX_HAVE_EPOLL) +diff -r 1be88123e98c -r 41f4a5daf486 src/os/unix/ngx_linux_init.c +--- a/src/os/unix/ngx_linux_init.c Sat Aug 02 00:30:55 2014 +0200 ++++ b/src/os/unix/ngx_linux_init.c Sun Nov 23 17:17:05 2014 +0100 +@@ -46,7 +46,7 @@ + (void) ngx_cpystrn(ngx_linux_kern_osrelease, (u_char *) u.release, + sizeof(ngx_linux_kern_osrelease)); + +-#if (NGX_HAVE_RTSIG) ++#if (NGX_HAVE_RTSIG) && (NGX_HAVE_SYSCTL_SYSCALL) + { + int name[2]; + size_t len; + +
Signature · 1 line
2.1.3
PATCH 2/2 package/nginx: fix build failure
Dear Samuel Martin,
Quoted 2 lines · Samuel Martin
sysctl syscall may not be enabled in the kernel config, so do a build-test to enable/disable sysctl function call.
It's not a kernel configuration problem. sysctl() is a deprecated system call, so all new architectures (such as ARC) don't implement it.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 2/2 package/nginx: fix build failure
Quoted 8 lines · Thomas Petazzoni
Dear Samuel Martin,
Quoted 2 lines · Samuel Martin
sysctl syscall may not be enabled in the kernel config, so do a build-test to enable/disable sysctl function call.
It's not a kernel configuration problem.
sysctl()is a deprecated system call, so all new architectures (such as ARC) don't implement it.
Do you want me to update the commit log?
Or shall I make the rtsig support depends on !BR2_arc?
Regards,
Quoted 8 lines
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
Signature · 1 line
Samuel