summaryrefslogtreecommitdiffstats
path: root/meta-webserver/recipes-httpd
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-08-28 14:31:56 -0700
committerKhem Raj <raj.khem@gmail.com>2022-08-28 23:57:15 -0700
commit8f44a8894f1e24cc7c59250e5dd07e1cc420430a (patch)
tree0a75d8c968054f7ff9b7ad3883736847f969ed4b /meta-webserver/recipes-httpd
parent05f9c6f1ba1c424bbfe0deda5a3426e022867bb6 (diff)
downloadmeta-openembedded-8f44a8894f1e24cc7c59250e5dd07e1cc420430a.tar.gz
monkey: Fix build with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-webserver/recipes-httpd')
-rw-r--r--meta-webserver/recipes-httpd/monkey/files/0001-fastcgi-Use-value-instead-of-address-of-sin6_port.patch30
-rw-r--r--meta-webserver/recipes-httpd/monkey/monkey_1.6.9.bb1
2 files changed, 31 insertions, 0 deletions
diff --git a/meta-webserver/recipes-httpd/monkey/files/0001-fastcgi-Use-value-instead-of-address-of-sin6_port.patch b/meta-webserver/recipes-httpd/monkey/files/0001-fastcgi-Use-value-instead-of-address-of-sin6_port.patch
new file mode 100644
index 000000000..f4bab49aa
--- /dev/null
+++ b/meta-webserver/recipes-httpd/monkey/files/0001-fastcgi-Use-value-instead-of-address-of-sin6_port.patch
@@ -0,0 +1,30 @@
1From 7f724bbafbb1e170401dd5de201273ab8c8bc75f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 28 Aug 2022 14:24:02 -0700
4Subject: [PATCH] fastcgi: Use value instead of address of sin6_port
5
6This seems to be wrongly assigned where ipv4 sin_port is
7equated to address of sin6_port and not value of sin6_port
8
9Upstream-Status: Submitted [https://github.com/monkey/monkey/pull/375]
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 plugins/fastcgi/fcgi_handler.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/plugins/fastcgi/fcgi_handler.c b/plugins/fastcgi/fcgi_handler.c
16index 9e095e3c..e8e1eec1 100644
17--- a/plugins/fastcgi/fcgi_handler.c
18+++ b/plugins/fastcgi/fcgi_handler.c
19@@ -245,7 +245,7 @@ static inline int fcgi_add_param_net(struct fcgi_handler *handler)
20 struct sockaddr_in *s4 = (struct sockaddr_in *)&addr4;
21 memset(&addr4, 0, sizeof(addr4));
22 addr4.sin_family = AF_INET;
23- addr4.sin_port = &s->sin6_port;
24+ addr4.sin_port = s->sin6_port;
25 memcpy(&addr4.sin_addr.s_addr,
26 s->sin6_addr.s6_addr + 12,
27 sizeof(addr4.sin_addr.s_addr));
28--
292.37.2
30
diff --git a/meta-webserver/recipes-httpd/monkey/monkey_1.6.9.bb b/meta-webserver/recipes-httpd/monkey/monkey_1.6.9.bb
index fff406a3f..5b7e32733 100644
--- a/meta-webserver/recipes-httpd/monkey/monkey_1.6.9.bb
+++ b/meta-webserver/recipes-httpd/monkey/monkey_1.6.9.bb
@@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
8SECTION = "net" 8SECTION = "net"
9 9
10SRC_URI = "http://monkey-project.com/releases/1.6/monkey-${PV}.tar.gz \ 10SRC_URI = "http://monkey-project.com/releases/1.6/monkey-${PV}.tar.gz \
11 file://0001-fastcgi-Use-value-instead-of-address-of-sin6_port.patch \
11 file://monkey.service \ 12 file://monkey.service \
12 file://monkey.init" 13 file://monkey.init"
13 14