aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-test-nginx/set-temp-paths.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-04-27 12:59:50 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-04-28 00:45:03 +0200
commit75d31bd6b84a999942609f7c93ac6957685fb7da (patch)
tree8156db5c6e5c0d2fb1093eacb1850a32b391f543 /testing/perl-test-nginx/set-temp-paths.patch
parent5115c24f94eab7d3be8ad11e59c82494c05ce3a2 (diff)
downloadaports-75d31bd6b84a999942609f7c93ac6957685fb7da.tar.bz2
aports-75d31bd6b84a999942609f7c93ac6957685fb7da.tar.xz
testing/perl-test-nginx: new aport
https://github.com/openresty/test-nginx Data-driven test scaffold for Nginx C module and Nginx/OpenResty-based libraries and applications
Diffstat (limited to 'testing/perl-test-nginx/set-temp-paths.patch')
-rw-r--r--testing/perl-test-nginx/set-temp-paths.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/perl-test-nginx/set-temp-paths.patch b/testing/perl-test-nginx/set-temp-paths.patch
new file mode 100644
index 0000000000..ba64ab66b5
--- /dev/null
+++ b/testing/perl-test-nginx/set-temp-paths.patch
@@ -0,0 +1,34 @@
+From 760e9acf54ad6f418a00d4224248d58772b3887a Mon Sep 17 00:00:00 2001
+From: Jakub Jirutka <jakub@jirutka.cz>
+Date: Thu, 27 Apr 2017 12:43:00 +0200
+Subject: [PATCH] Set *_temp_path location to $ServRoot/
+
+Linux distributions build nginx with options like
+`--http-client-body-temp-path=` to set default location of directories
+for temporary files under /var/tmp/nginx or /var/lib/nginx.
+The problem is, when running tests as part of the package build
+process, these directories are not writtable. Therefore it's needed to
+override location of these directories in the generated nginx.conf.
+
+Upstream-Issue: https://github.com/openresty/test-nginx/pull/63
+---
+ lib/Test/Nginx/Util.pm | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/lib/Test/Nginx/Util.pm b/lib/Test/Nginx/Util.pm
+index 6c2fab7..7f540c2 100644
+--- a/lib/Test/Nginx/Util.pm
++++ b/lib/Test/Nginx/Util.pm
+@@ -964,6 +964,12 @@
+ }
+
+ print $out <<_EOC_;
++
++ client_body_temp_path "$ServRoot/client_body_temp";
++ proxy_temp_path "$ServRoot/proxy_temp";
++ fastcgi_temp_path "$ServRoot/fastcgi_temp";
++ scgi_temp_path "$ServRoot/scgi_temp";
++ uwsgi_temp_path "$ServRoot/uwsgi_temp";
+ }
+
+ $post_main_config