From 015e30b5eaefbf5de31edf37a7599fe0157220a8 Mon Sep 17 00:00:00 2001 From: Eneas U de Queiroz Date: Thu, 6 Dec 2018 16:39:14 -0200 Subject: [PATCH] nginx: fix rtmp module with openssl 1.1.1 Patch that changes the order of some include files in ngx_rtp_cenc.c that caused a compilation failure. Patch submitted upstream (#13). Signed-off-by: Eneas U de Queiroz --- net/nginx/Makefile | 3 ++- ...nc.c-move-ngx_-config-core-.h-to-top.patch | 26 +++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 net/nginx/patches-nginx-rtmp/100-ngx_rtp_cenc.c-move-ngx_-config-core-.h-to-top.patch diff --git a/net/nginx/Makefile b/net/nginx/Makefile index bb016d031d..ce9b521e5a 100644 --- a/net/nginx/Makefile +++ b/net/nginx/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=nginx PKG_VERSION:=1.15.6 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=nginx-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://nginx.org/download/ @@ -444,6 +444,7 @@ ifeq ($(CONFIG_NGINX_RTMP_MODULE),y) define Prepare/nginx-rtmp $(eval $(Download/nginx-rtmp)) gzip -dc $(DL_DIR)/$(FILE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS) + $(call PatchDir,$(PKG_BUILD_DIR)/nginx-rtmp,./patches-nginx-rtmp) endef endif diff --git a/net/nginx/patches-nginx-rtmp/100-ngx_rtp_cenc.c-move-ngx_-config-core-.h-to-top.patch b/net/nginx/patches-nginx-rtmp/100-ngx_rtp_cenc.c-move-ngx_-config-core-.h-to-top.patch new file mode 100644 index 0000000000..494d9be000 --- /dev/null +++ b/net/nginx/patches-nginx-rtmp/100-ngx_rtp_cenc.c-move-ngx_-config-core-.h-to-top.patch @@ -0,0 +1,26 @@ +From df4113fb4d9177c7cfb0639b5e92b1fadfd4c174 Mon Sep 17 00:00:00 2001 +From: Eneas U de Queiroz +Date: Thu, 6 Dec 2018 15:54:23 -0200 +Subject: [PATCH] ngx_rtp_cenc.c: move ngx_{config,core}.h to top + +Fixes compilation error: unknown type name 'cpu_set_t' + +Signed-off-by: Eneas U de Queiroz + +diff --git a/dash/ngx_rtmp_cenc.c b/dash/ngx_rtmp_cenc.c +index f0b81e7..e4af2b1 100644 +--- a/dash/ngx_rtmp_cenc.c ++++ b/dash/ngx_rtmp_cenc.c +@@ -1,10 +1,10 @@ + + ++#include ++#include + #include + #include + #include +-#include +-#include + #include + #include "ngx_rtmp_cenc.h" + -- 2.30.2