diff options
Diffstat (limited to 'www-servers/nginx/files/http_brotli-detect-brotli-r2.patch')
-rw-r--r-- | www-servers/nginx/files/http_brotli-detect-brotli-r2.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/www-servers/nginx/files/http_brotli-detect-brotli-r2.patch b/www-servers/nginx/files/http_brotli-detect-brotli-r2.patch new file mode 100644 index 000000000000..8774fa60d1cf --- /dev/null +++ b/www-servers/nginx/files/http_brotli-detect-brotli-r2.patch @@ -0,0 +1,30 @@ +--- a/config ++++ b/config +@@ -59,13 +59,7 @@ have=NGX_HTTP_BROTLI_STATIC_MODULE . auto/have # deprecated + ngx_module_type=HTTP_FILTER + ngx_module_name=ngx_http_brotli_filter_module + +-brotli="/usr/local" +- +-if [ -f "/usr/include/brotli/encode.h" ]; then +- +-brotli="/usr" +- +-fi ++brotli=$(pkg-config --variable=prefix libbrotlienc) + + if [ ! -f "$brotli/include/brotli/encode.h" ]; then + +@@ -75,11 +69,7 @@ if [ ! -f "$brotli/include/brotli/encode.h" ]; then + cat << END + + $0: error: \ +-Brotli library is missing from the $brotli directory. +- +-Please make sure that the git submodule has been checked out: +- +- cd $ngx_addon_dir && git submodule update --init && cd $PWD ++Brotli library not found. Don't you have app-arch/brotli installed? + + END + exit 1 |