nginx: move to PCRE2 21018/head
authorChristian Marangi <ansuelsmth@gmail.com>
Fri, 22 Sep 2023 12:45:55 +0000 (14:45 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 22 Sep 2023 12:55:02 +0000 (14:55 +0200)
Move nginx to PCRE2 now that lua modules supports it.
nginx ebaled PCRE2 by default so we simply revert the config to revert
it.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
net/nginx/Makefile

index ee223668c8b3c5c4ce6499bfe89a9c352e9b84fa..7601c442acff21536a0be4b52fc279ad0550c7b0 100644 (file)
@@ -113,7 +113,7 @@ define Package/nginx-ssl
   $(Package/nginx/default)
   TITLE += with SSL support
   VARIANT:=ssl
-  DEPENDS+= +NGINX_PCRE:libpcre \
+  DEPENDS+= +NGINX_PCRE:libpcre2 \
        +NGINX_PCRE:nginx-ssl-util +!NGINX_PCRE:nginx-ssl-util-nopcre \
        +NGINX_HTTP_GZIP:zlib +NGINX_DAV:libxml2
   EXTRA_DEPENDS:=nginx-ssl-util$(if $(CONFIG_NGINX_PCRE),,-nopcre) (>=1.5-1) (<2)
@@ -163,7 +163,7 @@ endef
 define Package/nginx-full
   $(Package/nginx/default)
   TITLE += with ALL config selected
-  DEPENDS+=+libpcre +nginx-ssl-util +zlib +libxml2
+  DEPENDS+=+libpcre2 +nginx-ssl-util +zlib +libxml2
   EXTRA_DEPENDS:=nginx-ssl-util (>=1.5-1) (<2)
   VARIANT:=full
   PROVIDES += nginx-ssl
@@ -408,7 +408,6 @@ CONFIGURE_ARGS += \
        --with-cc-opt="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
        --with-ld-opt="$(TARGET_LDFLAGS)" \
        --without-http_upstream_zone_module \
-       --without-pcre2 \
        --with-compat \
        --with-http_ssl_module \
        $(if $(call IsDisabled,NGINX_HTTP_CACHE),--without-http-cache) \