Skip to contentSkip to conversation

meta-webserver: nginx: Add ipv6 support

PATCH Superseded Joshua Watt 4 participants 5 messages Oct 27, 2022 – Oct 28, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meta-webserver: nginx: Add ipv6 support

Adds a PACKAGECONFIG to enable ipv6 in nginx

---
 meta-webserver/recipes-httpd/nginx/nginx.inc | 1 +
 1 file changed, 1 insertion(+)
meta-webserver/recipes-httpd/nginx/nginx.inc +1 -0
index dfced3330..33791ec6a 100644
@@ -43,6 +43,7 @@ PACKAGECONFIG[gunzip] = "--with-http_gunzip_module,,"
 PACKAGECONFIG[http2] = "--with-http_v2_module,,"
 PACKAGECONFIG[ssl] = "--with-http_ssl_module,,openssl"
 PACKAGECONFIG[http-auth-request] = "--with-http_auth_request_module,,"
+PACKAGECONFIG[ipv6] = "--with-ipv6,,"
 
 do_configure () {
     if [ "${SITEINFO_BITS}" = "64" ]; then
Signature · 1 line
2.33.0
#1 lore raw

IPv6 is the glorious future, shouldn’t we turn this on?

(or at least, respect the ipv6 distro feature)

Ross

Quoted 33 lines · Joshua Watt via lists.openembedded.org

Adds a PACKAGECONFIG to enable ipv6 in nginx

---
meta-webserver/recipes-httpd/nginx/nginx.inc | 1 +

1 file changed, 1 insertion(+)
meta-webserver/recipes-httpd/nginx/nginx.inc +0 -0
index dfced3330..33791ec6a 100644
@@ -43,6 +43,7 @@ PACKAGECONFIG[gunzip] = "--with-http_gunzip_module,,"

PACKAGECONFIG[http2] = "--with-http_v2_module,," PACKAGECONFIG[ssl] = "--with-http_ssl_module,,openssl" PACKAGECONFIG[http-auth-request] = "--with-http_auth_request_module,," +PACKAGECONFIG[ipv6] = "--with-ipv6,,"

do_configure () {
    if [ "${SITEINFO_BITS}" = "64" ]; then
Signature · 10 lines
2.33.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#99321): https://lists.openembedded.org/g/openembedded-devel/message/99321
Mute This Topic: https://lists.openembedded.org/mt/94604935/6875888
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
#2 lore raw
Quoted 4 lines · Ross Burton

IPv6 is the glorious future, shouldn’t we turn this on?

(or at least, respect the ipv6 distro feature)

yes IPv6 enable under distro_feature knob seems a good thing.

Quoted 40 lines

Ross

Quoted 19 lines · Joshua Watt via lists.openembedded.org

Adds a PACKAGECONFIG to enable ipv6 in nginx

---
meta-webserver/recipes-httpd/nginx/nginx.inc | 1 +

1 file changed, 1 insertion(+)
meta-webserver/recipes-httpd/nginx/nginx.inc +0 -0
index dfced3330..33791ec6a 100644
@@ -43,6 +43,7 @@ PACKAGECONFIG[gunzip] = "--with-http_gunzip_module,,"

PACKAGECONFIG[http2] = "--with-http_v2_module,," PACKAGECONFIG[ssl] = "--with-http_ssl_module,,openssl" PACKAGECONFIG[http-auth-request] = "--with-http_auth_request_module,," +PACKAGECONFIG[ipv6] = "--with-ipv6,,"

Quoted 8 lines
do_configure () {
    if [ "${SITEINFO_BITS}" = "64" ]; then

--
2.33.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#99322): https://lists.openembedded.org/g/openembedded-devel/message/99322
Mute This Topic: https://lists.openembedded.org/mt/94604935/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

PATCH v2 1/1 meta-webserver: nginx: Add ipv6 support

In reply to Joshua Watt

Adds a PACKAGECONFIG to enable ipv6 in nginx

---
 meta-webserver/recipes-httpd/nginx/nginx.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-webserver/recipes-httpd/nginx/nginx.inc +2 -1
index dfced3330..260f5f320 100644
@@ -37,12 +37,13 @@ NGINX_USER   ?= "www"
 EXTRA_OECONF = ""
 DISABLE_STATIC = ""
 
-PACKAGECONFIG ??= "ssl"
+PACKAGECONFIG ??= "ssl ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"
 
 PACKAGECONFIG[gunzip] = "--with-http_gunzip_module,,"
 PACKAGECONFIG[http2] = "--with-http_v2_module,,"
 PACKAGECONFIG[ssl] = "--with-http_ssl_module,,openssl"
 PACKAGECONFIG[http-auth-request] = "--with-http_auth_request_module,,"
+PACKAGECONFIG[ipv6] = "--with-ipv6,,"
 
 do_configure () {
     if [ "${SITEINFO_BITS}" = "64" ]; then
Signature · 1 line
2.33.0
#4 lore raw
Quoted 13 lines · Joshua Watt

Adds a PACKAGECONFIG to enable ipv6 in nginx

---
 meta-webserver/recipes-httpd/nginx/nginx.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-webserver/recipes-httpd/nginx/nginx.inc +0 -0
index dfced3330..260f5f320 100644

meta-webserver/recipes-httpd/nginx/nginx.inc NGINX_USER ?= "www" · line 40

Quoted 5 lines
meta-webserver/recipes-httpd/nginx/nginx.inc +1 -1
@@ -37,12 +37,13 @@ NGINX_USER   ?= "www"
 EXTRA_OECONF = ""
 DISABLE_STATIC = ""
 
-PACKAGECONFIG ??= "ssl"
+PACKAGECONFIG ??= "ssl ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"

much better, I was also going to suggest this

Quoted 25 lines
meta-webserver/recipes-httpd/nginx/nginx.inc +1 -1
 PACKAGECONFIG[gunzip] = "--with-http_gunzip_module,,"
 PACKAGECONFIG[http2] = "--with-http_v2_module,,"
 PACKAGECONFIG[ssl] = "--with-http_ssl_module,,openssl"
 PACKAGECONFIG[http-auth-request] = "--with-http_auth_request_module,,"
+PACKAGECONFIG[ipv6] = "--with-ipv6,,"
 
 do_configure () {
     if [ "${SITEINFO_BITS}" = "64" ]; then
--

2.33.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#99325):
https://lists.openembedded.org/g/openembedded-devel/message/99325
Mute This Topic: https://lists.openembedded.org/mt/94609597/924729
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-